Re:

by "Srinivasan Ramakrishnan" <srinivar(at)md3.vsnl.net.in>

 Date:  Wed, 26 Apr 2000 21:54:36 +0530
 To:  <ozgur(at)karsiyakamail.com>,
<hwg-languages(at)hwg.org>
 References:  everyone
  todo: View Thread, Original
Try

setfsize(this.value)

-Srini

----- Original Message -----
From: Ozgur Turkmen <ozgur(at)karsiyakamail.com>
To: <hwg-languages(at)hwg.org>
Sent: Wednesday, April 26, 2000 9:02 PM


| 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&nbsp;
| <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&nbsp;
| <option value="5.2">   book2&nbsp;
| <option value="0.7">   book3&nbsp;
| ...
|
| ==
| Ozgur Turkmen
|
| _____________________________________________________________
| Kolay hatirlanan BEDAVA e-mail adresi almak icin
http://www.karsiyakamail.com/ adresine gidiniz.
|

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA