Re: Back button with external URL when at top level

22 views
Skip to first unread message

Remi Grumeau

unread,
Aug 10, 2012, 12:46:01 PM8/10/12
to iphone...@googlegroups.com
Looks at the iUI-logevent.js in iui/js.  This will activate beforetransition/aftertransition events. Then you might be able to show/hide a button based on those event (knowing your homescreen ID value.

Remi

Sent from my BlackBerry® PlayBook™
www.blackberry.com


From: "Andy Rennard" <andy.r...@gmail.com>
To: "iphone...@googlegroups.com" <iphone...@googlegroups.com>
Sent: August 10, 2012 5:29 PM
Subject: Back button with external URL when at top level

Hi - I'm using iUI inside a UIWebView in an native iOS app - I'm using it to display user documentation, and it looks nice. 

I have a problem though - when at the top level of the uIU hierarchy, I want to back button to stay visible (with a custom label), and when clicked I need iUI to fire off an external http:// request, which my native app can intercept and pop the iUI off my navigation stack.

I've tried a few things, but I'm struggling to get it to work. I get get a button to appear, but it doesn't seem to do anything when at the top level. I've tried adding a new pattern to the native URL patterns, and trying to intercept that, but I never see the request being fired. 

My Javascript skills are not great...anybody know how to solve this problem ? 

Thanks !

-- 
You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
To post to this group, send email to iphone...@googlegroups.com.
To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
Visit this group at http://groups.google.com/group/iphonewebdev?hl=en.


Reply all
Reply to author
Forward
0 new messages