| Java menu knowledge base Scripting around applets
Activating javascripts from a menu applet
Many of our applets can activate javascripts attached to individual
entries, just like HTML hyperlinks.
How to do it
If you look at your index file with a simple text editor, you may
see some entries that look like:
"LINK:myPage.htm,myFrame"
Replace this with:
"SCRIPT:myFunction()"
and then write a javascript function on your page called
myFunction(). You can also combine such script commands
with page loads and other commands:
"LINK:myPage.htm,myFrame;SCRIPT:myFunction()"
The above loads a page into a frame and then triggers
a javascript. Note that the javascript must be in the same
page as the applet, unless you use the normal javascript
commands for accessing other frames and windows.
Other things to know
(1) Very ancient browsers (like version 3 or older) can't do this.
(2) We cannot help you write javascripts.
(3) Further information on index file writing is here.
(4) This feature is not supported by Mac IE using the MRJ/OS9.
|
|