Questions tagged as 'ajax'

1
answer

help with php and jquery function

Hello, I happen to have the following: $("#frmAcceso").on('submit',function(e) { e.preventDefault(); logina=$("#logina").val(); clavea=$("#clavea").val(); if ((logina!="") && (clavea !="")) {...
asked by 09.09.2017 / 08:03
0
answers

Problem in login, if the data is invalid it does not show the user error alert

Greetings, again around here. I have a login that validates by user types through AJAX which makes the request to PHP, when entering both username and password that exist in the users table, no problem, log in well. The problem arises when on...
asked by 05.09.2017 / 23:13
0
answers

500 (Internal Server Error) GET and request POST from JQuery / ajax to heroku server

I have my Django application deployed in Heroku at free dyno . I am currently sending some requests GET and POST from JQuery / ajax In my local development environment, the requests to my url endpoints work very well, a...
asked by 01.09.2017 / 15:19
1
answer

JavaScript execution error

I have the following code that makes a request to a WS by jquery: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Calling Web Service from jQuery</title> <script type="text/javasc...
asked by 01.09.2017 / 20:21
1
answer

How do I iterate with an array

How do I iterate with a array that I bring from the database in php and then send all those data obtained by a JSON to my view? This is what I have so far: $conn = new mysqli($host, $user, $pass, $db); $errores = array(); if...
asked by 25.08.2017 / 20:31
1
answer

Problems with Servlet access through Ajax call

Good morning, everyone, to see if someone could give me a hand to solve a problem I'm having. I'm trying to access a Java Servlet from an Ajax call via JavaScript, until then everything would fit, but when I make the call to the Servlet it re...
asked by 25.08.2017 / 14:45
0
answers

Error filling select with data from a query, the data appears and disappears!

I am showing in a select the courses in which the student is not enrolled, this is to enroll the student in another course. This select I fill in through a query, the problem is that when I click on add course to show me the form with the sel...
asked by 28.08.2017 / 00:44
1
answer

Problem with URL invoke it with AJAX

Sometimes I can invoke it like this: $.ajax({ type: "GET", url: "Mantenimiento/Encuesta", data: { iIdEncuesta: iIdEncuesta }, success: function (oDatos) { $("#divEncuesta").html(oDatos); }...
asked by 24.08.2017 / 23:21
0
answers

Can not set property 'innerHTML' of null

When my code is executed in ajax it gives this error:    Uncaught TypeError: Can not set property 'innerHTML' of null       at XMLHttpRequest.req.onreadystatechange ( link @ inicio.php: 57      home.php: 57 Uncaught TypeError: Can not set...
asked by 28.08.2017 / 05:39
0
answers

Validate chat with PHP, AJAX and MySQL

In what I find myself validating my chat, I came up with a form that I do not know if it will work yet but it is as follows: In the chat at the moment to save two data = $ id_user which is the current session and $ id_ar which is the data of...
asked by 19.08.2017 / 23:11