Discussion Forums  >  WebViews and HTML for Mobile

Replies: 6    Views: 209

LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
11/04/12 01:44 PM (13 years ago)

Getting html, css and js to talk to each other?

I have been most impressed with 'Swipeview' from http://cubiq.org/swipeview . The demo examples given work fine when tried in Safari web browser. It looked great too used in the Buzztouch app "Snow Forecast - White Christmas" by baywebnz. I am having a little trouble making it work for me though... In the example, it seems there is a .html file, a .css file and a .js file (and the .jpg images to swipe through of course). To test, I have put them all in the BT_Docs folder in Xcode (.jpgs in BT_Images). I have excluded the .js file from the compile and added it to the copy in build phases. A Buzztouch HTML screen brings up the HTML OK, but it doesn't seem to refer to the .css or .js or show the images. Am I missing a lot more code magic to get these files and Buzztouch to talk to each other? I would really appreciate some pointers... Thank you.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
11/04/12 02:08 PM (13 years ago)
Hi, Levensgardener, You have to really take a close look at all the urls that are used in your html, css and javascript. They all have to be relative. Example: if the/a url in one of the files points to: ../images/theimage.jpg you should correct that to: theimage.jpg Once you have done that for every url it should work. (I'm talking ios and don't know if Android handles this differently but I think both work the same way) Hope this helps. Best Regards, Danny
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
11/04/12 03:47 PM (13 years ago)
That is brilliant Danny- it worked! Thank you so much... Chris
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
11/04/12 04:17 PM (13 years ago)
Gladd it helped!! Best Regards, Danny
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
11/05/12 12:09 AM (13 years ago)
Nice find Levens. This can be used for image gallery.
 
LevensGardener
Aspiring developer
Profile
Posts: 220
Reg: Sep 30, 2012
Kendal
10,450
like
11/05/12 12:13 AM (13 years ago)
Yes, Sandeep. In my case, I hope to use it as part of a guide- to swipe through galleries of plant images to help users identify what they might be looking at...
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
11/05/12 12:55 AM (13 years ago)
Have a look at the following link to find another jquery photo gallery by photoswipe and also a link to one of my android app in which i have used the photoswipe jquery framework. I think you will find this one useful too. Link to website: http://www.photoswipe.com/ Link for the tutorial: https://www.buzztouch.com/forum/thread.php?tid=5C9DD8EB8CE0D983C17FDFC&command=isSearching&currentPage=1&topicTitle=tutorial&createdBy=ceerup&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= Link for my android app: https://play.google.com/store/apps/details?id=com.wbjustintriviaandfanquiz
 

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.