View Single Post
Old 09-02-2008, 11:23 PM   PM User | #1
suvarthi123
New to the CF scene

 
Join Date: Sep 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
suvarthi123 is an unknown quantity at this point
AJAX, help needed

Hi,

I'm totally new in JQuery and ajax.

I've loaded a php page inside another by ajax. Here is the code snippet.

function GetList(){
$.ajax({
type: "GET",
url: "list_main.php",
data: "",
success: function(msg){
document.getElementById("List").innerHTML = "" + msg;
}
});
}
Now I try to load another page inside the ajax loaded page list_main.php. But whenever I want to load the function in the onload event in list_main.php it triggers "object expected" error message.

So the problem is to load a page or load a function inside an ajax loaded page.

Please suggest.
suvarthi123 is offline   Reply With Quote