Questions tagged as 'ajax'

1
answer

AJAX / jQuery call running only once

Hello everyone, I'm setting up a tree (network) scheme where I send the frames via GET to my API, and it returns the data to put together my code: $('.btn-rede').click(function () { let nivel = $(this).attr('data-nivel'); let pai = $(t...
asked by 06.12.2018 / 12:51
1
answer

fetch api GET method with Django

I'm trying to do this with ajax, but it always returns form , it follows my line of code: / p> recovery-id.js: const recoveryButtom = document.querySelector('#recovery-id'); const inputs = document.querySelectorAll('input'); r...
asked by 03.12.2018 / 14:10
1
answer

How to store a JWT Token in a simple method and redirect to another page?

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Title<...
asked by 15.12.2018 / 04:12
2
answers

How to reload a page with load.gif?

Expensive, how do I reload the page so it does not flicker? Can I leave a GIF on the screen while the page is being reloaded? $('#objetivos-form').live('submit',function(){ var form = $(this); // validando if (...
asked by 02.06.2014 / 19:18
1
answer

Fill modal to edit with information coming from the database based on id

I need to fill a Modal in edit mode based on the id I received. My code: $("body").on('click', '#editfoto', function () { $('#modalEdit').modal('show'); id = $(this).data("idedit"); $.get("editafoto.ph...
asked by 26.11.2018 / 14:39
1
answer

Problem with Ajax request in JavaScript

I have a mobile application under development using Cordova , which performs a select on my external DB and checks with the mobile data so knowing if there is any change in the given. I am using a request via AJAX . The correct op...
asked by 02.09.2015 / 16:32
1
answer

I can not create a new client on the server

Good evening, I'm a student at JS, html. I'm trying to learn how I can do an inclusion on the server (I apologize if I describe with the incorrect word or term some step). I have to create a website to do a CRUD on the server. I have to implemen...
asked by 18.11.2018 / 01:05
1
answer

How to return data from a json file in a growing way, different from the root of the objects? [closed]

I want to return data from a json file, however I want them to be printed on the page from the bottom up, ie the most recent data, which by default of the root are written from top to bottom in json, always appear at the top of the page, as a ne...
asked by 28.11.2018 / 17:18
1
answer

AJAX completes the URL from where it was called

I'm starting to use AJAX now, so I do not know if this is what's going on with it. I made this code to do a CPF search in the database $('#btn_buscar_cpf_responsavel').on('click', function(){ var cpf = $('#aluno_responsavel_cpf').val()...
asked by 14.11.2018 / 13:55
2
answers

Using Ajax in CakePHP 2.0

I can not use the normal Ajax syntax in CakePHP . I've seen a few things about JsHelper , but I can not do what I want. How can I call a action of controller by Ajax sending certain data and then receive the result of a...
asked by 27.02.2014 / 13:37