M
Mark Smith
I am getting a strange error in internet explorer, the following code
is working in firefox.
Line 33 displays the id of div, so the div object is ok.
....
33: alert(div.id);
34: container=document.getElementById(div.id+"_container");
....
And the following error occurs on line 34:
---------------------------
Error
---------------------------
A Runtime Error has occurred.
Do you wish to Debug?
Line: 34
Error: Object doesn't support this property or method
---------------------------
Yes No
---------------------------
document.getElementById is supported in IE 7, right?
And even if an object with ID, div.id+"_container" did not exist
(which it does), the worst case should be that it returns null... So
what could possibly be causing this?
Thanks for any help.
is working in firefox.
Line 33 displays the id of div, so the div object is ok.
....
33: alert(div.id);
34: container=document.getElementById(div.id+"_container");
....
And the following error occurs on line 34:
---------------------------
Error
---------------------------
A Runtime Error has occurred.
Do you wish to Debug?
Line: 34
Error: Object doesn't support this property or method
---------------------------
Yes No
---------------------------
document.getElementById is supported in IE 7, right?
And even if an object with ID, div.id+"_container" did not exist
(which it does), the worst case should be that it returns null... So
what could possibly be causing this?
Thanks for any help.