Page 1 of 1

Problem with exporting to xcode and running in ios simulator

Posted: Mon Dec 31, 2012 1:15 am
by Jayanth Venkataraman

I have exported my successfully running app with custom javascript to XCode. The exporting works fine but when I build and run it, there are 2 issues

  1. My home page has a button which when clicked should take you to the next page using Tiggr.navigateTo(). In the ios simulator, the home page loads fine but when i click the button nothing happens. When i loaded the html in chrome did the same action this is what i got in the javascript console

    XMLHttpRequest cannot load file:///Users/jvenkata/Downloads/Cric_Score%204/iOSTiggrTemplate/PhoneGapTemplate/Resources/www/project/enterTeamDetails.html. Origin null is not allowed by Access-Control-Allow-Origin.

  2. When i tried to load the second page in chrome I got the following javascript issue

    Uncaught TypeError: Cannot call method 'getItem' of undefined.

    This 'getItem' is used as part of Tiggr.applicationStorage.getItem ();

    Can anyone please help me.

    Thanks,
    Jayanth.


Problem with exporting to xcode and running in ios simulator

Posted: Wed Jan 02, 2013 10:26 am
by Kateryna Grynko

Hello,
We are looking for what caused it.


Problem with exporting to xcode and running in ios simulator

Posted: Wed Jan 02, 2013 3:09 pm
by Kateryna Grynko

Hello,

Navigation to page is working properly online but won't work locally because AJAX requests are forbidden by browser. To make it work you can change "Use full screen refresh" in properties of "Navigate To" action.

Also, you use Tiggr.applicationStorage for storing variables but this works on browser only for now. You can use localStorage instead of Tiggr.applicationStorage to make it work on device.