Discussion Forums  >  WebViews and HTML for Mobile

Replies: 27    Views: 202

RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
07/25/12 09:00 AM (13 years ago)

Offline html links

I'm making a menu using custom html and I will create links to other screens (in custom html too). I would like to know how to connect the buttons to these other screens, ie, as these pages will be named. ((nickname.html?)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/25/12 09:19 AM (13 years ago)
Hi @RB, You can literally link to other HTML pages, within the same HTML Doc screen, just link you do with normal HTML...with the standard href tag. So, here's the scenario: * User clicks on a Menu List item that takes them to an HTML screen * There are links in that HTML document that take them to other HTML documents...all within the same screen * User uses the Back button in the upper left corner to return to the Menu List I "think" there are ways to link to other screens types from within HTML, but it's a bit more difficult. If you just want to link together a series of HTML documents, it's standard stuff, and you can think of the HTML Doc screen as a mini browser (it's, in fact, a web_View screen). Mark
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/25/12 09:32 AM (13 years ago)
Hi Mark, Thanks about the informations. I have no problem with the mechanics. I just don´t know if I can use the nickname of the screen in the code to link or if the screens has a different name. I do not know too if the pages (custom htmls) are generated at the root. Thanks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/25/12 10:07 AM (13 years ago)
Hi, If you are going to link to different HTML docs within the same BT HTML Screen, then you can just reference the actual .html document. All those would go in your BT_Docs folder. Does that make sense? Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/25/12 10:24 AM (13 years ago)
The screen is merely a container that holds the html doc. There's no known way to link to a screen from an html link. It's possible, but no one has figured it out. You could use a Nav bar or Right Nav bar button. The screen nickname won't help you in a link. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/25/12 10:29 AM (13 years ago)
For additional Custom html text screen info go to www.MySkylla.com and use the search button. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/25/12 11:15 AM (13 years ago)
Thanks Fred.I´ll read. Mark, I don´t know if I really understood.If I can link to the screen custom html from the screen menu, I beleive that I can link from the screen custom html menu. Right? Scope: 01 CUSTOM HTML SCREEN: intend to create a menu with 04 buttons using this screen (page) with random script em JS 04 CUSTOM HTML SCREENs (pages?): access from menu randomly Is it possible? Thanks
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/25/12 11:19 AM (13 years ago)
If I'm understanding you correctly, yes, it could be done, though I would use the HTML Doc screen instead of the Custom HTML Screen (this requires a trip to the buzztouch server to retrieve) if the info will be fairly static. * Create the HTML Doc screen, which would be the menu with 4 buttons (all written in HTML and JS) * Create the other 4 HTML files that server as targets for the four buttons * Link to those 4 HTML targets as you normally would using href * Put all 5 of the HTML files in the BT_Docs folder Am I on the right track? Mark
 
mrDavid
BTMods.com
Profile
Posts: 3936
Reg: May 21, 2011
San Diego, CA
51,910
like
07/25/12 11:32 AM (13 years ago)
Mark, that's correct as far as I'm concerned, I've linked like that, through, usually I just keep them online, Cheers, David buzztouchmods.com
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/25/12 12:17 PM (13 years ago)
I think so, Mark.I´ll try in this way. One doubt: "I would use the HTML Doc screen instead of the Custom HTML Screen (this requires a trip to the buzztouch server to retrieve) if the info will be fairly static" What exactly is? I intend to use in offline mode. No problem, right?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/25/12 12:59 PM (13 years ago)
Online, Offline (embedded) both work, use according to your needs. Embedded can also link to online sites. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/25/12 01:02 PM (13 years ago)
Thanks, Fred.
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/25/12 01:15 PM (13 years ago)
This screen (html doc) is very different from custom html, ie, I cannot create de code directly in the BT panel (much simpler). So I have to create the pages in an editor (dreamweaver) and compile in Eclipse, right? Can anyone give me guidelines on how to do this compilation? All this in order to randomize the links, right?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/25/12 01:54 PM (13 years ago)
Custom HTML/Text screen won't work in offline mode UNLESS the person has already requested that screen, and it's been cached. Otherwise, the app needs to make a trip to the server to grab that page. The HTML Doc screen allows you to link a known .html file (local or at a URL) to that screen. So, you can create HTML docs using whatever tool you want. Eclipse doesn't compile HTML, but it you include JS, there needs to be a way to exclude that from the compile. I know there is in iOS, but not sure how to do it for Android. I'll Google and try to figure it out. I'd highly encourage you to just give some of this a shot and see if it works the way you want it to. Just one or two test pages should do it! Mark
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/25/12 02:29 PM (13 years ago)
HTML Docs (Embeded) go into the assets folder of the Android app (Source Code). Anything in the assets folder is not compiled. The Custom HTML Text html resides online on the server and therefore is not compiled. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/26/12 05:05 AM (13 years ago)
I need to create a HTML doc screen for the menu´s page (with the random links) and one HTML doc screen for each page that the link will take? or just to the menu´s page?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/26/12 05:48 AM (13 years ago)
Use jQuery Mobile's multi-page html doc and have just one doc. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/26/12 06:28 AM (13 years ago)
Fred, I didn´t find this plugin. if I used would have to do one for each page then?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/26/12 07:11 AM (13 years ago)
JQuery Mobile is not a plugin. It's a method of creating your html doc. You can use the html doc screen. Google it. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/26/12 08:08 AM (13 years ago)
Great suggestion, Fred. It is the first time that I see it, but I read over and I guess that I will not have difficulties to implement it. Can I use JQuery Mobile to create random access to multiple pages (divs), right? For use with BT, just create the HTML page with code in JQuery and then associate DOC to HTML plugin, would it? Any other tip about this solution?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/26/12 08:46 AM (13 years ago)
Can I use JQuery Mobile to create random access to multiple pages (divs), right? Correct For heads up on creating random links read about document.write , concrete, sort and arrays. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/26/12 11:56 AM (13 years ago)
Can I use JQuery in offline mode? In the stuff I read, I need to reference an external file and I would like to create a offline app - totally.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/26/12 12:09 PM (13 years ago)
No problem you can add the jQuery library. Need to test if this is necessary. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/26/12 12:17 PM (13 years ago)
Fred, thanks, but I need more specifications/instructions. Add JQuery library where/how.... I need to include the library in the DOCs folder?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/26/12 12:41 PM (13 years ago)
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/29/12 03:11 PM (13 years ago)
I have not found where to store the reference JS files (jquery-1.7.2.min.js and jquery.mobile-1.1.1.min.js). It would also be in BT_DOCS?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/29/12 04:35 PM (13 years ago)
Try without it, see if it works. Should work if there's a connection. Fred
 
RB
Aspiring developer
Profile
Posts: 150
Reg: Jun 29, 2011
BR
6,150
like
07/29/12 06:24 PM (13 years ago)
Hi Fred As I am developing an application offline, I removed the URL. Thus appears the page without implementations. Like the other project pages are all together in the folder BT_DOCS, I decided to include them there. "Js" too. But it did not work. Thanks
 

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.