• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not send XMLHttpRequest request in mobile web

 
Garden Pak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made a web page to send http request to WAS.
The page sends request well in PC but in mobile(Android) cannot send the request.

Here's the code.

In PC alerts readyState like "1" -> "1" -> "2" -> "4" -> "3"
but in mobile "1" -> "4".
So it doesn't even send the request in moblie browser.
I tested in android default browser and Chrome - same result.
One strange thing is that it sends the request well in mobile when I type the request URL to browser without javascript.

Any ideas?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A ready state of 4 means complete, so I'm not convinced that the request isn't being sent. Have you monitored the server to see if it is so?

And why on earth aren't you using jQuery where all that code can be done with one line?
 
Garden Pak
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But there's no responseText and httpRequest.status is 0.
hm.. I'll try JQuery.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic