energysmithe
Mon, 11 Aug 2014 16:57:23 GMT
If you mean to check is it presented in DOM, you can do it simply like: --- if ($$('.page[data-page="dynamicpage"]').length > 0) { console.log('page exist'); }
Just change to appropriate data-page attribute
Vladimir, thank you that worked great! I found that immediately after running createContentPage() the event does not evaluate, so I catch it on the second click and am just closing the page instead to create a toggle effect. Very nice! --- var pageExistsInDom = false; if ($$('.page[data-page="dynamicPage"]').length > 0) { pageExistsInDom = true; } if (pageExistsInDom == false) { createContentPage(); } else { mainView.goBack(); } ---