Thank you very much
On 16 avr, 20:17, James <james.gp....@gmail.com> wrote: > success: function(responseText){ > if (responseText == '1') // do something > > }, > > On Apr 16, 5:32 am, gostbuster <jeremyescol...@gmail.com> wrote: > > > Hi everyone, > > > I'm getting in trouble with ajax and jquery. > > > Here is what i need: > > > I want to execute a php script to test the value of an input. There is > > no problem with event and triggering the request. Here is my code : > > > $.ajax({ > > url: > > 'emplacements/verifiernumero/numero/'+input.val(), > > success: function(responseText){ > > // on success callback > > alert("on a fait la > > rek"+$.html(responseText)); > > }, > > > error: function(responseText){ > > // on error callback > > > }) > > > the url is read thanks to zend_framework, which will take the > > parameter input.val > > > the php script is rendering me something like : > > -if it'okay i get 1, > > else if get nothin > > > If I executed the page 'emplacements/verifiernumero/numero/'+My_value > > I get 1 or nothing....depending of my tests.. > > > well what I want to do is get the "answer" of the script, to test it > > > how can we do this ? I read the documentation, but didn't found. > > > Thankyou in advance for your help .