Difficulty programmatically populating labels on changing pages (screens/windows).
Difficulty programmatically populating labels on changing pages (screens/windows).
Hi to the appery gang,
I'm wondering if you can help me out with a problem.
References:
ol
lihttp://pastebin.com/Mf1N5tkr/li
lishared code sent to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a/li
lihttp://youtu.be/hAl32VPdFHw/li
/ol
I have run into some difficulty.
I've written a function (primaryGameFlowRedirect) in my .js library (pageDirector) that sends users to different pages in my app (e.g. mainGamePage, enterLetterGamePage, gameOverPage, etc.).
In turn, this function calls another one (updateDynamicFields) which dynamically populates label content.
The function seems to work. I say this because it works for mainGamePage (only). However, I see the information being passed along correctly in the browser console.log to emall/em of the pages successfully.
During the debugging process, I added a temporary button to all of the pages on a hunch. The buttons call the updateDynamicFields function and... it works on all pages!
So... why doesn't the code running in the library work? It's the exact same code.
I've been spending hours looking for things using keywords like "focus" and "refresh" to see if it's not working because of that. It could be, but I haven't found anything to confirm this theory.
Would you mind providing me with any thoughts that you might have?
Best,
Jamie