Solved

Changing text Input value with ASP

Posted on 1998-09-16
1
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
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…

691 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