Foros del Web » Programando para Internet » ASP Clásico »

error en programacion....

Estas en el tema de error en programacion.... en el foro de ASP Clásico en Foros del Web. tengo una pagina, http://www.jimy.com que le he incluido un apartado mas (souvenir) pero resulta que al realizar el pago me da un error, el codigo ...
  #1 (permalink)  
Antiguo 14/08/2004, 08:04
Avatar de 00israel  
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 4 meses
Puntos: 5
error en programacion....

tengo una pagina, http://www.jimy.com que le he incluido un apartado mas (souvenir) pero resulta que al realizar el pago me da un error, el codigo de programacion es muy similar al apartado de "pedidos" pero el de pedidos funciona y este nuevo que he puesto no, no se donde esta el error, ¿si alguien puede ayudarme?

un saludo.
  #2 (permalink)  
Antiguo 14/08/2004, 14:41
Avatar de u_goldman
Moderador
 
Fecha de Ingreso: enero-2002
Mensajes: 8.031
Antigüedad: 22 años, 5 meses
Puntos: 98
Y por qué no pones el error que te envía, algo de código y listo, te comenzamos a ayudar?

Salu2,
__________________
"El hombre que ha empezado a vivir seriamente por dentro, empieza a vivir más sencillamente por fuera."
-- Ernest Hemingway
  #3 (permalink)  
Antiguo 14/08/2004, 15:44
Avatar de 00israel  
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 4 meses
Puntos: 5
no he puesto nada porque entrando en la pagina y accediendo a donde digo que se localiza el error, se puede ver. En el apartado de souvenir, seria echando un vistazo al codigo de programacion.
  #4 (permalink)  
Antiguo 14/08/2004, 16:24
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 3 meses
Puntos: 535
ok, el mensaje de error es este:

Error de Microsoft VBScript en tiempo de ejecución error '800a0046'

Permiso denegado: 'msgbox'

/tpv/enviarMailTxt.asp, line 106


Y es porque no se puede usar msgbox dentro de sentencias ASP. Sólo para vbscript que interprete el cliente
__________________
...___...
  #5 (permalink)  
Antiguo 14/08/2004, 16:57
Avatar de 00israel  
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 4 meses
Puntos: 5
perdona es que no tengo ni idea de asp, donde esta y que es el "msgbox" que lleva la pagina?
  #6 (permalink)  
Antiguo 14/08/2004, 16:58
Avatar de 00israel  
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 4 meses
Puntos: 5
Que tengo que quitar o poner para que funcione ese codigo?
  #7 (permalink)  
Antiguo 15/08/2004, 04:07
Avatar de 00israel  
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 4 meses
Puntos: 5
alguien puede ayudarme porfavor
  #8 (permalink)  
Antiguo 16/08/2004, 07:53
Avatar de Myakire
Colaborador
 
Fecha de Ingreso: enero-2002
Ubicación: Centro de la república
Mensajes: 8.849
Antigüedad: 22 años, 4 meses
Puntos: 146
No he entrado a tu página, pero me llama la atención que si ya programaste un sitio y solo haz agregado una rutina mas, digas que no tienes idea de ASP.
Permiso denegado: 'msgbox'
/tpv/enviarMailTxt.asp, line 106

Segun el error, tienes en la linea 106 un mensaje tipo alert utilizando la instrucción MsgBox que, como ya te comentarón, no la puedes ejecutar del lado del servidor con ASP. Te diría que quitaras esa linea, pero quien la puso ahí la puso por algo, así que vas a tener que colocar código diferente y si no quieres postear código, va a estar muy dificil que aqui te podamos dar alguna alternativa.
  #9 (permalink)  
Antiguo 17/08/2004, 07:46
Avatar de 00israel  
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 4 meses
Puntos: 5
en ningun momento digo que yo programe la pagina, y con respecto al error pense que se podria copiar el codigo desde el navegador, pero si no es asi en cuanto pueda lo pongo.

un saludo
  #10 (permalink)  
Antiguo 17/08/2004, 08:19
Avatar de 00israel  
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 22 años, 4 meses
Puntos: 5
este es el codigo de la pagina donde comienza el error:


<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% Response.Expires = -1 %>
<% Response.CacheControl = "Private" %>

<%
gold = Request.Form("gold")
silv = Request.Form("silv")
subt = Request.Form("subt")
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel=stylesheet type="text/css" href="http://www.jimy.com/jimy.css">
<link rel=stylesheet type="text/css" href="http://www.jimy.com/form.css">
<title>pedido.asp</title>
<script language="Javascript" src="http://www.jimy.com/esp/pedidos/cambiomonedas.js"></script>
<script language="Javascript" src="http://www.jimy.com/esp/pedidos/preciospts.js"></script>
<script language="JavaScript" src="http://www.jimy.com/jScript.js"></script>
<script language="javascript1.2" src="http://www.jimy.com/roll.js"></script>
<script language="javascript">

var clicked = false;

function pasarValor(object, envio, pos) {
clicked = true;
var subT = <%=subt%>;
var total;
total = parseFloat(subT) + parseFloat(envio);
window.document.souvForm.gastosenvio[pos].value = total;
}

function check() {
if (clicked == false) {
alert("No seleccionó un destino");
return false;
} else {
if (souvForm.nombre.value.length!=0 && souvForm.apellidos.value.length!=0 && souvForm.direccion.value.length!=0 && souvForm.localidad.value.length!=0 && souvForm.provincia.value.length!=0 && souvForm.email.value.length!=0 && souvForm.telefono.value.length!=0 && souvForm.codigopostal.value.length!=0) {
return true;
} else {
alert("Por favor rellene todos los campos\nYou leave a field without data; please, fill the gap.");
return false;
}
}
}

function total(envio) {
var subT = <%=subt%>;
var total;
total = parseFloat(subT) + parseFloat(envio);
document.write(total+"0");
}
</script>
<style type="text/css">
<!--
.textBox {
background-color:#333333;
color:#CCCCFF;
}

.Estilo2 {
color: orange;
font-weight: bold;
font-family: "Times New Roman", Times, serif;
font-size: 15px;
}

.Estilo3 {
color: #FFFF00;
font-size: 20px;
font-weight: bold;
}

.Estilo4 {
color: #999999;
font-size: 12px;
}

.Estilo5 {
color: #FF0000
}
-->
</style>
</head>

<body>
<table border="0" cellpadding="0">
<tr>
<td width="10">&nbsp;</td>
<td>
<table width="550" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><h1 align=center class="Estilo3">Souvenir</h1></td>
</tr>
</table>


<div align="left"> <span class="Estilo5"><b>Subtotal: <%=subt%>0 <img src="../../img/euro.gif" width="14" height="13"> (i.v.a.
incluido)</b> </span></div>
<form action="../../tpv/enviarMailTxt.asp" method="get" name="souvForm" target="_top" onSubmit="javascript:return check()">
<div align="left">
<div align="left">
<table border="0">
<tr>
<td colspan="4"><h3 align="left" class="Estilo2">Gastos de envio (Servicio Express)</h3></td>
</tr>
<tr>
<td width="21">
<div align="left">
<input name="gastosenvio" type="radio" style="border: 0 0 0 0;" onClick="javascript:pasarValor(this, 11, 0)">
</div></td>
<td width="125"><div align="left"><b>Espa&ntilde;a:</b></div></td>
<td width="50"><div align="left">11 <img src="../../img/euro.gif" width="14" height="13"></div></td>
<td width="200">(Precio Total:
<script language="javascript">total(11)</script>
<img src="../../img/euro.gif" width="14" height="13">)</td>
</tr>
<tr>
<td colspan="2"><span class="Estilo4">(Tiempo de entrega 24 horas)</span></td>
<td width="50">&nbsp;</td>
<td width="200">&nbsp;</td>
</tr>
<tr>
<td width="21">
<div align="left">
<input name="gastosenvio" type="radio" style="border: 0 0 0 0;" onClick="javascript:pasarValor(this, 24, 1)">
</div></td>
<td><div align="left"><b>Europa-USA:</b></div></td>
<td width="50"><div align="left">24 <img src="../../img/euro.gif" width="14" height="13"></div></td>
<td width="200">(Precio Total:
<script language="javascript">total(24)</script>
<img src="../../img/euro.gif" width="14" height="13">)</td>
</tr>
<tr>
<td colspan="2"><span class="Estilo4">(Tiempo de entrega 24 horas)</span></td>
<td width="50">&nbsp;</td>
<td width="200">&nbsp;</td>
</tr>
<tr>
<td width="21">
<div align="left">
<input name="gastosenvio" type="radio" style="border: 0 0 0 0;" onClick="javascript:pasarValor(this, 44, 2)">
</div></td>
<td><div align="left"><b>Resto del mundo:</b></div></td>
<td width="50"><div align="left">44 <img src="../../img/euro.gif" width="14" height="13"></div></td>
<td width="200">(Precio Total:
<script language="javascript">total(44)</script>
<img src="../../img/euro.gif" width="14" height="13">)</td>
</tr>
<tr>
<td colspan="2"><div align="left"><span class="Estilo4">(Tiempo de entrega 2 a 4 dias)</span></div></td>
<td width="50">&nbsp;</td>
<td width="200">&nbsp;</td>
</tr>
</table>
</div>
<TABLE BORDER="0" WIDTH="550" CELLSPACING="0" CELLPADDING="2">
<TR>
<TD HEIGHT="23" colspan="2"> <h3 align="left" class="Estilo2">Rellene el formulario para realizar su pedido</h3></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="23"><div align="left"><B>Nombre:</B></div></TD>
<TD WIDTH="256" HEIGHT="23"><div align="left">
<INPUT NAME="nombre" TYPE="text" size="40">
</div></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="23"><div align="left"><B>Apellidos:</B></div></TD>
<TD WIDTH="256" HEIGHT="23"><div align="left">
<INPUT NAME="apellidos" TYPE="text" SIZE="40">
</div></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="21"><div align="left"><B>Direcci&oacute;n:</B></div></TD>
<TD WIDTH="256" HEIGHT="21"><div align="left">
<INPUT NAME="direccion" TYPE="text" size="40">
</div></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="23"><div align="left"><B>Ciudad:</B></div></TD>
<TD WIDTH="256" HEIGHT="23"><div align="left">
<INPUT TYPE="text" NAME="localidad" size="20">
</div></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="23"><div align="left"><B>Pais:</B></div></TD>
<TD WIDTH="256" HEIGHT="23"><div align="left">
<INPUT TYPE="text" NAME="provincia" size="20">
</div></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="23"><div align="left"><B>C&oacute;digo Postal:</B></div></TD>
<TD WIDTH="256" HEIGHT="23"><div align="left">
<INPUT TYPE="text" NAME="codigopostal" size="5">
</div></TD>
</TR>
<TR>
<TD WIDTH="100" HEIGHT="23"><div align="left"><B>Tel&eacute;fono:</B></div></TD>
<TD WIDTH="256" HEIGHT="23"><div align="left">
<INPUT TYPE="text" NAME="telefono" size="15">
</div></TD>
</TR>
<TR>
<TD HEIGHT="1"><div align="left"><B>E-mail:</B></div></TD>
<TD HEIGHT="1"><div align="left">
<INPUT TYPE="text" NAME="email" size="40">
</div></TD>
</TR>
<TR>
<TD HEIGHT="1" colspan="2"><br>
<div align="center">
<INPUT TYPE="submit" NAME="enviar" VALUE="Cuanto me cuesta?" ID="miboton" fprolloverstyle="color:white;background-color:3300FF;border-color:white;" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" LANGUAGE="Javascript1.2">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT TYPE="reset" NAME="borrar" VALUE="Borrar Datos" ID="miboton" fprolloverstyle="color:white;background-color:3300FF;border-color:white;" onMouseOver="rollIn(this)" onMouseOut="rollOut(this)" LANGUAGE="Javascript1.2">
</div></TD>
</TR>
</TABLE>
</div>
</form>
</td>
</tr>
</table>
</body>
</html>

Última edición por 00israel; 17/08/2004 a las 08:21
  #11 (permalink)  
Antiguo 17/08/2004, 09:55
Avatar de AlZuwaga
Colaborador
 
Fecha de Ingreso: febrero-2001
Ubicación: 34.517 S, 58.500 O
Mensajes: 14.550
Antigüedad: 23 años, 3 meses
Puntos: 535
me parece que tenés que colocar el código de la página enviarMailTxt.asp. En el que colocaste no veo por ningun lado un msgbox
__________________
...___...
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:16.