I have something like this:
mbar.addItem(null, 'Save', 'save', savePage);
And that works fine, but I'd like to have multiple save menu items, all calling the same method, but with different arguments. Is there a way to pass args to that savePage callback? Doing something like this:
mbar.addItem(null, 'Save', 'save', savePage(arg1, arg2) );
Just results in savePage being call right then, when the menu is being created.
Is it possible to pass params, or do I need a different function for each menu item?
Thanks, Jesse
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help