This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not send XMLHttpRequest request in mobile web

 
Garden Pak
Greenhorn
Posts: 4
  • 0
  • 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: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic