Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/11/2008, 10:03
aliyuwey
 
Fecha de Ingreso: mayo-2008
Mensajes: 148
Antigüedad: 16 años
Puntos: 1
Respuesta: ayuda para borrar

Cita:
Iniciado por the_web_saint Ver Mensaje
Lo que puedo decirte en base al error, porque con el código que haz colocado no nos dice nada es que estas intentando usar un elemento, ya sea por id o nombre en alguna función js que incluyes llamada res_action que no esta creada en tu página.
Es lo que pienso, el error es muy general.

Saludos

PD: Te recomiendo que busques en los js que incluyes donde usas o intentas usar ese objeto o elemento, para determinar como solucionarlo.
hola muchas graacias por tu respuesta, busque en el sitio completo con un ctrl + f

y encontre esto:
Código PHP:
    var res = [];
    
Array_each(inputs, function(checki) {
        var 
hidden utility.dom.getChildrenByTagName(check[2].parentNode'input');
        
Array_push(res, [hidden[1].namehidden[1].valuehidden[1]]);
    });

    
//build the query string
    
var res_action form.form_action;
    
Array_each(res, function(inputi){
        var 
iname input[0];
        if (
>= 1) {
            
iname += '_' + (i);
        }
        
res_action += ((res_action.indexOf('?') >= 0) ? '&' '?') + iname '=' input[1];
    });

    var 
ajax_panel typeof PanelForm_overrideSubmit == 'function';
    
//if we are inside an ajax panel we must avoid the server side redirect from KT_back 
    //so we'll submit directly to the delete transaction; do not add the KT_back parameter
    
if (!ajax_panel) {
        
res_action += ((res_action.indexOf('?') >= 0) ? '&' '?') + 'KT_back=1';
    }
    var 
variables = [['KT_Delete1''1']];
    var 
qs = new QueryString(form.param_name);
    
Array_each(qs.keys, function(keyi) {
        if (
key != 'KT_back') {
            
res_action += ((res_action.indexOf('?') >= 0) ? '&' '?') + key '=' qs.values[i];
        }
    });

    var 
frm nxt_list_submit_inputs(
        
inputs
        {
actionres_actionmethod'POST'}, 
        
variables
    
);
    
// GET: id_usr=1&id_usr_1=2&KT_back=1
    // POST: kt_pk_user_usr_1=1&kt_pk_user_usr_2=2&KT_Delete1=1
    
if (ajax_panel) {
        
frm.submit PanelForm_overrideSubmit;
    }
    
frm.submit();

    return 
false;
}

// add new item button
// the button object must be passed 
en mi hoja list.js

en en la unica hoja que aparece y el unico codigo que dice res_action, espero puedas ayudarme
muchas gracias