Hi Jesse!

I have made it like this, 'nav(\'/default.ns?strItemID=index\')' and in
this case you should be able to add more arguments.

/Daniel

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jesse
Vitrone
Sent: den 8 augusti 2003 16:00
To: dynapi help
Subject: [Dynapi-Help] yet another menu question


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





-------------------------------------------------------
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




-------------------------------------------------------
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

Reply via email to