GET Object in HTML5 not working
Hello everyone! Iíll keep it quick.
TL:DR : The Get Object donít GET data from the web and it seem that it can POST. It always return timeouts.
When we go to the Object Manager in CF2.5, it says that the GET Object will work in HTML5, so I jumped on it and try it myself. I built a MYSQL Database and 2 PHP code. 1 PHP code is for Updating a value +1 in the Database. The other PHP code is to get this number.
What I did:
01 - I programmed the application as the player can press Enter. This condition will add +1 to the Database.
Once this is done. The application will GET the value of the Database and show it on screen. Pretty basic. Nothing more.
**Note that this is working fine on Windows.**
02 Ė Being a bit hyped about it I tried to upload it on Newgrounds as a HTML5 game and PREVIEWED it.
As soon as I tried. My timeout condition will pop, and the text shown was that the GET action was timed-out.
weirdly enough. When I tried again in my windows app. The value has gone by +10 or +20.
It seems that the Post value worked but the application didnít get anything.
What I tested:
01 Ė In the GET Object proprieties, there is a way to ďgetĒ information, I donít know the name of those but Iíve tried the 3 of them and didnít worked on Newgrounds.
02 Ė I simplified the code only to GET information from a web page and didnít work either.
Father this two test it seems that the application didnít POST anymore. Weird.
03 Ė I changed an alterable string in the application every time the GET object did something. And the text didnít change so anything Iíve programmed wasnít supported in HTML5 weirdly.
And yes, father this, the game STILL worked on Windows just fine!
It would be appreciated to help me a bit with this.