Response is blank (Not Return ing)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Response is blank (Not Return ing)

2291980
Hello
I have facing the problem in mozila (2.0.0.4)

I have calling ajax for  login process..

Here i ma not able to get ready state=3 , all othere state are
comeing..

Here response is null.

Below is sample of xml data

 <?xml version="1.0" encoding="iso-8859-1" ?>
- <list_data>
  <usertype>Expert</usertype>
  <publicflag>0</publicflag>
  <memberid>42</memberid>
  <automaticlogin>0</automaticlogin>
  <mode>Expert</mode>
  <emailcheck>0</emailcheck>
  <emailaddress>[hidden email]</emailaddress>
  <password>hidden</password>
  <recordcount>1</recordcount>
  </list_data>

This is how i am calling response function

if(window.XMLHttpRequest)
                {
                        http_response=new XMLHttpRequest();
                  http_response.open("GET",url,true);
                        http_response.onreadystatechange=handleHttpResponse_validatex;
                        http_response.send(null);
                }
                else if (window.ActiveXObject)
                {
                        http_validatex1=new ActiveXObject("Microsoft.XMLHTTP")
                        if (http_response)
                        {
                                http_response.open("GET",url,true);
                                http_response.onreadystatechange=handleHttpResponse_validatex;
                                http_response.send();
                        }
                }

_______________________________________________
dev-tech-xml mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xml
Reply | Threaded
Open this post in threaded view
|

Re: Response is blank (Not Return ing)

Martin Honnen-3
2291980 wrote:

> I have facing the problem in mozila (2.0.0.4)
>
> I have calling ajax for  login process..
>
> Here i ma not able to get ready state=3 , all othere state are
> comeing..

Does that mean readyState == 4 works?

> Here response is null.

Check responseXML when readyState is 4. And make sure the server sends
the XML with HTTP response header Content-Type: application/xml (or
text/xml).


--

        Martin Honnen
        http://JavaScript.FAQTs.com/
_______________________________________________
dev-tech-xml mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-xml