将javascript变量发送到经典asp [英] send javascript variable to classic asp

查看:81
本文介绍了将javascript变量发送到经典asp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个jQuery驱动的成本计算器,我想允许网页在电子邮件中发送计算器值的摘要。服务器在经典ASP上运行。

I have a jQuery-powered cost calculator, and I want to allow the webpage to send a summary of the calculator's values in an email. The server runs on classic ASP.

如何使用ASP检索javascript变量?

How do I retrieve javascript variables with ASP?

我明白ASP代码在页面加载之前运行,并且javascript代码仅在页面加载后运行,因为javascript不是runat =server。

I understand that the ASP code runs before the page loads, and the javascript code runs only after the page is loaded, since the javascript is not runat="server".

如何存储javascript变量,以便我可以在处理页面上使用ASP代码检索它们?

How can I store javascript variables so that I can retrieve them with ASP code on a processing page?

计算器用Javascript - > form action =process.asp - > ASP来获取javascript值

calculator with Javascript --> form action = "process.asp" --> ASP to pick up javascript values

大学成本计算器

推荐答案

另一种解决方案是将javascript变量的值设置为隐藏的表单字段。提交表单并阅读服务器端的表单值。阅读完值后,创建并发送电子邮件。

Another solution is to set the values of the javascript variables to hidden form fields. Submit the form and read the form values on the server-side. After reading the values, create and send the email.

这篇关于将javascript变量发送到经典asp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆