Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    If you use Firebug [http://www.getFirebug.com] on Firefox, does the error message become more clear?

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Sep 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks A1ien51, but in firebugs I cant see the errors, because it cant show the codes inside <div>.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •