Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/07/2007, 04:19
mgm1984
 
Fecha de Ingreso: julio-2007
Mensajes: 7
Antigüedad: 17 años, 9 meses
Puntos: 0
Re: Variables en formulario

muy buena idea la de poner un identificador para cada registro pero algo sucede.
no me permite pasar al siguiente formulario (es decir, no se ejecuta la funcion js). esto me ha sucedido otras veces pero no se pq. te voy a escribir todo el codigo de la visualizacion de los articulos a ver si sabes pq:
El codigo esta con las modificaciones q me has presentado en el post anterior

'<<<<< Comienzo de VerArt 2 >>>>> %>
<table class="<% =clabor %>" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80" valign="top" class="arttitular2">
<div align="center">
<% imag = imagendev(objRS3("id"))
if not imag = "imagen.gif" then %>
<a href="javascript:mostrar('<% =imag %>','<% =reemplaz(objRS3("nombre")) %>',<% =tamano(imag) %>);"><img src="reducir.asp?no=<% =imag %>" border="0"><br>
<img src="images/ampliar.gif" width="65" height="16" vspace="0" border="0"></a>
<% else %>
<img src="images/articulos/imagen2.gif" width="80" height="80" border="0">
<% End if %>
</div>
</td>
<td valign="top" class="arttexto5"><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td class="arttexto4"><strong>
<% =objRS3("nombre") %>
&nbsp;&nbsp;
<% if objRS3("novedad") then response.write("<font color='#FF0000'> ¡Nuevo!</font>") End if %>
<% if objRS3("oferta") then response.write("<font color='#FF9900'>&nbsp;&nbsp;¡O F E R T A!</font>") End if%>
</strong></td>
</tr>
<tr>
<td class="arttexto4"><% if objRS3("descripcion")<>"" then response.write(objRS3("descripcion")) else response.write("&nbsp;") %></td>
</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="texto">
<form name="producto" id="producto">
<% strSQL = "Select * from referencias where idarticulo = " & objRS3("id") & "order by precio"
set info = objBase1.Execute(strSQL)
Do Until info.EOF %>
<tr>
<td><font color="#9D5F00">&nbsp;Referencia:&nbsp;</font><% =info("referencia") %>
<font size="-2" class="texto">
<% if len(info("descripcion")) > 0 then response.write(" - " & info("descripcion")) %></td>
<td><div align="right">&nbsp;
<%
'Vemos que articulos tienen diferentes colores.
if objRS3("color") then
response.write(" <font class='arttexto4'>Color tablero </font><font size='-2'>(Ver imagen ampliada)&nbsp;&nbsp;</font><input name='col2_" & info("id") & "' type='text' size='3'>&nbsp;&nbsp;")
end if
if objRS3("estructura") then
response.write(" <font class='arttexto4'>Color Estructura </font><input name='est2_" & info("id") & "' type='text' size='3'>&nbsp;&nbsp;")
end if
if objRS3("cajones") then
response.write(" <font class='arttexto4'>Color Cajones </font><input name='caj2_" & info("id") & "' type='text' size='3'>&nbsp;&nbsp;")
end if
%>


<% if Session("Auto") = "Y" or aprecios or (preofer and objRS3("oferta")) then
if info("precio") > 0 then
response.write("<font color='#9D5F00'>Precio:</font> <span class='precios'>&nbsp;" & FormatNumber(info("precio"),2) & " &euro;"& "&nbsp;</span>")
%>

&nbsp;<a href="javascript:comprar(<% =info("id") %>, document.producto.col2_<%=info("id") %>.value)"><img src="images/car.gif" alt="Agregar a la Cesta" width="30" height="17" border="0" align="absmiddle"></a>


<% End if
End if %>
</div></td>
</tr>
<% info.MoveNext
Loop
Set info = Nothing %>
</form>
</table>
</td>
</tr>
</table>

Última edición por mgm1984; 16/07/2007 a las 04:25