Ashley I thought I would start a thread here for my questions about getting data from child windows. The original thread is here for anyone interested: scirra.com/forum/pass-a-value-from-a-child-browser-to-game_topic55919.html
So far I have got a function to open a url in a new window using window.open and a string param in edittime.js for the user to set the url to open. This works fine.
What I am pondering though is how to go about exposing the function that the child window posts to:
function getToken(authToken) {
userToken = authToken;
}
this basically sets a variable called authToken which is essentially my plugin's returned expression.
I am a javascript noob but so far I am swimming. I am just having trouble figuring out how to expose this function.
Thanks in advance.
M