Thanks.  I'll check it out when I get a chance.

On Sat, 2008-03-01 at 06:53 -0800, Zack wrote:
> Check this out: http://code.djangoproject.com/wiki/AJAXWidgetComboBox
> 
> If it doesn't suit your needs you can make your own widget and then
> tell your form field to render itself using your custom widget.
> 
> Here's an OK example of making a custom widget:
> http://code.djangoproject.com/wiki/CustomWidgetsTinyMCE
> The main issues I have with this example are 1) you can't use a
> javascript function object as an element in the settings, and 2) the
> inline HTML. Ick. I think it would be nicer to create a template
> containing the HTML for the widget, then pass in a Context with all
> the configuration data. Good example of that over here:
> http://www.hoboes.com/Mimsy/?ART=609 but it get's a bit complex as he
> is deailing specifically with a multiwidget.
> 
> After you've coded up your own, you can tell CharField to use it by
> doing something like:
> 
> from django import newforms as forms
> class MyForm(forms.Form):
>     combobox = forms.fields.CharField(widget=MyCustomWidget())
> 
> On Feb 29, 11:24 am, Adam Stein <[EMAIL PROTECTED]> wrote:
> > Want to see if something exists so I don't recreate it.
> >
> > For years, I've been using a JavaScript utility called "HTML CombBox" by
> > CS Wagner.  This provided ComboBox functionality for HTML.  That is, you
> > can have a <select>...</select> list with the added functionality that
> > you can type into the select box (useful if what you want isn't on the
> > list).
> >
> > Now that I'm using Django, I need that functionality again.  Does
> > anything like this exist already?
> > --
> > Adam Stein @ Xerox Corporation       Email: [EMAIL PROTECTED]
> >
> > Disclaimer: All views expressed
> > here have been proved to be my own.  [http://www.csh.rit.edu/~adam/]
> > 
-- 
Adam Stein @ Xerox Corporation       Email: [EMAIL PROTECTED]
                                            
Disclaimer: All views expressed             
here have been proved to be my own.  [http://www.csh.rit.edu/~adam/]


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

Reply via email to