Hi!
this is my first post on this forum, I have asked on all Javascript Spanish forums but I have got no response to my doubt.
- I'm coding a script ONLY FOR Internet Explorer 6+ (I have my reasons).
- I have a website with a frameset of two frames.
- When both frames are loaded I call a script on the main page.
- That script get the entire HTML structure of the right frame, reading the elements recursively.
- On the left frame I generate a ul-li structure showing the source code of the right frame, with a recursive function.
- At every LI element, I assign a reference to the element on the right frame.
- When I fire-up an onclick event to a LI element, I don't get any referente to the assigned object.
You can see the page here:
I don't know why, the only element that save the reference well is the BODY (the first element to be saved on the recursive function).
I can see that if I save an object (just {}) the onclick return undefined.
Please, can someone tell me where is the problem of the references.
this is my first post on this forum, I have asked on all Javascript Spanish forums but I have got no response to my doubt.
- I'm coding a script ONLY FOR Internet Explorer 6+ (I have my reasons).
- I have a website with a frameset of two frames.
- When both frames are loaded I call a script on the main page.
- That script get the entire HTML structure of the right frame, reading the elements recursively.
- On the left frame I generate a ul-li structure showing the source code of the right frame, with a recursive function.
- At every LI element, I assign a reference to the element on the right frame.
- When I fire-up an onclick event to a LI element, I don't get any referente to the assigned object.
You can see the page here:
I don't know why, the only element that save the reference well is the BODY (the first element to be saved on the recursive function).
I can see that if I save an object (just {}) the onclick return undefined.
Please, can someone tell me where is the problem of the references.