|
| |
User Groups : Forums : SiteExperts :
Dynamic HTML
:  | getElementById problem IE/Firefox I am using some Javascript code which generates a menu structure, which in Firefox works but in Internet Explorer 6.0 does not. The problem starts with the getElementById, where on hitting the specific command IE will stop and comment: getElementById(...) is empty or no object. The complete code is something along the lines of:
document.getElementById("tb").getElementById("a")
IE does not stomach this command, but in Firefox it works without any problem. Does anybody have any suggestions?
Much obliged,
VictorStarted By freshjive on Dec 20, 2005 at 5:18:59 AM |  | | 11 Response(s) | Reply |
Earlier Replies | Replies 1 to 4 of 11 | Later Replies Goto Page: 2 1 |  | | MHenke on Dec 20, 2005 at 5:53:55 AM (# 1) Can you provide the corresponding HTML markup? bod1467 on Dec 20, 2005 at 5:54:36 AM (# 2)So ... an element with the id 'a' belongs to an element with the id 'tb'? Can you even cascade getElementById like that?
You need to post the ACTUAL code that causes the problem, not what you THINK is the code, otherwise we'll all end up going down blind alleys. :-S MHenke on Dec 20, 2005 at 5:58:34 AM (# 3) This message has been edited.LOL, I'd such a heavy lag in my posting that I'd thought by myself "hum, bod is to approach!?". No kidding! 8) bod1467 on Dec 20, 2005 at 8:11:46 AM (# 4)Fo sho! :-D
| Earlier Replies | Replies 1 to 4 of 11 | Later Replies Goto Page: 2 1 |
To respond to a discussion, you must first logon.
If you are not registered, please register yourself to become a member of the SiteExperts.community.
|