cmt a écrit :
I have a <divon my page that is dynamically loaded via javascript.
This part works fine, however any javascripts or javascript function
calls that happen to be in the dynamically loaded content, do not
work!
Which borwser ?
(all do not react similar)
Not even a simple alert('hi!'); works...it's like the browser ignores
any scripts that are in the dynamically loaded <div>.
I think it can read CSS (In tests that I have done with Firefox)
Is there a way around this?
Have a look here to see how and when a browser understands there could
be a new script :
<http://members.aol.com/_ht_a/hikksnotathome/loadJSFile/>
Probably you'll have to
- create a new element 'script'
- innerHTML in this new element the script element (its content ?)
just loaded in the div, or just before to display the responseText
- then insert this new script in the body or the header
--
sm