He means doing
new Ajax.Updater(sld, {
...,
onComplete: function() {
if (sld == "something) { ... }
}
});
Best,
-Nicolas
On Nov 20, 2007 1:46 PM, Michael Peters <[EMAIL PROTECTED]> wrote:
>
> semi-sentient wrote:
>
> > I have a check in place to determine if the returned result is
> > numeric, but I need to update the appropriate DIV. The param "sId"
> > contains the element to be written to, and I need to know where in
> > prototype this is stored so that I can reference that ID and take the
> > appropriate action.
>
> Just use the variable. It's not stored anywhere in the object or it's
> prototype,
> it's just automatically available to it's lexical scope. It's called a
> "closure"
> (http://en.wikipedia.org/wiki/Closure_%28computer_science%29).
>
> --
> Michael Peters
> Developer
> Plus Three, LP
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---