I want to write a function like this:

function Load_AutoComplete($sFunc){

        new Ajax.Autocompleter("autocomplete_name",
"autocomplete_name_choices",
                "library/common.php?cmdCommand=PatientLookup",
                {afterUpdateElement: $sFunc});

}

Load_AutoComplete('MyFunc');


As you probably know, this doesn't work. Can someone tell me how to
pass the afterUpdateElement as a parameter?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to