Welcome to the CrackBerry Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 7 of 7
  1. kifac's Avatar
    CrackBerry Abuser

    Posts
    209 Posts
    Global Posts
    214 Global Posts
    Thread AuthorThread Author   #1  

    Default Pill Buttons Webworks help!

    alright guys so im new to dev and iv pretty much got the hang of things working the buttons and list etc. but i cant get this damn Pill Buttons to work properly.
    https://github.com/blackberry/bbUI.js/wiki/Pill-Buttons

    Im building a transit app and i want every tab (pill button) to show different type of information like a certain route would have different times depending on whether or not its weekday or weekend. The user could choose. Any ideas?
  2. jadouber's Avatar
    CrackBerry User

    Posts
    85 Posts
    #2  

    Default Pill Buttons Webworks help!

    Quote Originally Posted by kifac View Post
    alright guys so im new to dev and iv pretty much got the hang of things working the buttons and list etc. but i cant get this damn Pill Buttons to work properly.
    https://github.com/blackberry/bbUI.js/wiki/Pill-Buttons

    Im building a transit app and i want every tab (pill button) to show different type of information like a certain route would have different times depending on whether or not its weekday or weekend. The user could choose. Any ideas?
    Could you post some code so we can see what you have that isnt't working?
    BlackBerry World submissions

    YahtC - Check it out here!

    Free Yahtzee game for you and your friends! Step up to the challenge and see who is the Yahtzee-champion!

    Leave a review, thanks!
  3. neilwick's Avatar
    CrackBerry Abuser

    Posts
    270 Posts
    #3  

    Default

    Get the samples app from GitHub and use that as your guide. I find that having an example helps a lot.

    Aside from that we don't know what you have nor how it's behaving so it's hard to say what could be wrong.
  4. kifac's Avatar
    CrackBerry Abuser

    Posts
    209 Posts
    Global Posts
    214 Global Posts
    Thread AuthorThread Author   #4  

    Default

    I can get the tabs to show but whenever i click on them...nothing changes on the screen. The same information shows other then different info appearing depending on the tab you choose.
  5. neilwick's Avatar
    CrackBerry Abuser

    Posts
    270 Posts
    #5  

    Default

    I'm a little confused by your explanation. "The same information shows" and "different info appearing" sound like opposites. So I guess I have two questions: does the slider on the pill buttons change? Does the information that you want to display change?

    Assuming you are running Ripple in Chrome, you should right-click and click on "Inspect Element." Near the bottom right corner, there may be a red circle with a white X and a number beside it. That tells how many errors you have. Click on that and you may find something about what's wrong. I'm wondering if you remembered to include the JavaScript file. Without seeing your code and what happens when you try to run it, it's impossible to guess what the problem is.
  6. schmeat's Avatar
    CrackBerry Abuser

    Posts
    228 Posts
    Global Posts
    229 Global Posts
    #6  

    Default

    Quote Originally Posted by kifac View Post
    I can get the tabs to show but whenever i click on them...nothing changes on the screen. The same information shows other then different info appearing depending on the tab you choose.
    You have to have block style none for the tabs that aren't showing and then show the one that's being clicked. You can do it through java script, that's how I do it.

    Just wondering. What city are you doing the transit app on?

    Posted via CB10
    Still no openVPN support in BlackBerry 10. The only platform to not have it.
  7. kifac's Avatar
    CrackBerry Abuser

    Posts
    209 Posts
    Global Posts
    214 Global Posts
    Thread AuthorThread Author   #7  

    Default

    I used the sample just like you guys said and i finally got it to work!
    Im developing a transit app for mississauga. Just the basics for now till i get the hang of things.

Similar Threads

  1. blue flash after button press help?
    By D_Town_Tony in forum Theme Developers Corner
    Replies: 2
    Last Post: 06-07-2009, 07:56 PM
  2. Pick Unlock/Wake Button?? / autocorrect help
    By syndacate in forum BlackBerry Storm
    Replies: 5
    Last Post: 01-19-2009, 11:43 AM
  3. options button INOP....help?
    By triplecrown in forum BlackBerry Storm
    Replies: 5
    Last Post: 12-09-2008, 07:20 AM
  4. SMS Button Missing-HELP!?
    By JSimonJRN in forum BlackBerry Curve 83xx
    Replies: 2
    Last Post: 06-28-2008, 02:18 PM
  5. shortcut "P" Button problem-Help!
    By stalebread in forum BlackBerry Curve 83xx
    Replies: 3
    Last Post: 02-13-2008, 08:19 PM

Posting Permissions