Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/05/2008, 21:09
jhelu
 
Fecha de Ingreso: enero-2002
Mensajes: 106
Antigüedad: 23 años, 3 meses
Puntos: 0
De acuerdo Ayuda!!! Como Imprimir Algo Al Final De Un Ciclo

HOLA, ESTOY BATALLANDO CON UNA PARTE DE CODIGO, ESTOY FORMANDO UN ARREGLO DE JAVASCRIPT, PERO LOS DATOS LOS SACO DE UNA BASE DE DATOS, SIN EMBARGO CUANDO INGRESO LOS DATOS DE LA BD SE IMPRIME AL FINAL LA COMA SIENDO ESTO UN ERROR DE JAVASCRIPT, EJEMPLO

SE IMPRIME ACTUALMENTE:
array('dato1.jpg','dato2.jpg','dato3.jpg',);

Y QUIERO IMPRIMIRLO ASI:

array('dato1.jpg','dato2.jpg','dato3.jpg');

sin la coma al final del dato 3

Me podran ayudar en esto?


estoy haciendo lo siguiente en asp

var Slides = new Array(<%
While Not images.EOF
response.Write("'" &images("imagen")& "',")
images.MoveNext
Wend%>);


sin embargo no se como hacerle para que al final no salga la comilla

gracias desde ya!
__________________
Jherrera.NET