On 17.05.2011 13:18, Michal Petrucha wrote:
> On Tue, May 17, 2011 at 12:34:05PM +0200, Thomas Guettler wrote:
>> Hi,
>>
>> I want to register some jquery event handler for some widgets of a form 
>> (FooForm). The
>> form gets used in several views.
>>
>> It would be a pain to insert $(function(){...}) in every page which uses 
>> this form.
>>
>> The Media Form objects only handles links to JS files.
>>
>> Any hints how to insert the js/jquery lines in every page which uses FooForm?
>>
>>   Thomas
> 
> Why not create a separate js file that you'll include in relevant
> pages? Yes, you'll have one small js file but it will probably be less
> painful than trying to hack this around in some way.

Unfortunately there is a dynamic value, which I want to pass to a jquery method.

If I only use static js files, I would need to store the value somewhere in
a hidden field.

  Thomas


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to