This is a demo of Krusader's embedded JS-interpreter, based on KJSEmbed.
It shows how to create a simple GUI from a .ui-file, connect UI-signals to JS-Functions and interact with Krusader (setting the window-title). I must confess that this is not very useful but it's a nice demo. ;)
-) Copy calc.js and calc.ui to ~/.kde/share/apps/krusader/js/
(you may have to create this dir)
-) Go to the UserAction Konfigurator-page and import action.xml
Please note, that the JS-extension-stuff is under heavy development. The interface may change in future. I've tested this with krusader-cvs-20050510.
The Calculator is based on a KJSEmbed examle and adapted to Krusader.