Page 1 of 1

Embedding Vortex in Html (dropdown)

Posted: Wed Nov 07, 2001 4:35 pm
by Dsquared
I'm trying to select the correct drop down option based on what the user last selected. The code below works but simply states:

----------------------------------------------------------------------------------------------------------------
Option 1
Option 2

or

Option 1 selected
Option 2

or

Option 1
Option 2 selected
----------------------------------------------------------------------------------------------------------------
See code below:
----------------------------------------------------------------------------------------------------------------
<select name="dropdown" size="1">
<option value="1" >Option 1 <if $searchtype eq "1">selected</if></option>
<option value="2" >Option 2<if $searchtype eq "2">selected</if></option>
</select>
----------------------------------------------------------------------------------------------------------------
When I try to do this:
----------------------------------------------------------------------------------------------------------------
<select name="dropdown" size="1">
<option value="1" <if $searchtype eq "1">selected</if>>Option 1 </option>
<option value="2" <if $searchtype eq "2">selected</if> >Option 2</option>
</select>
----------------------------------------------------------------------------------------------------------------
I get an error:
----------------------------------------------------------------------------------------------------------------
Texis Web Script (Vortex) Copyright © 1996-2001 Thunderstone - EPI, Inc.
Commercial Version 4.00.998085264 of Aug 17, 2001 (i686-intel-winnt-32)

Error
015 /texis/search:37: Tag missing closing `>' bracket
----------------------------------------------------------------------------------------------------------------
Any ideas?

Embedding Vortex in Html (dropdown)

Posted: Wed Nov 07, 2001 4:41 pm
by bart
You can't nest statement tags in Vortex. Your problem is easily solved by using the <options> command in Vortex though. See: http://www.thunderstone.com/site/vortexman/node138.html