Questions tagged as 'ajax'

3
answers

How to include a load image (Loading), ajax execution

Code the following code that I use after making an "Onsubmit" in form: function buscar(){ resul = document.getElementById('resultado'); bus=document.frmbusqueda.dato.value; tipo=document.frmbusqueda.tipo.value; ajax=nuevoAjax()...
asked by 13.11.2016 / 16:46
2
answers

Load view in a modal with Ajax

Hello! You see ... I have a dilemma with the load of a file (view) that I need will be in the body of a modal , since, this will be the beginning to be able to show information later. As such, I have the following. In my view Li...
asked by 22.12.2017 / 20:29
2
answers

Ajax does not run correctly

The structure of my project is as follows: and I have the following code: Login_inicio.html <!DOCTYPE html> <html lang=""> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" conten...
asked by 21.12.2017 / 05:13
1
answer

Show more than one result json

function OrdersCallback(json) { for (var o = 0; o < json.length; o++) { $('#summary').append('<b>Order Number:</b> ' + json[o].order_number + '<br />'); $('#summary').append('<b>Item:</b> ' + json[o].line_items[0]...
asked by 28.03.2017 / 20:58
1
answer

Because my alert (), does not get to run ?, it will be that there is error on onadyadystatechange

This has the functionality to give click to call this function goLostpass; but it does not show me the message ie it does not go into onreadystatechange. The alert is to look for the error function goLostpass() { // window.alert('Se pres...
asked by 20.04.2017 / 18:06
3
answers

Insert data with AJAX

What is the correct way to perform a data insertion with AJAX. I have seen several tutorials, but they are very different and somewhat confusing. Some use this code xmlhttp=new XMLHttpRequest(); and another no. Some declare variables for...
asked by 14.07.2016 / 22:00
1
answer

Load data in a table without ajax

This is the first question I ask in this medium, I am new in terms of WEB programming and I am costing certain things. I have a problem when loading data, to see if I can explain myself: I'm using php and javascrip for a university projec...
asked by 09.10.2018 / 21:58
3
answers

No click event is executed

I am trying to send a form from an ASPX page to AJAX but it does not enter the event function click of the button in the JavaScript part, I have removed the runat="server" from the form but it generates an error; so I do not know w...
asked by 04.02.2016 / 17:28
1
answer

How to display PHP data in ajax?

I am trying to load the PHP data on the page when it finishes loading, but it does not show me the data, here is a simple example: <?php $datos = new stdClass(); $datos->mensaje = "hola"; header('Content-type: application/json;...
asked by 28.07.2018 / 03:27
1
answer

how can I validate a data model with mvc

Am I processing my save information through AJAX, sending parameters in a JSON string that I later get in the controller, how can I send error messages in the fields of the view that are wrong? $('#btnGuardar').click(function () {...
asked by 12.04.2018 / 01:28