jquery-archive / jquery-mobile

jQuery Mobile Framework
https://jquerymobile.com
Other
9.7k stars 2.41k forks source link

WebOS and Phonegap won't work #986

Closed Jabo closed 13 years ago

Jabo commented 13 years ago

When trying to start a project which was compiled using Phonegap and jquery-mobile (tested 1.0a3) the follwing appears in the console:

error: Not allowed to load local resource: file://.media.cryptofs.apps.usr.palm.app....... Program won't start.

Please see description and workaround at: http://developer.palm.com/distribution/viewtopic.php?f=11&t=10978

jhaag75 commented 13 years ago

I was going to report this same issue as I have also encountered it on Web OS 1.4.5.

I also tried the suggested update in your link from the Palm developer forum and that didn't resolve the issue either so that post is not a solution to the problem.

I created an app using JQuery Mobile and it works great on all mobile browsers:

http://mlearn.adlnet.gov/tip

However, when I package this content using the SDK and phonegap and test it on the device I receive the error:

error: Not allowed to load local resource: file:/

This happens for any file that is accessed once the index page is loaded. The content never loads the transition and is stuck at the "loading" message before any page can load and the debug log reports this error code.

So I suspect something is different when running web content locally using location hash. I don't know if anyone can verify, but find it odd that this issue doesn't occur for the same content running through the browser on Web OS.

jhaag75 commented 13 years ago

BTW, the local file being referenced on Web OS is mojo.js:

script src="/usr/palm/frameworks/mojo/mojo.js" x-mojo-version="1"></script

toddparker commented 13 years ago

This is a duplicate of #991 so I'm closing this so we can track this in a single place (thanks jhaag75). https://github.com/jquery/jquery-mobile/issues#issue/991