02-07-2008, 03:30 PM
|
#6 (permalink)
|
|
The Contributor
Join Date: Jan 2008
Location: Birmingham, UK
Posts: 60
Thanks: 10
|
I'm a jQuery man ( jQuery: The Write Less, Do More, JavaScript Library)
Example of hitting a script with jQuery:
PHP Code:
<?php
// my-script.php
print_r($_POST);
?>
Code:
$.post('my-script.php',{x:1,y:2,z:3},function(response){
alert(response);
});
|
|
|
|