On Mon, Feb 9, 2009 at 12:00 PM, Robert Ramírez Vique <rober...@gmail.com>wrote:
> Hello, > > I have been working on some forms which has some ajax behaivour, and I use > some css and javascripts. This can be used inside a form with {{ form.media > }}, which outputs the html tags necessary to import all the javascript and > css to get all the fields working, and without duplicates if the field > appears more than one time in the page. > > But when I use the {{ form.media }} more than once (imagine a for is > generated for each element of a list and using includes or template tags) I > don't know how to get just one tag for each media. > > Or when I need this behaivour to happen outside a form (with a template > tag), don't know if this is possible. I mean, the declaration of the media > and this is automatically included just when needed. > > thanks, > Robert Ramírez Vique > Computer Science Engineer > > > > The best way to do this would be to make a templatetag that took multiple form.media instances, added them together(which can be done with media instances) and then output the response. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---