Drakkon
Diamond Member
I'm trying to make an AJAX call load a page into that page - and within that page is a embedded Javascript call so that way those function get called after the AJAX loads. However I've had no luck as of yet as it doesn't seem to parse the javascript that is loaded. I can see in firebug the content gets loaded into the div just the javascript does not process. Is it possible to embed content like this?
---------------------------------
Current page:
(div id="content")(/div)
--------------------------------
Javascript:
AJAX.call(alert.php);
AJAX.onstatuschange = function (responseText) {
#('content').innerHTML = responseText;
}
--------------------------
PHP page (call alert.php)
(script)alert('hello')(/script)
-----------------------------------
---------------------------------
Current page:
(div id="content")(/div)
--------------------------------
Javascript:
AJAX.call(alert.php);
AJAX.onstatuschange = function (responseText) {
#('content').innerHTML = responseText;
}
--------------------------
PHP page (call alert.php)
(script)alert('hello')(/script)
-----------------------------------