Discussion Forums  >  WebViews and HTML for Mobile

Replies: 5    Views: 144

Ronin
Aspiring developer
Profile
Posts: 19
Reg: Jul 13, 2012
Arlington, VA
2,240
08/07/12 08:58 PM (13 years ago)

Are there specific tutorials on how to embed HTML5 docs in the source code?

I want to create custom HTML5 pages using something like JQTouch or iwebkit. Specifically, I want to create interactive contact pages that have buttons with different functions. I understand how to do this by linking to a page up on a web server, but I would like to directly embed this in the source code because the content is static. How to put in the HTML doc, CSS, and javascript in the source code so that it works correctly. Any direction would be greatly appreciated.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
08/07/12 09:10 PM (13 years ago)
That would be cool. I'm studying JavaScript and JQuery, and I don't think you can link in all of the extra jQuery files. But I haven't tried it yet. I know you can drag in the image files. In Android drag the images to the BT docs folder with the HTML files.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/07/12 10:28 PM (13 years ago)
The HTML doc, CSS and Javascript can all go in the BT_Docs folder. Reference the CSS and JS in the HTML as if it were a local resource. Xcode has to be told not to compile the JS, otherwise it won't work. I have link for a resource on how to do that on my laptop. When I get it, I'll post it. Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/07/12 10:36 PM (13 years ago)
Not the link I was looking for, but it'll get you going: http://www.icab.de/blog/2011/08/02/adding-javascript-files-as-resources-to-an-xcode-project/ Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
08/07/12 11:43 PM (13 years ago)
In Android anything placed in the Assets folder is not compiled. HTML docs, javascript, css, HTML images files shouldn't be compiled therefore they go in the Assets folder. Fred
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
08/07/12 11:55 PM (13 years ago)
Good Android ref, Fred...thanks! The link I was looking for has gone 404. But the one above provides the same info. Mark
 

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.