suvarthi
September 2nd, 2008, 01:18 PM
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.
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.