在ASP中连接文本字段 [英] Connecting textfields in asp
问题描述
我一般来说对ASP和Web脚本还很陌生.
我正在创建一个带有多个文本框的表单.在两个框中,我输入值-总金额和支出金额.我想计算在第三个文本框中花费的百分比.
我的挑战是我希望在不提交表单的情况下输入两个值立即显示结果.问题是我必须先将表单提交到验证网页,然后再将其发送到服务器,而且我知道表单只能发布到一个网页上.
我可以用asp(不是asp.net)实现吗?
i am pretty new to asp and web scripting in general.
i am creating a form with a number of text boxes. in two of the boxes i input values - total amount and amount spent. i want to calculate the percentage spent in a third text box.
my challenge is that i want the result to be displayed immediately i enter both values, without submitting the form. the issue is i have to submit the form to a validation web page before sending it to the server, and i am aware that a form can only be posted to only one webpage.
can i achieve this with asp (not asp.net)?
推荐答案
您不需要asp,因为您可以简单地使用html和javascript.需要立即"的更多详细信息?
you don''t need asp for that you can simply use html and javascript. More detail on "immediately" is required??
真的吗?这就是我立即"的意思.我输入总金额的值,然后输入支出金额的值,然后在退出支出金额"框时计算支出百分比.
我对javascript中的onChange有所了解,但我不知道如何编写代码.
请帮帮我.
oh really? this is what i mean by ''immediately''. i type in a value for total amount, then i input a value for amount spent, then the percentage spent is computed the moment i exit the ''amount spent'' box.
I know something about onChange in javascript but i do not know how to write the code.
Please help me out.
这篇关于在ASP中连接文本字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!