For my first jQuery Mobile app, I'm writing list editor:
Main page:
List of items, each with an edit button
Edit page:
(After clicking the edit button in main page), new form view slides in with content of item, editable.
Cancel (slide view back to main page) and Save button (does validation, if good, returns to main page)
The problem/question I have is, after editing an item, and sliding the view back to the main list, how would I update that list item with the updated content? At first I started using the multi-page template with dynamically injected code (for the edit form)... What I think I might have to do instead is, on the main page, have no content, then an event fire when the page is loaded, to load the items... This same event would fire each time the main list slides into view (say, after a cancel or update operation). Is this what you guys are doing? I realize there are a number of ways to do things, but I'm trying to wrap my head around the best practice in view of the way jQuery Mobile is architected.
Thanks!
...Rene