javascript - Simple Ajax Jquery Get Method Not Completing -
this first use of ajax please excuse naivety. here script trying run:
$(document).ready(function() { alert("on document ready"); $(document).click(function(e){ alert("inside click handler"); $.get("runner.php", function(data) { alert("get method has completed"); }); }); });
the alerts: "on document ready" , "inside click handler" display correctly cannot alert inside $.get method display. also, runner.php file in same directory javascript file. want information runner.php file cannot make $.get method complete.
i'm sure i'm missing simple here, example taken directly jquery manual. in advance!
try placing absolute url runner.php
, /js/runner.php
or /runner.php
whichever directory it's in.
also if have firebug installed, can use view problem is. if it's telling 404 not found
need place absolute url mentioned.
Comments
Post a Comment