[jQuery] Re: calling a php function with jquery

2008-03-06 Thread Raixen Adren
Thanks a lot, i found an exemple with get too. It works perfectly. Thanks a lot 2008/3/6, the_woodsman <[EMAIL PROTECTED]>: > > Erm, there's a few hurdles in front of you... > > In short, you have to: > - make a URL that runs the php script- this should work via your > browser (helloscript.ph

[jQuery] Re: calling a php function with jquery

2008-03-05 Thread the_woodsman
Erm, there's a few hurdles in front of you... In short, you have to: - make a URL that runs the php script- this should work via your browser (helloscript.php?user=bob, perhaps), - call this URL via ajax, and insert the output into the current page. On Mar 5, 5:18 pm, everdream <[EMAIL PROTECT

[jQuery] Re: calling a php function with jquery

2008-03-05 Thread tatlar
jQuery is client side, PHP is server side. What exactly are you trying to do? If you wish to call and use the return of a PHP function within your jQuery code you will need to use the AJAX functions. However, if you are already getting the variable $user before your jQuery is run by the client you

[jQuery] Re: calling a php function with jquery

2008-03-05 Thread jquertil
if you look up the docs for $.ajax() function you will see how to pass variables to the PHP from your calling page. for example: $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); On Mar 5, 9:18