Questions tagged as 'ajax'

3
answers

Doubt validate .click () out of function () jQuery

I need to validate if button with class .pop-yes has been clicked, but I need to validate this out of the .click() event so that the $(this).parent [...] line is executed. The way it's here, it runs before I click...
asked by 19.04.2017 / 16:38
1
answer

Load data from a list of a method in the servlet

Good afternoon person! I have this method in the servlet that returns a list of values. How do I load the values it has with jquery? @WebServlet({"/ControleMovEstoque","/template/buscaMaterialExist.html","/template/cadEntradaEstq.html"}) publi...
asked by 31.03.2017 / 21:40
1
answer

Get data json print in real time

Hello friends, good night! I have this code working perfectly so I need it to print the variable type every 5 seconds and they told me that I had to do this with ajax but I do not know how to do it!    json [ {"latitude": "-3.3462, -60....
asked by 14.04.2017 / 07:40
3
answers

Paste data attr from DataTables / jQuery element

I'm developing a project in PHP, MySQL, jQuery and CSS, and I came across the following bug (in quotation marks because it's not a bug in fact) using the dataTables + bootstrap + ajax plugin: First a table with some data is loaded, and when a...
asked by 13.04.2017 / 15:45
1
answer

Login with AJAX and PHP with database (Why is it going wrong?)

$(document).on("click","formlogin",function(evt) { $.ajax({ type:"GET", url:"http://localhost:8080/ProjetoXDK/appModelo/www/php/entrar.php", data:{ var cpf = $('#cpf').val(), var...
asked by 22.10.2017 / 20:29
1
answer

How to get, by reference, string values using PHP

The way it is: var dados = $('#form').serialize(); // title=titulo&body=corpo $.post("autosave.php", dados); In PHP I get the values by reference as follows: $title = &$_POST['title']; and $body= &$_POST['body'];...
asked by 31.01.2017 / 11:39
1
answer

POST problem using JQuery

I'm studying JQuery and I'm having a problem with giving POST to an API that I have. Follow my html : <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Co...
asked by 15.03.2017 / 01:59
1
answer

Sending ajax with notification

Good morning, I'm having a problem in a test, I'm returning a notification, but the notification of only one message, that is, a success message, I can not get an error message, type an if else , and I wonder if it's not a gambiarra what I did,...
asked by 28.11.2016 / 13:46
1
answer

Creation table with dynamic filter

My intention is to create filters to appear the columns all initially and to be able to choose the columns that appear through checkbox. Can someone help me do this? <div class= "form-group" <input type="checkbox" class= "btn btn-d...
asked by 25.10.2016 / 15:27
4
answers

AJAX contact form without refresh

How to create a form with ajax that when pressing the send button it will not redirect you to another page but a message just below "Sent data". Here is an example of a code I'm studying, but it redirects you to another page in the sendemail...
asked by 03.01.2017 / 15:16