Quote:
|
- Can it be forced to open new tab in existing browser instead of new window?
|
I don't think it is possible. Anyway, the choice should be left to the user.
Quote:
|
- If answer to above is negative, can I force the new window to have scrollbars?
|
Not if you only use the xml file, but you can if you use a
js file.
Quote:
|
- I don't know how to use js for zimlets...although willing to learn. Really need a super simple sample of how the definition and js files work together so as to see what role each plays if js file is used.
|
To use a
js file, you put in the xml :
Code:
<include>thefile.js</include>
<handlerObject>Zimlet_Object_Name</handlerObject>
In the
js file,most of the time you write those lines to define the zimlet object :
Code:
function Zimlet_Object_Name() {
}
Zimlet_Object_Name.prototype = new ZmZimletBase();
Zimlet_Object_Name.prototype.constructor = Zimlet_Object_Name; As you can see, you are using the object ZmZimletBase, so you can rewrite in your
js file some of the ZmZimletBase methods to change the zimlet
behavior.
I recommend you to look at the file ZmZimletBase.
js to see all the available methods.
Some of the methods : init, dodrop, singleclicked, doubleclicked, menuItemSelected.
Here is a link to a simple zimlet with a
js file managing the event of the click on a right-click menu item :
Help needed. Simple Zimlet