D.Stone at ED.AC.UK
Fri Apr 28 12:08:53 EDT 2006
Thanks, Jorge, finally got it to work!
J. Parapar wrote:
> Hi Dave
> I think (I may be wrong) the "_select" suffix does not work with
> modes. It is usually used for layers and zoom factor values.
> var mode=[mode];
> var dtype=[dtype];
> of the lists according to this values.
> Best regards,
> 2006/4/28, DjwStone <D.Stone at ed.ac.uk>:
>> Hi - I have a problem with select lists in MapServer 4.8.3 CGI.
>> The template containing my interactive map is modelled on the 4.6
>> so it contains select lists for the layers to display and the mode
>> CGI variables); also a list of location types (a 'user-defined'
>> I find that if I make (possibly multiple) selections from the 'layers'
>> then when I call MapServer to re-draw the map, the selected list entries
>> still highlighted.
>> However, for the 'mode' and 'location type' select lists, nothing I do
>> to render the selections 'sticky' across a call of MapServer. This might
>> expected for the user-defined variable, but not 'mode'.
>> The HTML is:
>> <SELECT MULTIPLE NAME="layers" SIZE=3>
>> <!-- the list of layers to choose from -->
>> <OPTION VALUE="parish_labels" [parish_labels_select]> Parish
>> <OPTION VALUE="parish" [parish_select]> Parish boundaries</OPTION>
>> <OPTION VALUE="saint_dedications" [saint_dedications_select]>
>> Dedication types</OPTION>
>> <OPTION VALUE="grid" [grid_select]> Graticule</OPTION>
>> Select map mode: <BR>
>> <SELECT NAME="mode" SIZE=3>
>> <OPTION VALUE="browse" [browse_select]> Browse</OPTION>
>> <OPTION VALUE="query" [query_select]> Query 1 Layer</OPTION>
>> <OPTION VALUE="nquery" [nquery_select]> Query Multiple
>> Select type of dedication to plot on map: <BR>
>> <select name='dtype' size=3 id='dtype' onchange='create_qstring()'>
>> <option value=''> -- please select from this list --</option>
>> <option VALUE='Aisle'> Aisle</option>
>> <option VALUE='Altar dedication'> Altar dedication</option>
>> <option VALUE='Bell'> Bell</option>
>> - - - - etc.
>> Any suggestions gratefully received....
>> View this message in context:
>> Sent from the Mapserver - User forum at Nabble.com.
View this message in context: http://www.nabble.com/Select-lists-t1523804.html#a4143257
Sent from the Mapserver - User forum at Nabble.com.
More information about the mapserver-users