Ver Mensaje Individual
  #2 (permalink)  
Antiguo 23/06/2011, 17:44
Avatar de goteen_mx
goteen_mx
 
Fecha de Ingreso: abril-2005
Ubicación: D.F.
Mensajes: 403
Antigüedad: 19 años, 10 meses
Puntos: 37
Respuesta: pasar un array de php a js

Lo tienes que hacer con php no con js.

Código PHP:
Ver original
  1. var arrJS=new Array();
  2. <?php
  3.  
  4. for($i=0;<count($arr);$i++){
  5.    echo "arrJS[".$i."]=".$arr[$i] .";";
  6. }
  7.  
  8. ?>

Saludos.
__________________
Born to be free.