Building Konfabulator Widgets
Ranked #24,022 in Computers & Electronics, #455,569 overall | Donates to Humane Society of the United States
Konfabulator is a multi-platform widget environment. It'll let you create small little apps that do useful things - those little nagging things that you feel should be automated, but somehow, haven't been. This lens will give you an idea of how to write your own widgets.
This isn't a programming tutorial, instead it's designed more as a tip sheet to guide programmers into the Konfabulator environment.
If you've got no programming skills but have a real good widget idea, send me a note, maybe I can help anyway.
Konfabulator resources
- Konfabulator's home
- The root of all good known as Konfabulator.
- Konfabulator manuals
- Go here for the docs.
- Javascript Definitive Guide
- Best reference for Javascript. Recently updated, so it is accurate.
- Widget Converter
- Useful widget utility for bundling up your widget for distribution. A developer's must have.
- Latest widgets...
- Place to look for the latest developments...
1. Figure out what your want your widget to do...
2. Look to see if it has been created already.
It could save you a lot of time and hassle.
If not, that's where things start to get interesting. There might be a widget out there that is similar but not quite what you're looking for. Download a couple of those widgets and those can be the starting points for your exploration into widget development.
3. Get your hands dirty...
Sorry - I don't have time to teach you javascript...
The widget converter (link above) is the best bet for opening up the widget. A big advantage to widget development is that it is a pretty open system. No code hoarding (though some could obfuscate...).
So you can dig into the widget and change/improve what you need to pretty easily.
If you don't have a similar widget, well, then you're best off starting with their tutorial and finding out how the framework works. Once you do the "Hello World" you should have a good idea of how to build apps.
4. Development/Testing cycle
Use the LOG method Konfabulator provides. Its your printf or System.out utility. To enable display of the log methods, use on within your widget tags. Don't forget to turn it "off" before you ship though!
For visual/layout issues, I tend to use baby steps. Don't change several things at once. Make small changes so that if things go wrong, you don't have too many things to check. Visually, it is easy to get things confused with just minor changes (everything within a frame won't appear if the frame isn't set up properly for example).
And for the Javascript issues, well, baby steps again. Some basic tips:
1 - Use Object has a hash, its a convenient flexible data store.
2 - Use methods as much as possible, code-reuse as well as being able to organize the flow of your app.
3 - Use asynchronous file fetching when possible. Synchronous fetches will freeze the widget while waiting for the file.
4 - Use the LOG method - include variables in your messages so that the messages are more useful/informative. Comment out the unneeded log messages instead of deleting them (just in case you need to uncomment them out later).
5. Submit the bad boy!
Don't take it too personally if people have suggestions. It means they like your widget enough to use it, and would enjoy it even more if it had feature X.
Pat yourself on the back - job well done.
And now go add feature X...
by beta2215
I'm a new father. June 15th, 2005 is when it all started. I am working
and my wife is figuring out how long she'll enjoy being a stay at home
mother...
more »
- 0 featured lenses
- Winner of 2 trophies!
- Top lens »
Explore related pages
- Free printable Behavior Charts,Reward Charts and Visual Cues to help with Autism Free printable Behavior Charts,Reward Charts and Visual Cues to help with Autism
- Free printable preschool level coloring pages Free printable preschool level coloring pages
- Which Programming Language Is Best? Which Programming Language Is Best?
- An Introduction to AJAX An Introduction to AJAX
- Web Development Tutorials Web Development Tutorials
- Holland Numerics Limited - SAS consultancy Holland Numerics Limited - SAS consultancy