Page 1 of 2

button - click event not to go next screen

Posted: Tue Jun 12, 2012 2:55 am
by Johnny Chan

I tested two example tutorials

  1. Building Clickable List Mobile App with HTML5 Local Storage

  2. Building Hello World HTML5 Mobile App With Local Storage

    It works perfectly on desktop browser, but when I uploaded to the host server and run from the iphone browser, the click button not working , it supose should go the second screen, but it is not working and do nothing. Any reason why?

    Then I test with just a simple button and add action go to next screen, it works.

    Only different are both tutorial ask to put two actions into the same button event,

    like the local storage example, the SAVE button have two action attached, first save the input value to the local storage variable, then next navigate to next screen to show the saved text.

    Any idea what I'm doing wrong. again it works perfect if I just test from the local desktop browser.

    I also want to know once the vaule save on local storage, does it means it will be stay forever? even the device get turn off?

    Thanks,


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:07 am
by maxkatz

Does it work if you open the app (still on tiggzi.com) on the iPhone? In Test, make the app public and try it. A quick way to get the app on your phone is to scan the top QR code.

Can you share the URL where you exported and host the app?


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:19 am
by Johnny Chan

Yes,

It is on my test domain, http://ipad3hub.com/Local/

if you run on desktop browser it works perfectly, I tested on iphone and it is not working with the save button.


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:24 am
by Johnny Chan

I tested by using the public link from tiggzi, it is the same.


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:26 am
by maxkatz

The same -- it works in the desktop browser but not in browser when running on iPhone?


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:29 am
by Johnny Chan

button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:43 am
by maxkatz

I just tested on Android and iPad - everything worked for me.

Also, to answer your question if the data stays in local storage. It will until you clear it (or save a new value).


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:45 am
by Johnny Chan

can you test on iphone? or ipod? I tested on both


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:52 am
by maxkatz

Works on iPhone 4. Enter a value, click the button, the value is displayed on the next page.


button - click event not to go next screen

Posted: Tue Jun 12, 2012 3:53 am
by Johnny Chan

That is strange, both my ipod touch and iphone 4s not working. anyway, thanks for your help.