Hi I run into something peculiar. I have an html file linking to a local file jquery-1.4.4.js.
Now, everything works ok in every browser but when I test the page in IE7 and 8 it fires the following error:
SCRIPT87: Invalid argument.
jquery-1.4.4.js, line 18 character 20135
and everything falls apart.
So with the IE debuggers open I click on the message and it sends me to the jquery-1.4.4.js line where the error allegedly sits (I understand this doesn't necessarily mean that the error is in that file, more likely somewhere in my own script instead). ANyway I copy and paste the whole jquery-1.4.4.js from the IE debugger into notepad, and I do the same for the jquery-1.4.4.js file in the firefox debugger. I compare the 2 (that should be the same) and notice that there are differences: the same version of the same file is different in IE and Firefox...Needless to say the line where the error is in (a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit) doesn't appear in the version taken from firefox.
A solution to this problem - I have already checked - is to move up to the latest jquery version (it still throws the error but at least everything works as it should). Probelm is I can't upgrade, becasue there are some compatibility problems.
From what I gathered from the error and some tests I have performed on the page and on my own script, a possible error seems to be coming from a list of jquery objects I have created (there is already a post on these here http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/437800/selecting-ticked-checkboxes-with-jquery) but the syntax appears correct. ANybody has a good advice?
thanks