[Cartoweb-users] cw3.1: problem shortcuts "-1"

Emmanuel Belo emmanuel.belo at microgis.ch
Mon Feb 27 11:43:30 EST 2006


Hello,

configurating my shortcuts, i have following problem: there is an index 
"-1" that is generated from nowhere and that leads to a crash if the row 
is selected.

Do you know how to solve the problem?

Best regards,

Emmanuel Belo


* Generated HTML *

<p>
<input type="hidden" id="shortcut_doit" name="shortcut_doit" value="0" />
Accès direct <select name="shortcut_id" id="shortcut_id"
onchange="javascript:document.carto_form.shortcut_doit.value=1;FormItemSelected();">
<option value="0">Accès direct</option>
<option value="0">---------------</option>

<option label="" value="-1"></option>

<option label="Canton de Vaud" value="0">Canton de Vaud</option>
<option label="Aigle" value="1">Aigle</option>
<option label="Aubonne" value="2">Aubonne</option>
<option label="Avenches" value="3">Avenches</option>
<option label="Cossonay" value="4">Cossonay</option>
<option label="Echallens" value="5">Echallens</option>
<option label="Grandson" value="6">Grandson</option>
<option label="Lausanne" value="7">Lausanne</option>
<option label="La Vallee" value="8">La Vallee</option>
<option label="Lavaux" value="9">Lavaux</option>
<option label="Morges" value="10">Morges</option>
<option label="Moudon" value="11">Moudon</option>
<option label="Nyon" value="12">Nyon</option>
<option label="Orbe" value="13">Orbe</option>
<option label="Oron" value="14">Oron</option>
<option label="Payerne" value="15">Payerne</option>
<option label="Pays d'Enhaut" value="16">Pays d'Enhaut</option>
<option label="Rolle" value="17">Rolle</option>
<option label="Vevey" value="18">Vevey</option>
<option label="Yverdon" value="19">Yverdon</option>
</select></p>


* shortcuts.tpl *

<p>
<input type="hidden" id="shortcut_doit" name="shortcut_doit" value="0" />
Accès direct <select name="shortcut_id" id="shortcut_id"
onchange="javascript:document.carto_form.shortcut_doit.value=1;FormItemSelected();">
<option value="0">Accès direct</option>
<option value="0">---------------</option>
{html_options values=$shortcut_values output=$shortcut_labels}
</select></p>


* location.ini *
; predefined shortcuts

shortcuts.0.label = Canton de Vaud
shortcuts.0.bbox = "473176, 110148,606760, 210336"

shortcuts.1.label = Aigle
shortcuts.1.bbox = "547000,112000,589000,146000"

shortcuts.2.label = Aubonne
shortcuts.2.bbox = "502000, 143000, 527000, 164000"

shortcuts.3.label = Avenches
shortcuts.3.bbox = "557000,186000,576000,206000"

shortcuts.4.label = Cossonay
shortcuts.4.bbox = "510000, 155000, 540000, 174000"

shortcuts.5.label = Echallens
shortcuts.5.bbox = "529000, 156000, 548000, 180000"

shortcuts.6.label = Grandson
shortcuts.6.bbox = "520000,178000,551000,200000"

shortcuts.7.label = Lausanne
shortcuts.7.bbox = "528000, 149000, 549000, 164000"

shortcuts.8.label = La Vallee
shortcuts.8.bbox = "495100, 151500, 522400, 175000"

shortcuts.9.label = Lavaux
shortcuts.9.bbox = "538000,145000,558000,161000"

shortcuts.10.label = Morges
shortcuts.10.bbox = "515000, 143000, 537000, 164000"

shortcuts.11.label = Moudon
shortcuts.11.bbox = "539000,162000,561000,178000"

shortcuts.12.label = Nyon
shortcuts.12.bbox = "489600, 126000, 517000, 158000"

shortcuts.13.label = Orbe
shortcuts.13.bbox = "506000,164000,542000,190000"

shortcuts.14.label = Oron
shortcuts.14.bbox = "540000,151000,561000,169000"

shortcuts.15.label = Payerne
shortcuts.15.bbox = "543000,171000,570000,198000"

shortcuts.16.label = Pays d'Enhaut
shortcuts.16.bbox = "562000,135000,590000,160000"

shortcuts.17.label = Rolle
shortcuts.17.bbox = "506000, 140000, 523000, 153000"

shortcuts.18.label = Vevey
shortcuts.18.bbox = "546000,137000,572000,155000"

shortcuts.19.label = Yverdon
shortcuts.19.bbox = "528000,170000,555000,190000"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: emmanuel.belo.vcf
Type: text/x-vcard
Size: 337 bytes
Desc: not available
Url : http://lists.maptools.org/pipermail/cartoweb-users/attachments/20060227/fdc7e916/emmanuel.belo.vcf


More information about the Cartoweb-users mailing list