Results 1 to 22 of 22
- 01-26-2013, 03:23 PM
Thread Author #1
BBUI.js actionBar and actionMenu
Hello,
I have already created my app (A currency converter) using HTML5 WebWorks and everything works fine but what I'm really looking for is 'the native blackberry look-and-feel' that BBUI.js offers. The problem I'm having is where to I put the code needed to create an actionBar and an actionMenu with sharing options within my index.html file or my home.html file (This is my first page that gets loaded on opening). I'm having this problem because I didn't really understand the tutorial in the github wiki and when I follow the tutorial on opensourcebb

and run the app in Ripple Emulator no pictures are shown much like in the image that I have attached.
I'm also looking into creating an update function and linking the code to a server or using an api to retrieve exchange rates (so that I don't have to do it manually when the rates change)
[If needed I will attach my .zip file of my whole application incase someone can help]
Any help would be very much appreciated.
Thanks in advance! - 01-26-2013, 05:20 PM #2
I've had nothing but trouble trying to get BBUI.js working in Ripple. I know it's doable, but Chrome is a PITA sometimes.
The easiest way to see the BBUI.js stuff in action is to download the entire sample at: https://github.com/blackberry/bbUI.j...master/samples
Package it in ripple as is, and run it on the simulator.
If you want to try some of it on your own, keep the skeleton from the sample (delete all the .htm files except index and menu). Menu.htm in this case is where your main content will go, since Index.htm is just the initialization file for the app. - 01-26-2013, 05:46 PM #3
First of all, please run some demo apps first.
You see that the base of every app is; Index.htm
In the index.htm you'll find; all the folders, javascripts and styling paths.
You also will see this line of code;
<Body onload="bb.pushScreen('menu.htm','menu')"></body>
The menu.htm is the file where you want to add your codes to.
BB.pushScreen means; it executes the menu.htm on top of the index.htm (with the styling). Without the index.htm the menu has no styling.
So run the base of your app, and the styling should be applied - 01-26-2013, 06:09 PM
Thread Author #4
- 01-27-2013, 03:37 AM #5
All your content should be in the home.htm . I'll send you a sample in about 2hrs
edit; i created a sample for you
Download samples.zipLast edited by jeroen_13; 01-27-2013 at 05:01 AM.
- 01-27-2013, 06:49 AM
Thread Author #6
- 01-27-2013, 07:36 AM #7
Yea sure. Just send it
Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-27-2013, 07:56 AM
Thread Author #8
Here it is, I have updated my config.xml as well. Have I done everything correctly and is there anything else I need to do or add? Thanks again for this
- 01-27-2013, 09:19 AM #9
it looks good, but you've to add all your <javascript> coding in a seperate .js file , and add this to your index.htm <script scr="linktoyourjs.js"></script>
btw i saw your 'to do list'
the portrait mode only ;
BB10
PlaybookCode:<feature id="blackberry.app"> <param name="orientation" value="portrait" /> </feature>
Code:<rim:orientation mode="portrait"/>
also; the 'auto updater'
you stored the current values in a <javascript> area, so if you put those values in a seperate .js file, you can upload that to a webhosting. via the webhosting you can change the value, because the app will get the values from the internet (your server)
Jeroen
edit; change thetoCode:<access uri="http://chart.apis.google.com" subdomains="true" />
with the "*" it is allowed to acces every domain. usefull for getting info from a serverCode:<access uri="*" subdomains="true" />
Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-27-2013, 09:57 AM
Thread Author #10
Hello, I have added the bits you said to add in, but since all of the code has been added I have lost my styling from my 'styles.css' file and have no idea how to put it back in because I tried: <script src="styles.css"></script> but that hasn't worked. So, could you take another look at my menu.html file and see where I can put it back in so that the menu.html file reads h1, h2 and h3 from the styles.css file?
Thanks for this - 01-27-2013, 10:22 AM #11
Replied via pm
Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-27-2013, 12:18 PM
Thread Author #12
Latest .zip
- 01-27-2013, 12:29 PM #13Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-27-2013, 12:45 PM
Thread Author #14
- 01-27-2013, 01:05 PM #15
rewritting the app... wont work...
the currency converter itself doesnt work. the currency input doesnt work. cant enter a value to be converted
the menubar now works correctly
http://updo.nl/file/cacb6650.zipDeveloper of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-27-2013, 01:09 PM
Thread Author #16
That's a bit weird, it works on the version I have now, I'll see what I can do. But thanks for getting the actionBar to work
- 01-27-2013, 01:19 PM #17Developer of; Crackberry Forums Reader app -> Crackberry Forum App (NON-ANDROID)
Playbook + BB10 DEV , APPS ON REQUEST PLEASE PM ME or EMAIL me @ Jeroen_13@crackberry.com
bbUI.js expert -- Need HELP ? Just PM me ! Blackberry Playbook 64GB WEBWORKS APP DEVELOPER & APP CONVERTER + SIGNING - 01-27-2013, 05:02 PM #18
[QUOTE=jeroen_13;7888088
You also will see this line of code;
<Body onload="bb.pushScreen('menu.htm','menu')"></body>
[/QUOTE]
Actually, that line hasn't been used for a long time in bbUI. - 01-27-2013, 05:04 PM #19
- 01-27-2013, 05:05 PM #20
You can use custom CSS/JS, you just have to load it from the index.html (I use html rather than htm, no difference really though) and not from the child documents.
Every file other than the index file in bbUI is actually a single div that's dynamically loaded into the index when it's requested. - 01-27-2013, 05:07 PM #21
- 01-28-2013, 10:26 AM
Thread Author #22
Hello, how would I get BBUI to load all of my pages? As it loads the menu.html file which has action bars but as soon as I click a tab to go somewhere else the actionBars are no longer there even though I have the code in the html files. Could you check out two version of my app please?
One was altered for me by jeroen_13 so that the actionBars would actually work but the currency converter doesn't function when it is put into a separate .js file.
And I have my original which the actionBars don't work on but the currency converter does
Would you mind checking them out to see how the styling could be sorted so that it looks like it's supposed to in the original? Any help would be appreciated.
[- My original one is called 'Currency Converter'
- The one alterted by jeroen_13 is called 'Currency']
Similar Threads
-
screenshots, screen capture and display plus video creation
By oppiTronic in forum Developers LoungeReplies: 61Last Post: 05-09-2013, 09:26 AM -
Copy and Paste for text fields in PlayBook WebWorks / BBUI?
By katesbb in forum Developers LoungeReplies: 3Last Post: 12-28-2012, 10:39 AM -
Win a BlackBerry PlayBook and other prizes in the OSBBx bbUI.js Contest!
By jtokarchuk in forum Developers LoungeReplies: 4Last Post: 12-19-2012, 03:10 PM -
A look at BB10 UI Elements (bbUI.js)
By kewlgreen in forum BlackBerry 10 Dev DevicesReplies: 4Last Post: 07-13-2012, 04:07 PM -
Help with bbUI.js
By goku_vegeta in forum Developers LoungeReplies: 3Last Post: 06-24-2012, 11:01 AM

Reply
















