Page 1 of 1

Online and offline events

Posted: Tue Aug 27, 2013 11:41 am
by Manuel Menéndez Román

Hi,
Are the offline and online events related to one specific page or the whole app? I have such events set on one of my pages, and I think they are dispatching on other pages.

Is there a way to detect the current page?

Thanks


Online and offline events

Posted: Tue Aug 27, 2013 12:12 pm
by Maryna Brodina

Hello! Do you use "Render all pages in one HTML file (jQuery Mobile multi-page template)" option on App Settings--General tab?


Online and offline events

Posted: Tue Aug 27, 2013 12:16 pm
by Manuel Menéndez Román

No


Online and offline events

Posted: Tue Aug 27, 2013 12:43 pm
by Maryna Brodina

To define current page use the following code:
code$.mobile.activePage.attr("dsid")/code
which returns screen name