Hey - another thanks from me - helped a lot.
On Aug 8, 6:18 pm, "Justin Perkins" <[EMAIL PROTECTED]> wrote:
> There's a few different ways you can do it, here's one:
>
> function showModal(elementID, event){
> $(elementID).slideDown();
>
> }
>
> document.observe('dom:loaded', function(){
> $('addEmpButton').observe('click', showModal.curry('add'));
>
> });
>
> Note the newer technique for running code when the page is loaded
> (available in Prototype 1.6) and the use of the Function#curry.
>
> Read more here:http://prototypejs.org/api/function#method-curry
> and:http://prototypejs.org/api/document/observe
>
> -justin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---