SnTT: Lightbox image gallery for Notes
Category show-n-tell thursday
If you've listened to the latest episode of Yellowcast, you already know that I occasionally tinker with the (admittedly weak) JavaScript support in the Notes client, and today's SnTT showcases a few fun things it allows us to do at run-time during a button click, field event (i.e. onBlur), and various other events:
The example database shown in the tutorial is available for download... it's 11 MB, so it'll take slightly longer than most of my downloads, but the original version contained 36 wallpapers, which made the database 44 MB, so I figured 9 was enough to illustrate the point.
If you've listened to the latest episode of Yellowcast, you already know that I occasionally tinker with the (admittedly weak) JavaScript support in the Notes client, and today's SnTT showcases a few fun things it allows us to do at run-time during a button click, field event (i.e. onBlur), and various other events:
- document.bgColor is read-write, allowing us to change the background of a page/form.
- Button.value is read-write, allowing us to actually change the label of a button.
- As mentioned on the podcast, we can call LotusScript and Formula from within JavaScript by simulating a click event on a hidden button containing that code.
The example database shown in the tutorial is available for download... it's 11 MB, so it'll take slightly longer than most of my downloads, but the original version contained 36 wallpapers, which made the database 44 MB, so I figured 9 was enough to illustrate the point.

Comments
Posted by Tim Tripcony At 09:49:08 PM On 10/17/2008 | - Website - |
Posted by jack dausman At 05:49:04 PM On 10/17/2008 | - Website - |
Tim...great work and way to think outside (or is it inside) the box.
I love it. A simple and elegant solution. You are a patient man, playing with JavaScript inside the client. If only we had full JS support...
I started messing around with an idea for this last year, and gave up because I wanted the transparent background/can't edit anything underneath to work. Unfortunately, I couldn't figure it out, but I did end up hiding everything and throwing a layer on top. The idea of changing the background color is nice.
As always, thank you for sharing!
Posted by Chris Blatnick At 04:23:13 PM On 10/16/2008 | - Website - |
If you keep this up I am going to start calling you Santa Claus.
Great stuff.
E
Posted by Erskine Harris At 04:46:42 PM On 10/16/2008 | - Website - |