Issues With Page Retrieving Via AJAX?

Amnite

New member
K. Heres my code to retrieve a page..
function GetPage(URL, divId) {
var Page = XMLHttpRequest();

Page.open("GET", URL, true);
Page.onreadystatechange = function() {

document.getElementById(divId).innerHTML = "" + Page.responseText;

}
Page.send(null);
}
This is stored in a seperate js file. But when i load a page containing javascript into a divider no matter what i do i cant get the script to work. The css stays within the dynamically loaded page but my scripts do not... lil help?
 
Back
Top