Hello everyone,
this is my first post here. <img src="smileys/smiley1.gif" border="0" align="middle" />
I am testing arround with Ajax and JSON (I used both techniques before).
My objective is simple, receive some data from a database, create new object, set some variables.
Well... the LOAD function is not quite specified in the manual, so maybe i have a simple syntax error. Here we go:
1. Every 5 Seconds: Ajax Request "http://localhost/mob_load.php"
2. mob_load.php's output:
{"c2array":true,"size":[3,2,1],"data":[ [ [300],[25] ], [ [100],[50] ], [ [800],[10] ] ]}
3. Ajax Request finished: Load from JSON string(ajax.lastdata)
4. Set Text debug 1: ajax.lastdata (just to check if the ajax request is fine)
5. set text debug 2: array.at(1,1,1)
Everything is working fine, except of step5. Nothing happens.
May someone can help me with this. :)
Thanks in advance,
Pad
*EDIT*
I saw that this post is almost identically to mine:
scirra.com/forum/im-missing-something-with-the-ajax-object_topic53614.html
(i searched before the post was created...)