Solved

Changing text Input value with ASP

Posted on 1998-09-16
1
206 Views
Last Modified: 2013-12-25
I am in the process of creating a shopping basket. currently I display the contents of my shopping basket, which includes the Quantity, the unit price and the total. Now when I displayy the Qte (auantity) I display it throughan input text box. I want to let the user change this value. And when he does I want to recalcutale the qte with the unit price and display the items once again with the qte changed and the total price. I have thought of using an OnChange event but couldn't get it to work with ASP (active server pages). If anyone knows how can I remede this problem, let me know.
0
Comment
Question by:Patricia080698
1 Comment
 

Accepted Solution

by:
orrin073198 earned 20 total points
ID: 1828637
Did you try this?

<form method="POST" name="calcform">
    Quantity: <input type="text" size="20" name="quantity" value="0"
    language="VBScript"
    onchange="calcform.total.value=calcform.quantity.value*calcform.price.value">
    <p>
    Price: <input type="text" size="20" name="price" value="20"> <p>
    Total: <input type="text" size="20" name="total" value="0"> <p>
</form>

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now