[Nitro] PATCH: adds params to AJAX helper generated functions.

Bryan Soto bryan.a.soto at gmail.com
Wed Apr 5 17:02:21 EDT 2006


I've applied. Thanks for the patch Massimo.

On 4/4/06, Bryan Soto <bryan.a.soto at gmail.com> wrote:
> If there are no objections, I'm going to apply this.
>
> On 3/25/06, Massimo Maria Ghisalberti <nissl at tiscali.it> wrote:
> > in my opinion, but this patch is mine ;)
> >
> > it is useful because I need to have the id of the element that send
> > click event (for dispatching to a single page method handler), but in
> > general a javascript event handler will must to have an object event as
> > first parameter, in special case for mozilla browser where the object
> > event is internal to event handler, not is the case of IE where exist a
> > global window.event.
> >
> > the right js generated will must be (pseudo):
> >
> > event_handler_function(event, param){
> >
> >         var Ev;
> >         if (window.event)
> >                 Ev = event = window.event
> >         else
> >                 Ev = event
> >         ...
> >         handler code
> >         ...
> > }
> >
> > in the single param you can pass any sort of data... simple type or
> > complete object, obviously is you responsability to handle this right.
> >
> > ciao
> >
> > Massimo
> >
> > Il giorno sab, 25/03/2006 alle 00.06 -0800, Bryan Soto ha scritto:
> > > Adds code submitted via mailing list and a testcase.
> > >
> > > See http://rubyforge.org/pipermail/nitro-general/2006-March/003453.html
> > > for more info.
> > >
> > > I wanted to get some more opinions on this one.
> > >
> > > Thanks.
> > >
> > > --
> > > "Never tell people how to do things. Tell them what to do and they
> > > will surprise you with their ingenuity." —General George S. Patton
> > > _______________________________________________
> > > Nitro-general mailing list
> > > Nitro-general at rubyforge.org
> > > http://rubyforge.org/mailman/listinfo/nitro-general
> > --
> > Massimo Maria Ghisalberti <nissl at tiscali.it>
> >
> >
> > _______________________________________________
> > Nitro-general mailing list
> > Nitro-general at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/nitro-general
>
>
> --
> "Never tell people how to do things. Tell them what to do and they
> will surprise you with their ingenuity." —General George S. Patton
>


--
"Never tell people how to do things. Tell them what to do and they
will surprise you with their ingenuity." —General George S. Patton




More information about the Nitro-general mailing list