Page 1 of 2
Return on app after using childBrowser
Posted: Fri Feb 01, 2013 10:16 am
by Ricki Ricardo
Question 1. In my app exist 3 pages. I created navigation button from 1 to 2, from 2 to 3, from 3 to website (web site opens in child browser). When I return from web site ( I use buttoon back) and return from page 3 to page 1 (in page 3 exist button home (navigateToPage (page1)) on page 1 start works event pageLoad all the time. If i don't go to web site and go to page 1 from page 3. PageLoad event not work. This is a bug or this is a feature?
Question 2. In page 3 I have table with mapping data on it. After operation page 3 - website - return table exists all time on page, even if I write bad data in no data retrun from server. If I use case page 3 - page 1, for instance, witout moving to website, all work normaly and table doesn't show on page 3.
Thank you in advance.
Return on app after using childBrowser
Posted: Fri Feb 01, 2013 12:35 pm
by Maryna Brodina
Hello!
1) It's not a bug. Use pageShow event instead Load
2) Please clarify how do you invoke the service which maps data in table.
Return on app after using childBrowser
Posted: Fri Feb 01, 2013 1:16 pm
by Ricki Ricardo
1) On page load I clear localStorage data. It's doesn't work on page show. Only on page Load.
2) I invoke service on pageShow event. I have table with mapping data on table. Before I go to website table show when data exists and doesn't show when data doesn't exists. But if I go to website and return table show on both cases. In my option table doesn't show in last case. I try hide table use js, but js doesn't work on last case. I can share my project for you looking.
Return on app after using childBrowser
Posted: Fri Feb 01, 2013 2:01 pm
by Maryna Brodina
Please make your app link public and send us that link
Return on app after using childBrowser
Posted: Fri Feb 01, 2013 2:51 pm
by Ricki Ricardo
Return on app after using childBrowser
Posted: Fri Feb 01, 2013 5:58 pm
by Maryna Brodina
Thank you!
1) After you navigate from screen 3 to web site and return back to screen 3 - all your app loads again. Screen 3 becames start screen. Screens 2 and 3 do not exist (that's why after you go to page 1 - there is a Page Load event) and that's why Back button disappears on screen 3 (because it's start screen now)
2) How do you navigate to web site if there is nothing found (there is no button Go to web site)
Return on app after using childBrowser
Posted: Mon Feb 04, 2013 8:32 am
by Ricki Ricardo
In begin I put correct name (lipitor for instance) and go to website via the button. Then I retrur and put incorrect name (like aaaaaa) on result page I see message about nothing found and table with lipitor information.
Return on app after using childBrowser
Posted: Mon Feb 04, 2013 2:07 pm
by Maryna Brodina
Hello! Please sorry for delay. Working on it...
Return on app after using childBrowser
Posted: Tue Feb 05, 2013 6:45 am
by Maryna Brodina
Hello! After returning to page GoodRX_resultsPage it becames main page and search result doesn't save on that page.
Change Tiggr('resultsGrid').show(); on pageshow GoodRX_resultsPage to $('table[name=resultsGrid]').hide(); - you'll hide search results.
Return on app after using childBrowser
Posted: Tue Feb 05, 2013 9:02 am
by Ricki Ricardo
I tried, but it doesn't work.
Tiggr('resultsGrid').hide();
$('table[name=resultsGrid]').hide();
console.log('hide table', $('table[name=resultsGrid]'),Tiggr('resultsGrid') );
Table doesn't hide, and console.log doesn't write anything.