Hi All
I'm using AJAX in an analytics script. All works nicely in Firefox and the script loads my php script which records some information in the database.
The part with the error in IE is the part which adds the events to the anchor elements. The error message from IE is:
Line 335: Object doesn't support this property or method.
The javascript line this refers to (I have confirmed this 100% even though line ref is wrong) is as follows:
[code=javascript]
links = document.getEle mentsByTagName( 'a');
[/code]
As you can imagine I've tried looking for standard IE bugs for this type of line but nothing comes up.
Some thoughts I've had: it could be using "links" to name a variable (is links reserved)? It could be that "a" has to be "A". I have tried different combinations of these but no luck.
Hopefully someone can point me in the right direction!
Thanks in advance!
Henry
I'm using AJAX in an analytics script. All works nicely in Firefox and the script loads my php script which records some information in the database.
The part with the error in IE is the part which adds the events to the anchor elements. The error message from IE is:
Line 335: Object doesn't support this property or method.
The javascript line this refers to (I have confirmed this 100% even though line ref is wrong) is as follows:
[code=javascript]
links = document.getEle mentsByTagName( 'a');
[/code]
As you can imagine I've tried looking for standard IE bugs for this type of line but nothing comes up.
Some thoughts I've had: it could be using "links" to name a variable (is links reserved)? It could be that "a" has to be "A". I have tried different combinations of these but no luck.
Hopefully someone can point me in the right direction!
Thanks in advance!
Henry
Comment