Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Back button with external URL when at top level
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andy Rennard  
View profile  
 More options Aug 10 2012, 11:29 am
From: Andy Rennard <andy.renn...@gmail.com>
Date: Fri, 10 Aug 2012 08:29:11 -0700 (PDT)
Local: Fri, Aug 10 2012 11:29 am
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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Gilligan  
View profile  
 More options Aug 10 2012, 7:06 pm
From: Sean Gilligan <msgilli...@gmail.com>
Date: Fri, 10 Aug 2012 16:06:15 -0700
Local: Fri, Aug 10 2012 7:06 pm
Subject: Re: Back button with external URL when at top level
You could try creating a top-level landing page (aka div) with id
#landing and then a separate page/div with id #home.  If #landing is the
iUI root, but you link to
http://yoursite/iuipage.html#home then you'll always go to the #home
page (with a visible transition that you might not want), but the
#landing page will be accounted for in the back button.  You could then
listen on one of the iUI extension events to call your external http
link and return to your native UI.

The "focus" event for #landing might be the event you want to use -- if
you want to catch things as early as possible (before the backward
transition from #home to #landing begins)

Remi's suggestion is good, too.  It will require some DOM manipulation
on your part, but will give you more control.

You might end up having to hack on iui.js a little yourself -- which
could be an opportunity to improve your JavaScript skills.  If you get
the basics working and there's away for us to modify iUI to better
support this type of thing - let us know.

-- Sean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »