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

Mi intecion era hacerlo de este metodo

--------------------------------------
con DOM (ID="col2")
<a href="javascript:comprar(<% =info("id")%>, document.getElementById("col2").value)">
--------------------------------------
pero al parecer solo te coge el col2 del primer articulo. si hay mas en la pagina no te la coge. sabes pq?
segun dices el dom es una tecnologia reciente y habra problemas con versiones antiguas. por eso tb he probado lo siguiente:

------------------------
<FORM name="producto" id="producto" >
<%
'Vemos que articulos tienen diferentes colores.
if objRS3("color") then
response.write(" <font class='arttexto4'>Elige Color</font><font size='-2'>(Ver imagen ampliada)&nbsp;&nbsp;</font><input id='col2' name='col2' type='text' size='3'>&nbsp;&nbsp;")
end if

if objRS3("estructura") then
response.write(" <font class='arttexto4'>Color Estructura </font><input name='est2' type='text' size='3'>&nbsp;&nbsp;")
end if

if objRS3("cajones") then
response.write(" <font class='arttexto4'>Color Cajones </font><input name='caj2' type='text' size='3'>&nbsp;&nbsp;")

<a href="javascript:comprar(<% =info("id")%>, document.producto.col2.value)">
end if
%>
</form>
-----------------------------
este codigo no te permite acceder al siguiente formulario. lo he revisado y parece q todo esta bien. se te ocurre algo?