Getting data back from an AJAX call
Just started looking into doing AJAX with jQuery. I think I've got it mostly working but I don't seem to be getting any data back. Here is the call:
-
$.post(
"http://100pcmusic/qsearch.php",
{ q: 'radio' },
function(result,textstatus){alert(result)}
);
The PHP script is available, and the URL
/qsearch.php?q=radio displays some HTML. However, the alert box displays nothing. textstatus is always "success". I'm working locally at the moment, could that be the problem? As I said, the URLs work fine.
Have I missed something?