Discussion Forums  >  WebViews and HTML for Mobile

Replies: 2    Views: 211

petersmall
Aspiring developer
Profile
Posts: 8
Reg: Sep 13, 2012
Maidenhead UK
2,480
09/17/12 04:21 AM (13 years ago)

My local JQuery js and css files not being read

I have a web app that that works fine on an ipad and a Nexus 7 when I access it on the web. Using a webview plugin for buzzTouch, I created a link to the index.html of this app which I had placed in the BT_DOCS folder (in XCode). This worked fine in the simulator but looked weird because I hadn't included the JQuery js and css files that are needed to load and position the text and images. I then placed the relevant JQuery js and css files in the BT_DOCS folder, recompiled to run in the simulator but the screen image looked as it did before I included the js and css files. In other words, the JQuery files weren't being included. I have googled all day to try to find a solution but am getting more and more confused. It does seem to be a common problem but solutions seem highly complex. What I need to know is how to get my HTML document to instruct webkit to include the js and css documents (together with other js and css docs) when they are in the BT_DOCS folder. I've read scary looking instructions about making sure the docs are not compiled but I'm assuming that files in the BT_DOCS folder don't get compiled... ... and the buzzTouch package allows the HTML docs to load the appropriate js and css files that are in the same BT_DOCS folder. I will be grateful for a solution here, as I suspect many others will be.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
09/17/12 04:26 AM (13 years ago)
Hi petersmall, Have a look at my video about The Blog Pro Plugin. The procedure for you is the same. You have to delete your .js files from the "Copy Bundle Resources" and add them to "Compile sources". http://goo.gl/hg7Hq Hope it helps. Best Regards, Danny http://www.bt-addons.com
 
WebNevees
Code is Art
Profile
Posts: 206
Reg: Oct 28, 2012
KL
11,660
like
12/15/12 07:19 AM (13 years ago)
@petersmall: Did you succeed to get it right? @PSMDanny: Is this for Android as well? I am having no problems viewing the jquery mobile web site on chrome in my Nexus 7, but can not view it works without jqm on either of the two customURL and customHTMLDoc plugins in my buzztouch app. the jqm is not working there, and neither are my custom js files.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.