Re:
by "Cyanide _7" <leo7278(at)hotmail.com>
|
Date: |
Wed, 26 Apr 2000 10:30:24 CDT |
To: |
ozgur(at)karsiyakamail.com |
Cc: |
hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
your using a JScript feature of the select object. the property *value* for
the select object does not exist in JavaScript and must be obtained the long
way (which works on both):
onChange = "setfsize(this[this.selectedIndex].value)">
good luck - Cyanide_7
>
>Hi everyone,
>
>I do not know, if this list is still active. But I have a problem.
>
>Using Javascript, I am trying to update a value in a text box, according to
>the option selected in a Select control on a HTML page.
>
>I wrote some code as below. The result was as I expected when I opened the
>page on ie 5.0, that I could see the numbers changing in the text box as I
>selected the different options in the select. However, it was not so with
>netscape navigator. The option value was null regardless to the options
>selected...
>
>Any good idea ?
>
>Thanks in advance for your help !
>
>N.B: form name is "C"
> text control's name is "fsize"
>...
>function setfsize(INvalue) {
> document.C.fsize.value=INvalue;
>}
>...
><P>PDF file size of the selected file is
><INPUT TYPE="Text" NAME="fsize" SIZE="5" Value="0"> </input>MB.
></P>
>...
>Choose a document <b>by Form Number</b>: <br>
><select name="Liste" size="1"
>onChange = "setfsize(value)">
>
><option value="2"> book1
><option value="5.2"> book2
><option value="0.7"> book3
>...
>
>==
>Ozgur Turkmen
>
>_____________________________________________________________
>Kolay hatirlanan BEDAVA e-mail adresi almak icin
>http://www.karsiyakamail.com/ adresine gidiniz.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA