Johnny Chan
Posts: 0
Joined: Sun Jun 10, 2012 10:12 pm

button - click event not to go next screen

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,

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

button - click event not to go next screen

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?

Johnny Chan
Posts: 0
Joined: Sun Jun 10, 2012 10:12 pm

button - click event not to go next screen

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.

Johnny Chan
Posts: 0
Joined: Sun Jun 10, 2012 10:12 pm

button - click event not to go next screen

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

button - click event not to go next screen

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

button - click event not to go next screen

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).

Johnny Chan
Posts: 0
Joined: Sun Jun 10, 2012 10:12 pm

button - click event not to go next screen

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

button - click event not to go next screen

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

Johnny Chan
Posts: 0
Joined: Sun Jun 10, 2012 10:12 pm

button - click event not to go next screen

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

Return to “Issues”