asp.netmobilerefreshjqtouch

I need to refresh previous page's data when new data is submitted


Page 1 is a summary of Page 2, I need to refresh Page 1 when I change Page 2's data. I see the old values on Page 1 when I use jQT.goBack().


Solution

  • jQTouch enables a single HTML page to act like a web app. The "back" page is really just another section of the HTML page.

    Tapping the Back button animates the page back to a previous section. If the content should be refreshed, then you can register a listener for page event, and perform ajax to refresh the page. Here is code example:

      $('#page_back_to').bind('pageAnimationStart', function(page, info) {
        if (info.direction == 'in' && info.back) {
          // insert your code here to replace the content
        }
      });