Use Firebug's XHR tab and you'll see exactly what "some.php" responds with and then you can code accordingly.... as of now, what you are trying to accomplish and what you think is going on are total guesses.... Firebug will help pinpoint what is happening
On Dec 9, 9:25 am, ftw <unrecev...@live.fr> wrote: > ftw wrote: > > > is "yes" or "no" what you are returning from "some.php"? if that's > > the case, variable "msg" is what contains that > > ok, i used what you said (msg varaiable) like this : > > function verif(thediv) > { > var xhr = $.ajax({ > type: "POST", > url: "some.php", > data: "name=some", > > success: function(msg) > { > alert(msg); > } > > }); > > unfortunatly the alert gives me this response: Object XMLHTTPrequest, my pag > some.php should aswer "yes" or "no". Have i any mistake ?:-/ > > nb: the link you gave it me doesn' work. error 404 > thanks for help :-) > > -- > View this message in > context:http://old.nabble.com/How-to-get-the-responsetext-with-%24.ajax-tp267... > Sent from the jQuery General Discussion mailing list archive at Nabble.com.