On Sep 6, 2006, at 1:14 PM, Kevin Dangoor wrote:

>
> On Sep 6, 2006, at 2:16 AM, Jorge Godoy wrote:
>
>>
>> Kevin Dangoor <[EMAIL PROTECTED]> writes:
>>
>>> Err, every widget can already have a javascript attribute... and,
>>> typically, if you need javascript right next to the widget output,
>>> you just put it in the template. I must be missing something, but  
>>> I'm
>>> not sure what...
>>
>> The magic four attributes.  I'll check the docs (pydoc) again, I
>> might have
>> missed the javascript for TextFields and CheckBoxes ;-)
>
> I *think* javascript is on Widget. So, even if TextField doesn't have
> it, you can still add it to your own.

You're right, javascript is on Widget so all widgets can specify  
their javascript (and CSS).

Refering to the magic attributes:

- widget_id

All FormFields have this attribute, it's called "field_id"

- widget_name

Ditto. It's called called "name" in all widgets.

- form_id
- form_name

No support yet for these yet, though it seems like a good idea to me.

Regards, Alberto.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to