Read value of a selected drop down value from speedscript/webspeed

Status
Not open for further replies.
A

Austin

Guest
I am newbie to Webspeed/SpeedScript.

I have a drop down field on my web page (select tag of hmtl). I want the selected value of this drop down using SpeedScript/WebSpeed.

I tried "get-value()" method but this returns blank value. I went through WebSpeed API documenation (http://documentation.progress.com/output/OpenEdge102b/pdfs/aswsp/aswsp.pdf) . There are some other functions like get-field(), get-user-field(). I tried get-field() but there is no success. Please help.

HTML:

<form>
<select id="product" name="prd" onChange="dosmthng()">
<option> 1 </option>
<option> 2 </option>
<option> 3 </option>
</form>


WebSpeed/SpeedScript that I tried:

def variable xy as char.
xy = get-field("prd").
{&OUT} 'window.alert(' + xy + ');'.

Continue reading...
 
Status
Not open for further replies.
Top