05-05-2012 11:38 PM
bert2002 wrote:
ha! working perfectly. Many thanks. Code will be online tomorrow!
A built in function for the grid would be helpful anyway
Cool,
The issue was that you had a syntax error and quotes within quotes.. the following would also work:
listItem.setAttribute('onclick', 'alert("Hi");');
05-06-2012 07:55 AM
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.
05-06-2012 11:15 AM
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 ![]()
Source code: http://blackberry.itbert.de/smugmugviewer/smugmugv
Signed Bar file: http://blackberry.itbert.de/smugmugviewer/smugmugv


yeah was fun!
05-07-2012 09:22 AM
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.
05-07-2012 10:23 AM
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.
05-07-2012 09:56 PM
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
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!
05-07-2012 09:59 PM
05-08-2012 09:32 AM
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.
05-08-2012 09:40 AM
>> 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?
05-31-2012 09:36 PM
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