Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 83

MobiGeni
Aspiring developer
Profile
Posts: 65
Reg: Jan 09, 2013
Akersloot
1,350
02/27/13 11:37 AM (12 years ago)

HTML Doc, deeplink, anchor

I have an index.html with 4 for different sections in it setup and set it up with HTML doc. What I actually want to achive is linking from the tabs to an anchor link in the index.htm file tab1 goes to index.html tab2 goes to index.html#section2 tab2 goes to index.html#section3 tab2 goes to index.html#section4 Also also added this screens in buztouch, just typed them in the tabbed layout. But when running in the simulator I got this error. Data for this screen has not been downloaded.please check internet connection. I guess It cannot handle the anchored links in a html page. Anybody got an idea if this is possible? Thanks Vidal
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/27/13 01:25 PM (12 years ago)
Hi Vidal, I tried the same thing some time ago, trying to create a glossary of words using a single HTML file. I got the same results as you, so it seems to me that this sort of configuration doesn't work in a webView unfortunately. Would love to hear from anybody who has been successful at it! Mark
 
MobiGeni
Aspiring developer
Profile
Posts: 65
Reg: Jan 09, 2013
Akersloot
1,350
like
02/27/13 02:40 PM (12 years ago)
Hi Mark, glad to hear I'm not the only one with this creative idea :D. Maybe David @ buzztouch has a hack for this? :)) Vidal
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/27/13 03:04 PM (12 years ago)
I asked him about it when I ran into the issue. The solution wasn't obvious at the time, and I know he has tons of pressing issues to deal with at the moment. I'll do a bit more research and see what I can figure out. There must be an answer somewhere! Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
02/27/13 04:12 PM (12 years ago)
 
ehwright
Aspiring developer
Profile
Posts: 57
Reg: Feb 21, 2012
Perth
2,370
like
05/01/13 06:48 PM (12 years ago)
Hi Guys, I've been working on a html screen, it has tabbed sections and links for different content. I didn't have the same error message as you, but when I used a url for my html file, I found that none of the links were working on android. On IOS it was working fine. I originally had the file in the project, and it was ok, but when I needed to change something in the html, I changed the buzztouch configuration to a url and that's when the problems started. I looked here and also the link that Mark provided. After a lot of fiddling I found something that worked so I thought I'd share it with you. In the html doc code I modified the following: //load html string... public void loadDataString(String theString){ BT_debugger.showIt(activityName + ": loadDataString"); //webView.loadDataWithBaseURL(null, theString, "text/html", "utf-8", "about:blank"); webView.loadUrl(dataURL); hideProgress(); } I commented out the webView.loadDataWithBaseURL line and added the webView.loadURL line. I did this because it was suggested that the reference needed the full url for the links to work. If the loadDataWithBaseURL was used, it used cached text. Once I made this change, the links suddenly worked. Of course it means that the file cannot now be cached but I figured that it was worth it to have the screen doing what I wanted it to. This is the link to my app on google play if you'd like a look: https://play.google.com/store/apps/details?id=com.communitytogo.sson&feature=nav_result#?t=W251bGwsMSwyLDNd The tabbed content is in the event planner Liz
 

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.