G
garey
Hi -
I am trying to work with a large scale app that uses tokens to
drop script tags and Javascript into a page. Basically, I have to add
a line or two to the Javascript.
Several different strategies have worked for Firefox, but none of
them for IE. I tried grabbing the innerHTML of the div the script tag
is in and reforming it to include my code and then reassigning it to
the divs innerHTML, but that didn't work. Now I'm trying to create a
new div, assign to it's innerHTML and then do a replaceChild().
This works in Firefox. It works in IE in so far as I can view
source and see that the Javascript is being rewritten, but the
rewritten Javascript is not being executed. It appears that the
original Javascript is being executed. How can I get IE to execute the
new Javascript?
I am trying to work with a large scale app that uses tokens to
drop script tags and Javascript into a page. Basically, I have to add
a line or two to the Javascript.
Several different strategies have worked for Firefox, but none of
them for IE. I tried grabbing the innerHTML of the div the script tag
is in and reforming it to include my code and then reassigning it to
the divs innerHTML, but that didn't work. Now I'm trying to create a
new div, assign to it's innerHTML and then do a replaceChild().
This works in Firefox. It works in IE in so far as I can view
source and see that the Javascript is being rewritten, but the
rewritten Javascript is not being executed. It appears that the
original Javascript is being executed. How can I get IE to execute the
new Javascript?