How can I show a object using Ajax in a button with JQuery? -


in module appinformacionderegistro have method accionbotonenviar , , contains click(function():

accionbotonenviar: function(data){  var self = this;       $("#btn_enviar_formulario_id").click(function(){      (var = 0; <acontadorestados.length; i++) {     var enviar = true;         if (acontadorestados[i] == "no contiene") {             enviar = false;         break;         };      };     if (enviar) {         self.hideerror();           self.hidesuccess();         self.validarnombretrabajador();     }else{         self.hidesuccess();         self.hideerrortrabajador();         self.showerror();     }; });  }, 

for now, need show object objtareas of method datosguardados chrome's debug console console.info(), using ajax.

datosguardados: function(problema){  var self  = this;  var objtareas = new object();  objtareas.tareas = atareas; objtareas.descripcionproblema = problema; objtareas.idtareaseleccionada = $('#nombre_trabajador_id').val(); objtareas.nombretrabajador = $('#nombre_trabajador_id option:selected').text();  console.info(objtareas); return objtareas; }, 

somewhere in method accionbotonenviar , need use ajax show method datosguardados console when press button.

how can this?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -