Ver Mensaje Individual
  #10 (permalink)  
Antiguo 17/08/2004, 08:19
Avatar de 00israel
00israel
 
Fecha de Ingreso: enero-2002
Ubicación: madrid
Mensajes: 636
Antigüedad: 23 años, 3 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