...

View Full Version : AJAX, help needed



suvarthi123
09-03-2008, 12:23 AM
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.

A1ien51
09-03-2008, 05:03 AM
If you use Firebug [http://www.getFirebug.com] on Firefox, does the error message become more clear?

Eric

suvarthi123
09-03-2008, 09:02 AM
Thanks A1ien51, but in firebugs I cant see the errors, because it cant show the codes inside <div>.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum