Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NS trouble

Status
Not open for further replies.

Lisen

Instructor
Joined
Jun 21, 2000
Messages
6
Location
SE
Hi,
with this little piece of coding (I've changed the names of the text fields):

<SELECT NAME=&quot;NumberOf&quot; onChange=&quot;TheTotalSumOf.value=((NumberOf.value) *
(<%=ThePrice%>))&quot;>

When a number is chosen in the dropdown, the total sum is shown in the
textfield named &quot;TheTotalSumOf&quot;. This works fine in IE but not in NS (except
from version 7.1).
As I figure a lot of people still use NS-versions from 4.* and upwards.
Does anybody have a clue how to change this script, making it function in
earlier NS?

With best regards,
Lis Rosenqvist,
Sweden
 
Hardly anybody uses NS 4.*. It's a dinosaur as far as browsers go. Don't waste your time trying to support it. If you do, buy stock in Excedrin and open an account at your local liquor store - you'll need both!

There's always a better way. The fun is trying to find it!
 
NS requires you to specify the form that your element is in. try this (no pun intended):

<SELECT NAME=&quot;NumberOf&quot; onChange=&quot;this.form.TheTotalSumOf.value=((this.value) *
(<%=ThePrice%>))&quot;>



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Hi Jeff,
thanks, I'll try that. Yoü'd be supreised to know the usage of Netscape 4.x I've found according to the statistics...
Good morning! (Well, it's 7a m here in Sweden now)
/Lis
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top