Ahh...I was thinking of trying that, and then thought....no, that'll never work!  I should've tried it before posting!

Thanks Raymond.

Jesse

Raymond Irving wrote:
Hi Jesse,

The trick is to pass you function to the callback as a
string:

mbar.addItem(null, 'Save',  'save',
'savePage(arg1,arg2)');

That's it!

--
Raymond Irving


--- Jesse Vitrone <[EMAIL PROTECTED]> wrote:
  
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


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


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