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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problems with AJAX POST

    Hi All,

    In my jQuery I am executing the following AJAX:

    $.ajax(
    {
    type: "GET",
    url: "get_modules.php",
    data: get_string,
    success: function(result)
    {
    $("#step-2 ul").html(result);
    }
    });

    The PHP code get_modules.php returns the following dynamically generated HTML:
    <li><a href="#">Page Title 1</a></li>
    <li><a href="#">Page Header 1</a></li>
    <li><a href="#">Spotlights 1</a></li>


    My Firefox Firebug shows the HTML is being returned correctly but then I get the following jQuery error in the console...

    Syntax Error
    _block_windowOpen(); function () {\n

    and the jQuery script dies. This does not happen on all systems, I am going a bit nutty trying to determine root cause...any suggestions? Thanks!

  • #2
    New Coder
    Join Date
    Feb 2009
    Location
    Uzbekistan
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What is in your "get_string" ?


  •  

    Posting Permissions

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