Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/09/2010, 12:50
posman
 
Fecha de Ingreso: enero-2008
Mensajes: 614
Antigüedad: 16 años, 4 meses
Puntos: 57
Respuesta: Capturar valor de funcion javascript a asp

Ya te habia puesto en otro foro como hacerlo. Se deberia hacer en 2 pasos

index.asp
Código ASP:
Ver original
  1. <%
  2. if request("variable") <> "" then
  3.     response.write "variable = '" & request("variable") & "'"
  4. else
  5.     response.write "no tiene datos"
  6. end if
  7. %>
  8. <html>
  9. <head>
  10. <script>
  11. function calcular() {
  12.     var x = 123456;
  13.     alert(x);
  14.     window.location = "index.asp?variable=" + x;
  15. }
  16. </script>
  17. </head>
  18. <body <%if request("variable") = "" then response.write "onload='calcular()'"%>>
  19. </body>
  20. </html>