Calling javascript functions

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
jpaxtons
Beginner
Beginner
Posts: 2
Joined: Thu Sep 22, 2005 6:44 pm

Calling javascript functions

Post by jpaxtons »

Greetings!
Slick menus and I see I can showmenu or url. I don't see a way in the documentation where I can call my own Javascript function--(think ajax)
Is this possible and if so what is the syntax?

Thanks,
have a lot of fun,

Paxton
stuart
Advanced
Advanced
Posts: 14
Joined: Sat Aug 20, 2005 7:35 pm

Post by stuart »

Hi Paxton

Calling javascript is easy
The simplest way (and I'm no expert here) is to add the javascript function to you menu item declaration
aI("text=Spam Assassin;url=http://www.spamassassin.org/;onfunction ... vafunction[/i]");
you can also use offfunction, clickfunction etc.
There may be more options as well that I'm not aware of.

Have a look at the Quick reference guides and sample applications
e.g. http://milonic.com/menusample15.php
jpaxtons
Beginner
Beginner
Posts: 2
Joined: Thu Sep 22, 2005 6:44 pm

Post by jpaxtons »

Stuart.
Great! I found your referances, thank you!

Have fun!

Paxton
Post Reply