From: Jesse V. <je...@6t...> - 2003-08-08 13:59:50
|
I love the DynAPI menus, so far, everything is working great.....but.... 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 |