Discussion Forums  >  Uncategorized

Replies: 1    Views: 475

baywebnz
Aspiring developer
Profile
Posts: 92
Reg: Oct 25, 2010
location unknow...
920
02/11/11 03:16 AM (15 years ago)

Linking other screens in html

Hi, Is there a way that in an html screen i can link to another buzztouch screen, not another html page? Thanks
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/11/11 10:53 AM (15 years ago)
This has been asked a few times and is a bit tricky. It can be done but does take some kung-fu. The idea is that you would create regular hyperlinks in your HTML then clicking one would call an Objective-C method. The method you'll be interested in is: +(void)handleTapToLoadScreen:(BT_item *)parentScreenData:(BT_item *)theMenuItemData:(BT_item *)theScreenData; This method is in the BT_viewControllerManager class and expects some parts to passed to it when you call it. If this is beyond your understanding, I would do this: First create a simple method in BT_customURL.m or BT_customHTML.m (depending on which buzztouch screen you are working with. The method could be like this... -(void)myCoolMethod{ NSLog(@link clicked); } Then, see this URL on how to create your special links: http://stackoverflow.com/questions/3442390/using-uiwebview-links-to-call-a-function Next, see if you can create your special links to call your custom method. If you can, re-post and I'll explain how to get your special method to trigger the buzztouch method (above) to load the next screen. Hope this helps.
 

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.