12-11-2013 01:43 PM - edited 12-11-2013 02:14 PM
I checked all bbui guides but they all refer back to a back button.
I have a back button under in the actionbar, which is good it should be there.
I am looking for a titlebar cancel button, when i press this button it should ignore anything and just go back to the first screen (in my case is this home.html).
<div id="camerasavebar" data-bb-type="title" data-bb-caption="Save picture" data-bb-action-caption="Save" data-bb-img="" data-bb-back-caption="Cancel" onactionclick="doSavealluploads()"></div>
This: data-bb-back-caption="Cancel" will always return one page back, which should not be because there is where i have a back button for.
I already have the onactionclick in use so that one i can't use anymore.
Oh i had an other question, is there a way to detect if the app is being closed or put in active frame?
And how can i make a link (clickable) that goes directly to my BBM channel? (app is already connected to bbm)
Solved! Go to Solution.
12-11-2013 06:52 PM
Within BBUI, the upper-left Back button for Title Bars is not customizable. You *might* be able to override the default click behaviour by setting an onclick function, or by using Web Inspector to figure out the element ID (after BBUI does its processing of the page), and then setting a click handler on that item directly (i.e. within the ondomready function), but the framework itself isn't set up to do this, you'll have to hack around a bit. BBUI aims to follow UI guidelines, and the guideilne for the Cancel/Back button in the top left corner is to return to the previous page (just like the Back button on the Action Bar.)
You can use the windowstatechanged API to determine state changes:
You can invoke your BBM channel using the Invocation Framework as outlined here:
12-11-2013 07:59 PM
12-11-2013 10:59 PM
12-12-2013 05:04 AM