Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: bbUI.js overhaul


bert2002 wrote:

ha! working perfectly. Many thanks. Code will be online tomorrow!

A built in function for the grid would be helpful anyway :smileywink:


Cool,

 

The issue was that you had a syntax error and quotes within quotes.. the following would also work:

 

listItem.setAttribute('onclick', 'alert("Hi");');

 

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
bert2002
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: bbUI.js overhaul

Unfortunatly setAttribute is not working. same for listItem.onclick which I first thought would work, but it is always referencing to the last Item. May be I need to set the onclick event on a different or unique div. 



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Please use plain text.
Developer
bert2002
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: bbUI.js overhaul

Hi,

 

so unfortunately I couldn't manage to get it working as I wished. Anyway, the application is fetching a rss feed from smugmug and creating the image grid automatically and adding a (only one) context menu. May be some one get it working with a context menu for each image... I had to set the size of the pictures smaller so the app is useable.

 

Was the first time to work with bbui.js and must say its a nice framework, but still need some features and enhancements :smileywink:

 

Source code: http://blackberry.itbert.de/smugmugviewer/smugmugviewer.zip

Signed Bar file: http://blackberry.itbert.de/smugmugviewer/smugmugviewer.bar

 

 

 


 

yeah was fun!



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: bbUI.js overhaul

Really weird....  I can't think of anywhere that the onclick would be stripped... I'll double check when I get back in the office and see if I can post an example.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: bbUI.js overhaul

bbUI.js was a huge hit at BlackBerry 10 Jam.  We used it in the DEV145 Advanced WebWorks lab to show developers how to build UI for BlackBerry 10 easily in their WebWorks apps.

 

I was very pleased to see how excited developers were about it, and how easy it was for them to get started with it in their app development.

 

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
Developer
supraking
Posts: 99
Registered: ‎10-04-2010
My Device: Not Specified

Re: bbUI.js overhaul

First off, a big THANKS to the team working on the bbui project.

 

bert: it's funny, I've been working on a simple gallery viewer for smugmug as well :smileyhappy: It looks like you move a LOT faster than I do. If you're interested in collaborating on an app together, please let me know! I'm happy wireframing and designing it, and we can put together a development roadmap and get started!

 

I've also got a couple other projects that I'd like to get going on and you may like to join me on those too. In the meantime, happy coding!

Please use plain text.
Developer
supraking
Posts: 99
Registered: ‎10-04-2010
My Device: Not Specified

Re: bbUI.js overhaul

Adam, Tim: Can we expect a lot more code (sample apps, routines, etc.) to be posted in the coming weeks/months? Native developers seem to have a lot to draw on with Cascades, but there isn't much in the Webworks department for BB10/TabletOS devices. I'm referring to https://bdsc.webapps.blackberry.com/html5/sampleapps

Thanks again for all your great work and for being active here in the forums as well!
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: bbUI.js overhaul

I know there's been talk about the "desire" to replicate all the Cascades samples in WebWorks to show how to accomplish the same things.

 

Not sure about timing on this though.

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
BlackBerry Development Advisor (Retired)
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: bbUI.js overhaul

>> Can we expect a lot more code (sample apps, routines, etc.) to be posted in the coming weeks/months? 

 

Its an open source project, so contributions are more than welcome.

 

Feel like contributing to bbUI.js?


  1. Sign the contributor's agreement http://blackberry.github.com/howToContribute.html
  2. Submit a pull request https://github.com/blackberry/bbUI.js
Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: bbUI.js overhaul

Version 0.9.2 is now available

 

Some more details in the latest blog post.

 

Steaming ahead on v0.9.3.  Check out the items in the v0.9.3 milestone

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.