I has to request to other domains in my app. There are two different situations. One is request data from remote site requestData.action
, the other is post data to remote site( this doesn't need data returned) feedBack.action
.
For the first one, I asked the remote server to modify their code to add a field callback
and I use jQuery.getJSON
to solve this problem.
Now questions is: Has feedBack.action
to be modified? If not, is my Ajax requestion can be recieved by the server?
For example, if I listened for the user's behavior, and the user clicked a url, I send a feedback msg to feedBack.action by:
$.get(domain+"feedBack.action",{userId:id, time:curTime})//no callback function