Changes between Version 3 and Version 4 of AJAXWidgetComboBox
- Timestamp:
- May 23, 2006, 5:47:20 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AJAXWidgetComboBox
v3 v4 100 100 }}} 101 101 102 Now test your new reporter_lookup view my going to {{{http://localhost:8000/ reporter_lookup/?search=}}}, which should return something like:102 Now test your new reporter_lookup view my going to {{{http://localhost:8000/myapp/reporter_lookup/?search=}}}, which should return something like: 103 103 {{{ 104 104 [["Reporter 1", 1], ["Reporter 2", 2], ...] … … 142 142 Replace the usual {{ form.reporter }} element in the template with this: 143 143 {% endcomment %} 144 <select dojoType="NongComboBox" id="{{ form.reporter.get_id }}" name="reporter" dataUrl="/ reporter_lookup/?search=%{searchString}" mode="remote" value="default"></select>144 <select dojoType="NongComboBox" id="{{ form.reporter.get_id }}" name="reporter" dataUrl="/myapp/reporter_lookup/?search=%{searchString}" mode="remote" value="default"></select> 145 145 ... 146 146 }}} 147 147 148 148 That's it! You should be able to submit this form just like you normally would. 149