0

I have a proof-of-concept that is thoroughly and utterly broken here:

http://jsfiddle.net/floyd_may/FAmxj/

I'm hoping the intent behind this is evident. Basically, I want to use #editPage to edit elements on #mainPage one at a time. However, as soon as you click the 'Back to Main Page' button, the main page is empty.

Can I get some guidance here as to how to make this work?

1 Answer 1

1

Try using the pageinit event instead of pagebeforeshow: http://jsfiddle.net/FAmxj/11/

With pagebeforeshow, multiple models are bound to #mainpage.

Sign up to request clarification or add additional context in comments.

2 Comments

Your fiddle doesn't work; the changes made on the edit page aren't reflected on the main page.
However, the pageinit event does appear to work; here's the update proof-of-concept: jsfiddle.net/floyd_may/FAmxj/12 Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.