Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/09/2006, 16:56
infolan
 
Fecha de Ingreso: noviembre-2005
Mensajes: 405
Antigüedad: 18 años, 6 meses
Puntos: 0
testear esta funcion para sesion

Hola a todos

Tengo esta función :

function test()
{
inputs = document.forms[0].getElementsByTagName("input");
var cadena="";
var x = 1;
var mi_array = new Array();
for (var i = 0, total = inputs.length; i < total; i ++)
{
var producto = inputs[i].id;
var i;
if (producto!="")
{
producto = producto.substring(producto.length-12);
cantidad = inputs[i].value;
union = producto + "-" + cantidad + "/";
mi_array[x]= union;
x = x + 1;
}
}
alert(mi_array[5]);
}


Y me gustaría hacer el resultado del array pasarlo a una variable de sesión de ASP, hay me puede ayudar