feed application with a string
Monkey Targets Forums/HTML5/feed application with a string
| ||
Hello, is that possible to feed a Canvas HTML 5 application create with monkey with a String build on a server (java or other). The string could be in a Json format and give some information to the application, like user name, score, position... |
| ||
The mnet module should be able to do this via HttpGet. If the app and the server are in the same domain. Otherwise it will be blocked by the browser to avoid cross-site scripting (IIRC). |
| ||
same domain is a constraint. I wondering to know if one day, it will be possible to use html 5 web sockets to manage with monkey a real time transfert of information between server and canvas. silly dream ? |
| ||
Just a question.. this is something specific from mnet and its way to do the things or it is just a generic issue what occurs using html/php as well?? |
| ||
The last one. |
| ||
Thanks Volker ;) So just to be sure I understand the problem: you've a monkey app running in the client, sending data via get/post with mnet functions, so what should I understand with the sentence "be in the same domain" ??? Is it the app running in my computer in the same domain??? I don't understand this point very well.. Could you please help me out understanding this? |
| ||
If you have your .html on, lets say www.skopia.de, and the php-script catching HttpGet running on www.skopia.de too, it will work. Having your .html ond, lets say www.yourwebspace.com and the php-script on www.skopia.de, it will not work. You can set up a server on your computer too, running both client and php-script on it will work too. |
| ||
I see :) perfectly understood! Thanks a lot Volker! much apreciated, honestly. |