PDA

View Full Version : Executing fucntion on menu item click



Kloon
24 Feb 2010, 2:16 AM
Hi

I would like to know how I would go about adding a onclick that will call a function I wrote with a paramater?

Eg I want a certain meni item in my menu item to execute ViewReport(209)

I have tried the docs and searched forums but cant seem to find answers. Your help is appreciated.

tobiu
24 Feb 2010, 2:23 AM
handler : function(){
ViewReport(209);
}

Kloon
24 Feb 2010, 2:31 AM
Thanks again tobiu, working like a charm.