
Passing a Value from JavaScript back to ASP
If you mean "how do I get the value CONFIRMED from client side script
to an ASP page", then you need to:
- create an <input type=hidden> element on your page
- make sure the hidden element is inside a <form>
- post the form to your ASP page
- retreive the value in your ASP page using RetreivedValue =
Request.Form("CONFIRMED")
I think that's what you meant!
Quote:
> Hi,
> I am asking for a Confirmation using the following javascript
> <SCRIPT LANGUAGE=javascript>
> <!--
> function confirmdelete()
> {
> var resp = confirm("You are going to delete this Contact")
> if (resp) {
> var confirmed = "Y"
> }
> }
> //-->
> </SCRIPT>
> How do I get the variable CONFIRMED back to the ASP page the function
was
> called from with an onClick in the HTML INPUT tag.
> Thanks in advance
Sent via Deja.com http://www.deja.com/
Before you buy.