I have encountered a problem when I attempt to use AJAX to send and write JavaScript to a web page.
My web page has a button on it that when clicked runs an AJAX request and returns/writes JavaScript from a file to the web page (the page being viewed). Though once the JavaScript is imported it does not run. I believe this is because the browser only reads the page once and after the new JavaScript added to the page is only picked up as text (Does this seem right?). However, the Javascript does run if I specify an event.
I was wondering if an event exists that would run the JavaScript once it was added to the page? Are there any other ways of doing this?
Any advice is greatly appreciated.
Thanks.
Edited by Pooch, 03 July 2007 - 11:47 PM.
