[Catalyst] Patch for HTML::Widget to ease addition of javascript events
Andreas Marienborg
omega at palle.net
Mon May 8 15:44:50 CEST 2006
hms, its generated with svk push -P.
the method adds is $element->events(onchange => "alert('etc')").
to set attributes there is already support for I think, but this
gives you the benefit of not putting events not supported by an
element on that element.
andreas
On 8. mai. 2006, at 15.37, Carl Franks wrote:
> Andreas,
>
> Thanks for the patch, but I haven't been able to apply it, I'm not
> sure why it's not working.
> If I try using my patch program, it chokes on line 321. If I try using
> TortoiseSVN, it complains about a missing "Index:" line.
>
> Anyway, I'd prefer just a generic method to add arbitrary attribute
> name=value pairs to elements.
> I don't know whether anyone else (sri?) has any preference.
>
> Cheers,
> Carl
>
>
> On 04/05/06, Andreas Marienborg <omega at palle.net> wrote:
>> The patch is against trunk at oook.de.
>>
>> It adds an accessor to ::Elements and sub-classes called events().
>>
>> In addition every class has the events it supports added to it, so
>> you cannot add events that does not exist for a particular element.
>> Any others are silently ignored for now.
>>
>> http://palle.net/~omega/html-widget/events-support.patch
>>
>>
>> andreas
>>
>>
>> _______________________________________________
>> Catalyst mailing list
>> Catalyst at lists.rawmode.org
>> http://lists.rawmode.org/mailman/listinfo/catalyst
>>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
More information about the Catalyst
mailing list