On Sep 5, 2006, at 8:34 PM, Jorge Godoy wrote:

>
>
> I've been thinking for a while about the way we can insert  
> JavaScript into our
> forms.  Today we have to insert it at form level.  Some JS might be  
> inserted
> at widget level through the attrs parameter, but it isn't the  
> nicest way for a
> lot of things.
>
> What I was thinking is "enhancing" the magic and allowing each and  
> every
> widget to have a "javascript" attribute that would insert the code  
> there (must
> be a JSLink or JSSource) into the correct place in the form  
> javascript that
> would then be used on the page.

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...

Kevin


--~--~---------~--~----~------------~-------~--~----~
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