Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/08/2012, 04:32
charlyta
 
Fecha de Ingreso: junio-2008
Mensajes: 291
Antigüedad: 16 años, 8 meses
Puntos: 9
error en funcion muy simple

Hola, buggeando con firebug me aparece vaciía esta función super fácil. Tenéis alguna sugerencia?

Código Javascript:
Ver original
  1. <script>
  2. function copiar(from,to){
  3. document.getElementById(to).value = document.getElementById(from).value;
  4. }
  5. </script>

recojo las variables de aquí usando dos eventos onChange:

Código HTML:
Ver original
  1. <input type="hidden" name="filenames" id="filenames" value="" />
  2.                             <p><input type="file" name="filename" id="filename" onChange="ajaxUpload(this.form,'scripts/ajaxupload.php?filename=filename&amp;maxSize=9999999999&amp;maxW=200&amp;fullPath=http://localhost/PRUEBACMS/uploads/&amp;relPath=../uploads/&amp;colorR=255&amp;colorG=255&amp;colorB=255&amp;maxH=300','upload_area','File Uploading Please Wait...&lt;br /&gt;&lt;img src=\'images/loader_light_blue.gif\' width=\'128\' height=\'15\' border=\'0\' /&gt;','&lt;img src=\'images/error.gif\' width=\'16\' height=\'16\' border=\'0\' /&gt; Error in Upload, check settings and path info in source code.'); copiar(filename,filenames);" />