[thelist] IE JavaScript issues?

Kristian Rink kristian at zimmer428.net
Thu Nov 16 08:19:17 CST 2006

Hi all;

being into mocking up our web client, I experienced two strange issues
with some JavaScript which does well in Firefox but doesn't work at all
in MSIE at least up to 6.0:

- At first, I do have an "onmouseover" function defined for most of the
control elements on the site to provide the user with basic usage hints
in a special screen div. This function works well in FF; in IE I just
end up with an error like "Object does not support this method or
property". Hmmm... no "onmouseover" for <a> tags in IE?

- In an upload form, I use an "onchange" method attached to a "file"
input in order to add a new "file" input as soon as one file has been
selected, like this:

function addNewField()
  var currentDate = new Date();
  uploadForm = document.getElementById("fileUploadForm");
  fileUploadField.setAttribute("onchange","return addNewField();");
  return true;

Here, "fileUploadForm" is the <div> to contain the file inputs, and this
function is supposed to again attach itself to newly created input
fields. Again, it works well in FF. In MSIE, this function works only
once but not on the dynamically added fields. Why on earth?

Can anyone be enlightening and point me way out here?

Thanks in advance and bye,

More information about the thelist mailing list