Hallo Rainer,
> <!--IMPERIABLOCK:INDEX=99-->
> <select NAME="IMPERIA:auswahl">
> <option value="eins">eins</option>
> <option value="zwei">zwei</option>
> <option value="drei">drei</option>
> </select><br>
>
> <!--/IMPERIABLOCK-->
>
> Das tut jetzt unter Imperia 6.5.1.
> Damit ist natürlich noch nichts über I7 gesagt.
Danke für deine Antwort!
Mittlerweile hab ich es so gelöst (mit Hilfe von Asp - nur im Editmode):
#####################
<!--IMPERIABLOCK:INDEX=77-->
#IF ("<!--XX-editmode-->") OR ("<!--XXDEF-myselect_<!--BLOCK_ID-->-->")
#IF ("<!--XX-editmode-->")
<%
selOption = "<!--XX-myselect_<!--BLOCK_ID-->-->"
%>
<Select name="myselect_<!--BLOCK_ID-->">
<option value="eins"
<%
if selOption = "eins" then
response.write "selected"
end if%>
>eins</option>
<option value="zwei"
<%
if selOption = "zwei" then
response.write "selected"
end if%>
>zwei</option>
<option value="drei"
<%
if selOption = "drei" then
response.write "selected"
end if%>
>drei</option>
</Select>
#ELSE
<!--XX-myselect_<!--BLOCK_ID-->-->
#ENDIF
#ENDIF
<!--/IMPERIABLOCK-->
#####################
Jetzt habe ich es aber trotzdem auch so versucht:
#####################
<!--IMPERIABLOCK:INDEX=77-->
#IF ("<!--XX-editmode-->") OR ("<!--XXDEF-myselect-->")
#IF ("<!--XX-editmode-->")
<Select name="myselect">
<option value="eins">eins</option>
<option value="zwei">zwei</option>
<option value="drei">drei</option>
</Select>
#ELSE
<!--XX-myselect-->
#ENDIF
#ENDIF
<!--/IMPERIABLOCK-->
#####################
Es funktioniert, die ausgewählte Option der Select bleibt beim erneuten
Ausführen des Blocks erhalten.
Das einzige: im Preview-Mode kommt mir nichts heraus! Erkennt er das
<!--XXDEF-myselect--> nicht?
Grüße
Antonietta
P.S: Modulo Tippfehler! ;o)
| Thread (Imperiablock - Select) |
|
© 2001, 2002 marchive.pl Christian Lackas
[HOME]
[MARCHIVE]
[INDEX]
[IMPERIA]
[IMPRESSUM]
[DELTA]