Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xmlhttprequest is not sending any request to the servlet

 
jen lemque
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys..i'm making a widget for s60 device.. using diagnostic tool of the emulator i've found out that no request sending to the server..but no error occurs when i run the code..here is my code in sending the httprequest...




 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I take it you have made sure by some means that all code -up to and including line 47- are actually executed?

How do you know that the request isn't sent, given that the code doesn't do anything in case it's successful?
 
jen lemque
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using symbian 3rd edition emulator i found out that no request is sending in my servlet using the diagnostic tool of the emulator..were we can find the traffic, system out and task manager of the application running in theemulator...
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what's the answer to my first question?

Are you certain that the emulator is capable of doing this? Meaning, have you ever gotten it to send a successful request via XMLHttpRequest?
 
jen lemque
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm not sure if my code doesn't violate any rules in coding http request..I can't find a good tutorial about that..That was came from different idea in the internet..
s60 emulator can accept ans send http request according to its specs...Can you check my code is it's not violating coding rules of xmlhttp request?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want us to help you, then you need to provide the information that's necessary to do so:

I take it you have made sure by some means that all code -up to and including line 47- are actually executed?


have you ever gotten [ the emulator ] to send a successful request via XMLHttpRequest, in any context?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you done a sanity check by sending a *non*-Ajax request?
 
jen lemque
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've tried to send request in my widget google map and the emulator successfully receive and send http request and response..

according to the nokia s60 emulator user guide it can send and receive http request
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you added debug statements such as alerts and see if the code is executing?

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic