Comunidad de diseño web y desarrollo en internet online

Una pregunta al hilo

Citar            
MensajeEscrito el 25 Oct 2007 12:52 am
Hola cargando unas variables del php tengo esta funcion cree un campo de texto detalles2.text para jalar la variable producto lo malo es que cada vez que ejecuto la funcion carga variables despues ej moto1moto2moto3

probe con detalles2.text="" pero no funciona

Código :

mostrarDetalle=function(exito){
   if (exito){
      if (this.output=="ok"){
         detalles.htmlText="";
         detalles.htmlText+="<b>Id: </b>"+this.id+"<br>";
         detalles.htmlText+="<b>Producto: </b>"+this.producto +"<br>";
         detalles.htmlText+="<b>Codigo : </b>"+this.codigo+"<br>";
         detalles.htmlText+="<b>Sucursal 1: </b>"+this.suc1+ "<br>";
         detalles.htmlText+="<b>Sucursal 2: </b> " +this.suc2+ "<br>";

         
         detalles2.text+=this.producto ;
                  
      } else {
         detalles.htmlText="Se produjo el siguiente error: <b>"+this.msg+"</b>";
      }
   } else {
      detalles.htmlText="Error al cargar los datos del usuario";
   }
}


gracias

Por malvadi

18 de clabLevel



 

msie
Citar            
MensajeEscrito el 25 Oct 2007 02:25 pm
quita el caracter de suma en "+=" debe quedar "detalles2.text = this.producto;"

Por gabynufe

Claber

446 de clabLevel



 

México, D.F.

msie7

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.