Results 1 to 2 of 2

Thread: jQuery.load - Beginner's problem

  1. #1
    Join Date
    Mar 2013

    jQuery.load - Beginner's problem

    Ok, so Im new to this and starting really simple, but heres my code:

    <!DOCTYPE html>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
    // $("#div1").load("details.php?date_1=31%2F1%2F1975&date_2=31%2F1%2F1985&submit=Submit" );
    // $("#div1").load("details.php", {date_1:"31/1/1975", date_2:"31/1/1985"} );

    <div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
    <button>Get External Content</button>


    The 2 lines commented out, the first works, the second doesnt... I cant work out why?! Or how to make the second one work... Anyone?!


  2. #2
    Join Date
    Feb 2013
    One difference I see is that the first one has a "submit" parameter. Did you check to see that the 2 requests are the same? That might be a good place to start.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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