V
Vince
JavaScript cloneNode is crashing IE 8 - been at this all day - anyone
any ideas to point me in the right direction - by any chance?
I am getting an "Internet Explorer has encountered a problem & needs
to close" message when I use cloneNode with IE 8 in compatibility mode
or regular IE 8 mode - the same code works fine with firefox, opera
etc - ie just crashes when using IE
I've isolated the problem & put it on one page at:
http://www.hypermap.com/clonenode_fails_demo.html
This code validates as XHTML strict.
I'm trying to work out a workaround using cloneNode or something else
- I don't want to use .innerHTML (not standards compliant) & if I
can't resolve this using cloneNode I cannot use cloneNode of-course.
So I'm hoping that some one out there has a spare moment, the required
in-depth knowledge of JS & are feeling generous. I've put some alert
debugs in that you should see - the object that cloneNode is called on
seems to be formed OK by document.getElementById call.
This demo crashes in IE when you click the top hyperlink to close the
information (this works fine) then click the hyperlink again to show
the information - the problem occurs at line - after a few alert
debugs appear:
var $newamazoncarouselPlayer = $amazoncarouselPlayer.cloneNode
($bool_t);
& later (if allowed to get that far) at line :
var $newamazonsearchPlayer = $amazonsearchPlayer.cloneNode
("true");
ie if I comment some of the code above it to avoid the first cause of
the IE crash.
(btw the cloneNode is necessary to copy the last drawer's node in my
app - the node gets passed around as user's elects to click a link to
open various draws one after the other but it is not 100% necessary to
do this in this demo with only 1 opening & closing drawer)
Thanks to anyone who feels they can help - in advance.
any ideas to point me in the right direction - by any chance?
I am getting an "Internet Explorer has encountered a problem & needs
to close" message when I use cloneNode with IE 8 in compatibility mode
or regular IE 8 mode - the same code works fine with firefox, opera
etc - ie just crashes when using IE
I've isolated the problem & put it on one page at:
http://www.hypermap.com/clonenode_fails_demo.html
This code validates as XHTML strict.
I'm trying to work out a workaround using cloneNode or something else
- I don't want to use .innerHTML (not standards compliant) & if I
can't resolve this using cloneNode I cannot use cloneNode of-course.
So I'm hoping that some one out there has a spare moment, the required
in-depth knowledge of JS & are feeling generous. I've put some alert
debugs in that you should see - the object that cloneNode is called on
seems to be formed OK by document.getElementById call.
This demo crashes in IE when you click the top hyperlink to close the
information (this works fine) then click the hyperlink again to show
the information - the problem occurs at line - after a few alert
debugs appear:
var $newamazoncarouselPlayer = $amazoncarouselPlayer.cloneNode
($bool_t);
& later (if allowed to get that far) at line :
var $newamazonsearchPlayer = $amazonsearchPlayer.cloneNode
("true");
ie if I comment some of the code above it to avoid the first cause of
the IE crash.
(btw the cloneNode is necessary to copy the last drawer's node in my
app - the node gets passed around as user's elects to click a link to
open various draws one after the other but it is not 100% necessary to
do this in this demo with only 1 opening & closing drawer)
Thanks to anyone who feels they can help - in advance.