I am building a very complex web app with django, filled with ajax-calls and javascript widgets. I use a bit of jQuery, some YUI and many extJs widgets. Other than adding classes to fields in my forms, I do all of the widget stuff on the client side. Seems easiest to me. -richard
On 5/7/08, Kevin Monceaux <[EMAIL PROTECTED]> wrote: > > -richard, > > On Wed, 7 May 2008, Richard Dahl wrote: > > > I am not sure exactly what you mean by 'not step on each others toes' > > What exactly are you concerned with? You could very easily have a form > > with 4 phone number fields: home, office, mobile, fax; using jQuery's > > .class selector i.e. $(".phone").mask("(999)999-9999"); you could find > > all of the elements with a class "phone" and apply the mask to them. on > > the server-side you would just need to add the class phone to the > > appropriate widgets attributes. > > That might be the way to go. I think I might just be trying to > over-complicate things. I was trying to figure out how to have the custom > widget take care of the needed javascript, such as pulling in the needed > jQuery files and adding the $(".phone").mask("(999)999-9999"); to the > page, "behind the scenes" so that I could just set up the field in the > model to use the custom widget without having to also add the javascript > to the template myself. > > > > Kevin > http://www.RawFedDogs.net > http://www.WacoAgilityGroup.org > Bruceville, TX > > Si hoc legere scis nimium eruditionis habes. > Longum iter est per praecepta, breve et efficax per exempla!!! > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---