Kamal Gill | 11 Aug 18:19
Picon

Re: Re: Adding a javascript event handler to a widget

Hi Christian,

I would love to add this functionality to AT 1.3, but my knowledge of 
AT and CVS is a bit rudimentary at this point.  Since I consider myself 
to be an AT user rather than a developer at this time, I will humbly 
pass the responsibility to someone with more expertise.  My apologies 
for sounding like I know more than I do.

Would anyone like to volunteer to add the patch to the 1.3 branch?

  - Kamal

On Aug 10, 2004, at 10:22 AM, Christian Heimes wrote:

> Kamal Gill wrote:
>> Hi Dorneles,
>> Thanks for your reply.  Here are my thoughts on how HTML/XML 
>> attributes should be handled in AT.
>> If the attributes property is currently a placeholder for some 
>> desired functionality, perhaps it could be used to allow *any* 
>> HTML/XML attribute to be generated by the widget.  My proposal is to 
>> allow the attributes property of the widget to be passed as a 
>> dictionary to the generator, as in the following example...
>> schema = BaseSchema + Schema((
>>     StringField('Field_ID',
>>                     widget=StringWidget(label='some_label ',
>>                                                    
>> attributes={'onFocus': 'select()', 'onChange': 'someJSfunction()', 
>> 'anyXMLattribute': 'anyXMLattributeValue'},
>>                                                    
>> description='some_description'),
>>               ),
>> The flexibility of this approach may even allow TAL statements to be 
>> added to widgets.  Does this sound reasonable?
>
> +1
> Please provide a patch against the latest 1.3 branch.
>
> Christian
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Archetypes-users mailing list
> Archetypes-users@...
> https://lists.sourceforge.net/lists/listinfo/archetypes-users
>

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

Gmane