Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/10/2007, 18:51
malvadi
 
Fecha de Ingreso: junio-2005
Mensajes: 125
Antigüedad: 18 años, 10 meses
Puntos: 1
Una pregunta al hilo

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 PHP:
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