Do refer to prototype documentation for actual method/function names.
Regards
jason
--
Sent from Gmail for mobile | mobile.google.com
onSuccess: this.exito,
to
onSuccess: function (transport){
alert(3);
var XML = transport.responseXML.documentElement;
var response = XML.getElementsByTagName('respuesta')
[0].childNodes[0].nodeValue;
if (response == 'bien'){
var accion = XML.getElementsByTagName('accion')
[0].childNodes[0].nodeValue;
if (accion=='alta'){
this.exito_alta(XML); <---- Here stop, no
call the function
}else if(accion=='modificar'){
this.exito_modificar(XML);
}else if(accion=='eliminar'){
this.exito_eliminar(XML);
}
}else{
var error_type = XML.getElementsByTagName('error_type')
[0].childNodes[0].nodeValue;
var error_description =
XML.getElementsByTagName('error_description')
[0].childNodes[0].nodeValue;
// var content_error = ;
str = '<strong>Placa:</strong>' + $('bplac').value +
'<br><strong>Error tipo:</strong>' + error_type +
'<br><strong>Descripcion:</strong>' + error_description;
$('estado').update(str);
}
},
})
I added to my Class initialize but not work :(
var Taller = Class.create({
initialize: function() {
this.exito.bind(this);
this.exito_alta.bind(this);
},
2008/9/19 jason maina <jason...@gmail.com>:
--
________________________________________
Lo bueno de vivir un dia mas
es saber que nos queda un dia menos de vida
2008/9/22 Matt Foster <mattfo...@gmail.com>: