Hi, im pretty new with the jquery stuff.. and i appear to be missing one giant big step.
I want to do a simple ajax call, and post a variable to a php file that will then do something and return a result that the ajax will then display in the page.... i even tried the ajax example on this page http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery but the damn thing gives me an error... for testing i am using the following.. $(document).ready(function() { $("a").click(function() { $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); }); some.php <?php $name = $_REQUEST["name"]; // .. do some stuff here // .. return a result if ($name) return false; else return true; ?> yet every time the alert that the javascript creates is just the whole php file.. its doing my nut in.. i have tried using the .ajaxComplete event $("#msg").ajaxComplete(function(request, settings){ alert( "request: " + request ); }); and i get a popup that says request: XMLHttpRequest ... although i got no idea what to do with that...? and i cant find anything after hours of searching... please help