Not sure of any resources, but as a crash course:
If you're using the latest version of PHP (5.0.2), you can use the
function json_encode to send information from your PHP application to
jQuery, for mos tasks this is what I do:
Client Side:
$('#button').click(function(){
var input = {foo:'bar'};
$.getJSON('myapp.php',input,function(json){
alert(json.output);
});
});
Server Side:
<?php
// Access variables using $_REQUEST array
if ($_REQUEST['foo']=='bar') {
echo json_encode(array('output'=>'You sent bar.'));
} else {
echo json_encode(array('output'=>'You did not send bar.'));
}
?>
This tends to work very well, read up on json_encode to see all the
possibilities.
- jake
On 2/12/07, Kush Murod <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Is there any good reference to how to use JQuery, AJAX and PHP together
>
>
> --
>
>
>
> Cheers,
>
> Kush
>
>
>
> Sensory Networks
>
> Web Applications Developer
>
> Direct: + 61 2 8302 2745
>
> Phone: + 61 2 8302 2700
>
> Fax: + 61 2 9475 0316
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/