We have a really strange problem. We have an image Upload via AJAX to a Php program on the server.When the Php is done uploading the image then it sends back to client via JSON the result of theh upload and the JS On client then places the upload image at the DIV where it should go to.
This works just FINE, in one instance from that Web page, but then in another instance from same Web page, when the page is in GET mode, the image upload still works FINE, but the JSON message from the Php to the client fails to come back.
What can we do?
What can be causing this strange problem?
FYI: We have tried the JSON in both of these ways:
Itās going to be really difficult to offer any suggestion without seeing the code. What is the difference between the page code when it is working in ānormalā mode, and when it is working in āgetā mode? Specifically, what is it that makes the page be in āGETā mode?
Droop, that is the thing, there is really NO difference between when it JSON message comes back and when it does not!!!
That is in non GET mode AJAX Photo upload is done and JSON message comes back OK, so we can display the image to user in right DIV. When in GET mode, the id of the Note is provided. But again all works OK, that is JS calls Php via AJAX, Php does get the image and upload it fine, and all entries in MySQL are done fine, but JSON message from Php is not sent back!
You can sign-up for a Free account on Anoox.com and see this then. So after you have signed up go to the non-public page for my-2nd-brain service, here:
click on the image upload icon, that is icon to right of āPost My Noteā and upload few images (under 250K), you will see that they upload fine. Then click on Update icon to update this Note, once in Update page, which is here:
of course the id replaced with your Note id, click on image upload icon, and add more images. You will see that the Animation will never go away, that photo Upload does not display OK. And FYI, the image is actually uploaded Ok, which you can see by refreshing your page. So this means EVERYTHING working OK, but JSON is not coming back from Php to JS in User Web page!
What the HEK?