I have on my server a parent html files containing 2 child html files embedded with iframe. The idea is that one of the frames (containing animations) need to retrieve some data/variables from the other one (control panel) or from the parent html file, and I decided to use a JSON file. (all files are on the same domain/server)
Using AJAX.RequestURL I CAN read the JSON (using relative path) but when it comes to write back to JSON I'm stuck.
I have no idea how to use AJAX or PHP and I thought that sending the data to the url of the JSON file will modify it, but that is just silly thinking, I admit:)
Is there a way to do this without using PHP or other complex things outside C2 ?
I am doing this for someone that has no idea of C2 and he wants to modify the behavior of an animation on his own, from outside the animation html.
Here is what I'm talking about if I did not explained properly:
and this is the capx for the right-hand side frame https://dl.dropboxusercontent.com/u/139926126/Forums/scirra/test_JSON.capx
Please, if anyone is having any ideas ,any suggestions are welcome.
I don't expect for someone else to do it for me but to give me a hint