Hi, i have the following code:
$("#forma_mod_uid").livequery( function (){
$("#forma_mod_uid").ajaxForm({
beforeSubmit: mcargando("#cargando2"),
target:'#mod_2',
success: ocargando("#cargando2")
})
});
the mcargando passes the div wich will contain a spinner img, and then on success ocragando will hide that div, problem is that beforeSubmit is firing beforeSubmit on document ready
function mcargando(id_div){
if (id_div==null){ var id_div="#cargando";}
$(id_div).livequery(function (){$(id_div).show();});
}