asyncronous call doesn't return json
Posted
by Rebecca
on Stack Overflow
See other posts from Stack Overflow
or by Rebecca
Published on 2010-03-10T16:38:20Z
Indexed on
2010/03/15
4:29 UTC
Read the original article
Hit count: 319
I am running wamp on an xp box. I am fairly new to web programming, this is for a student project, and have run out of avenues to try to solve this problem.
Problem
We have client side JavaScript code that uses GDownloadUrl- from the Google api- to wrap xmlHttpRequest calls to a php server side program that is accessing our database. In my callback program, the result of this call is always " ".
However, if I use an alert to display the http:// call, with the arguments, and cut and paste that into my browser, the json I expected is displayed. I zipped my dir containing all the files, and tried it out on another team member's computer, and they were able to get the json in the callback function. Note this is exactly the same code and structure I was using, he just unzipped and ran.
So now I'm thinking this is something about Firefox or Wamp? Would this be a config problem? I'm running wamp server 2.0, and Firefox 3.5.8.
I have no problems with syncronous php, or reading in files asyncronously. Any help would be greatly appreciated.
Rebecca
© Stack Overflow or respective owner