Active
Project:
phonegap
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Nov 2011 at 14:09 UTC
Updated:
23 Nov 2011 at 08:32 UTC
I can connect to my site fine enough and can see my list of articles but when I click on any article header, I'm getting an "Error Loading Page" alert on all of them. I'm not sure if it helps, but the links start with a "f:///" and then the url alias (e.g news/title-of-news etc )...
I wonder if it's got anything to do with this? https://github.com/jquery/jquery-mobile/issues/991
I'm testing it on iOS 5, Xcode 4, iPhone...
Comments
Comment #1
jonanthony commentedI am hazarding a guess here but I suspect it is because you have a short url in your anchors
e.g. "/node/4"
instead of
"http://mysite.com/node/4"
The best thing about phonegap is that you can test the code in firefox fox using firebug etc.
However because of cross site origin policies of browers (to prevent cross site scripting attacks etc), you either have to put the www folder in the root of your domain or download the "CORS" plugin for firefox, which allows you to turn off the cross site origin policy.
With CORS plugin you can test the code locally in firefox otherwise put the www folder somewhere on your site and test there
Let me know how you get on. The best way will probably be to custom format the url in your view.
good luck
Jon Anthony
Comment #2
irous commentedAhhh, I guess I was expecting the linked article to load in dynamically into the app than through a http:// link which opens the actual page on my site.
I've changed my view and made those links into absolute urls, and yeh, once you click the article header, it does just that. And I should have realised it earlier, because the demo does that too! http://www.adappt.co.uk/www/#home
I guess if you wanted it to load the article in dynamically, you'd have to create another page section in index.html, make a specific view in drupal to show an article (title and header), make a post request etc..
Comment #2.0
irous commentedslight correction with link