Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 14    Views: 101

immacul8 apps
Aspiring developer
Profile
Posts: 58
Reg: Sep 10, 2012
adelaide
580
08/18/14 10:45 PM (10 years ago)

How to open another customHTML page from within a customHTML page

I currently have my "home" page as a customHTML page. I Then have a html "menu" button" How can i open another customHTML page name "menu" using html/js ?? I want to achieve this because the 2 pages properties are different. one has no nav bar the tother does. Or i would just load another page inside the same customHTML. Thx
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/18/14 10:52 PM (10 years ago)
 
immacul8 apps
Aspiring developer
Profile
Posts: 58
Reg: Sep 10, 2012
adelaide
580
like
08/18/14 11:01 PM (10 years ago)
Surely I can do it without that plugin.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
08/18/14 11:07 PM (10 years ago)
iOS or Android? If for Apple iOS, then follow these steps to use a Custom URL Scheme, from the How To's section with my name: https://www.buzztouch.com/files/howtos/BuzzTouch%20URL%20Scheme%20with%20Xcode%205.pdf Use links in HTML pages, links in PDF files and links on Buttons to open up the specified Screen within a BuzzTouch app. This technique takes advantage of the iOS URL Scheme to register the BuzzTouch app with a custom URL. From any app on the device, a tap on the custom URL myApp://myScreenNickname will launch the app into the screen with that nickname. -- Niraj
 
immacul8 apps
Aspiring developer
Profile
Posts: 58
Reg: Sep 10, 2012
adelaide
580
like
08/18/14 11:08 PM (10 years ago)
Sorry for android
 
CMCOFFEE
Android Fan
Profile
Posts: 2017
Reg: Jan 04, 2013
Amarillo, Texas
26,670
like
08/18/14 11:12 PM (10 years ago)
Niraj's "how to", works well with iOS. I didnt even think of the platform.assumed android ha I honestly dont think anyone knows how to do it for android on buzztouch or the html pro plugin might not be so popular ha. If someone took time they might to learn how to they might charge more for their service than the plugin. but hey you never know alot of people help for free too. there are alot of books and tutorials online though that im sure someone can figure it out if they took the time
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
08/18/14 11:27 PM (10 years ago)
Let's ask Kennedy to figure out the technique :-)
 
immacul8 apps
Aspiring developer
Profile
Posts: 58
Reg: Sep 10, 2012
adelaide
580
like
08/19/14 12:04 AM (10 years ago)
ok so i got the plugin. when i use a href="pageID" it has an error loading the page and says file:///android_assets/pageid doesn't exist I think this is because i have this line webView.loadDataWithBaseURL("file:///android_assets/", theString, "text/html", "utf-8", "about:blank"); instead of webView.loadDataWithBaseURL(null, theString, "text/html", "utf-8", "about:blank"); but i needed to change that to show images in my assets folder.
 
immacul8 apps
Aspiring developer
Profile
Posts: 58
Reg: Sep 10, 2012
adelaide
580
like
08/19/14 12:16 AM (10 years ago)
ok i loaded a new project. I've got <a href="EE6403E0EE882CE77C4C112"> i get "EE6403E0EE882CE77C4C112" page does not exist,
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/19/14 02:27 AM (10 years ago)
Hi Niraj, when you released the howto for the BT URL scheme (which I have used with great success - many thanks), I believe you mentioned you were planning (hoping) to do the same thing for Android. I was just wondering if you ever worked out if it was feasible?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
08/19/14 09:47 AM (10 years ago)
Make sure you are loading the HTML Pro screen in your app, not the original screen you used to display the HTML page.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
08/19/14 09:57 AM (10 years ago)
Just an hour ago, I gave our resident Android Dev a few tips (URLs) by which to get the custom URL Scheme implemented for the BT Android framework. Stay tuned, he will emerge possibly later in the week with a solution. -- Niraj
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
08/19/14 10:31 AM (10 years ago)
I'm tuned !
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
08/20/14 04:25 AM (10 years ago)
me too
 
immacul8 apps
Aspiring developer
Profile
Posts: 58
Reg: Sep 10, 2012
adelaide
580
like
08/21/14 12:09 AM (10 years ago)
Using the plugin is messing with my app. When im not using the plugin my app loads customhtml page hosted on buzztouch and all the pictures load from my assets folder. When I click a button and it goes to my next page also hosted on buzztouch none of the images load from assets. Any ideas why?
 

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.