![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/02/2011, 20:38
|
![Avatar de luchosp](http://static.forosdelweb.com/customavatars/avatar382669_1.gif) | | | Fecha de Ingreso: diciembre-2010 Ubicación: Buenos Aires
Mensajes: 10
Antigüedad: 14 años, 1 mes Puntos: 0 | |
Respuesta: Como llevar un error de php a js Encontre esto pero no lo entiendo muy bien :S
success: function(h){
switch(h.charAt(0)){
case '0': //Error
mydialog.alert('Error', h.substring(3));
break;
case '1':
$('#div_cmnt_'+comid).fadeOut('normal', function(){ $(this).remove(); });
break;
}
},
Creo que reconoceria el 0: y el 1:
0: es error
1: es satisfactorio |