feed application with a string

Monkey Targets Forums/HTML5/feed application with a string

CyberWarrior(Posted 2011) [#1]
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...


Volker(Posted 2011) [#2]
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).


CyberWarrior(Posted 2011) [#3]
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 ?


pinete(Posted 2011) [#4]
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??


Volker(Posted 2011) [#5]
The last one.


pinete(Posted 2011) [#6]
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?


Volker(Posted 2011) [#7]
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.


pinete(Posted 2011) [#8]
I see :) perfectly understood!
Thanks a lot Volker! much apreciated, honestly.