Re: [jQuery] Simple jQuery Ajax - Using PHP Variables

2009-12-26 Thread Charlie
lots of examples in the AJAX section of jQuery.com.http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype  For your case following should work: var valueIwantToSend="1223"; $.get("scriptname.php", { variable: valueIwantToSend},function(data){     $("#results").html(data)  }); egressor wro

[jQuery] Simple jQuery Ajax - Using PHP Variables

2009-12-26 Thread egressor
I have consulted numerous books, and have searched online in vain to find an answer to this simple question. Here is a case: I have a simple PHP script that I can run either in the browser or in the shell by typing something something similar to this: scriptname.php?variable=value Now let's assu