Changes between Version 3 and Version 4 of AJAXWidgetComboBox


Ignore:
Timestamp:
05/23/2006 05:47:20 PM (9 years ago)
Author:
mattimustang@…
Comment:

fixed view url paths

Legend:

Unmodified
Added
Removed
Modified
  • AJAXWidgetComboBox

    v3 v4  
    100100}}}
    101101
    102 Now test your new reporter_lookup view my going to {{{http://localhost:8000/reporter_lookup/?search=}}}, which should return something like:
     102Now test your new reporter_lookup view my going to {{{http://localhost:8000/myapp/reporter_lookup/?search=}}}, which should return something like:
    103103{{{
    104104[["Reporter 1", 1], ["Reporter 2", 2], ...]
     
    142142Replace the usual {{ form.reporter }} element in the template with this:
    143143{% 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>
    145145...
    146146}}}
    147147
    148148That's it! You should be able to submit this form just like you normally would.
     149
Back to Top