Wednesday, December 9, 2009

Re: [jQuery] How to get the responsetext with $.ajax

Thank you for help i fix it =^D, in fact it was a problem in my some.php
:wistle:, now whene i display the msg variable it gives me my answer.
thanks

ftw wrote:
>
> hi,
> I'am using jquery to get a response from a php page, here it is :
>
>
> function verif(thediv)
> {
> var xhr = $.ajax({
> type: "POST",
> url: "some.php",
> data: "name=some variable",
> success: function(msg){
>
>
> var reponse = xhr.responseText;
> alert("here : "+reponse);
>
> }
> });
>
> }
>
> I tried many things there is no way to get the responseText (that should
> be yes or no), i want absolutly to use a asynchrone methode (the method
> with the async : false, don't helpe me at all :wistle: )
>
> Thank you for any help :handshake:
>

--
View this message in context: http://old.nabble.com/How-to-get-the-responsetext-with-%24.ajax-tp26710562s27240p26711176.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate