Passing a Value from JavaScript back to ASP 
Author Message
 Passing a Value from JavaScript back to ASP

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"
     }

Quote:
}

//-->
</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



Sat, 21 Dec 2002 03:00:00 GMT  
 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.


Sun, 22 Dec 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem passing values from object back to ASP

2. Passing a ASP Session Variable Value into a JavaScript function

3. showModalDialog: Passing multiple values back from child

4. Passing values back to batch file

5. showModalDialog: Passing multiple values back from child

6. ASP : Passing values from One ASP to the Next

7. Passing a variant array from asp to a cls and back

8. How do you pass a string back from COM in ASP

9. Passing array from ASP (VBScript) to DLL and back

10. Passing Variables between javascript and vbscript on ASP pages

11. Pass Javascript value to Textbox

12. passing value between vbscript and javascript

 

 
Powered by phpBB® Forum Software