Q: Referring to another page with js in iAd Producer
I am developing a multi-page widget in iAd Producer, for use in an iBook.
I can't seem to suceed in referring to an object on a different page than the page containing the js.
For example, if I'm executing js on page myFirstPage, how do I refer to myObject on mySecondPage?
Thanks anyone.
Mac OS X (10.7.3)
Posted on Dec 10, 2013 11:20 AM
Depending on how the content is loaded, it's possible that page two is not yet defined within the context of page one. In such a scenario, I would recommend you follow standard MVC practices and set a variable to represent the changing state that the object on page one is toggling. In page two's "Page Did Appear", update the appropriate child object based on the variable modified by page one.
Does that make sense?
If not, can you provide a little more detail on what you are trying to accomplish, and I will cite or try to create an example to demonstrate what I mean using your scenario.
Posted on Dec 12, 2013 1:36 PM