View Full Version : AJAX, help needed

09-03-2008, 12:23 AM

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(){
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.

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


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