Questions tagged as 'ajax'

1
answer

Error after View being called

I have a login screen with the following call when the user clicks the "log in" button $(document).ready(function(){ $("#formLogin").on('submit', function (e) { e.preventDefault(); var form = $(this); var mensagem =...
asked by 01.12.2017 / 13:27
3
answers

Help to understand localStorage.js

I'd like some help to enter localStorage in javascript . Objective: To make a function of saving information in the input identical to wordpress, example:     InthethirdprintitiswhatIwant,ifitdoesnotenteranythinginthepasswordfield,butalre...
asked by 07.12.2017 / 20:24
1
answer

Difficulties in loading data in Input via Ajax

I'm trying to load data via Ajax by typing a code and clicking on TAB it automatically searches the DB and prints it on form inputs. Iranatestwithconsole.log(data)andthedataisbeingreturnedbutdoesnotloadtheInputsoftheform FollowtheJSCode//Buscoa...
asked by 25.01.2018 / 16:39
1
answer

Write textarea line break in database

I have <textarea class="form-control" id="informacoes" name="informacoes" rows="3" placeholder="descreva aqui..."></textarea> where the user can enter various information. Information is sent via ajax : function sal...
asked by 23.01.2018 / 12:01
2
answers

Reload the main script when completing ajax request

I'm developing an application where I have some views that are loaded into my <section id="view"> via ajax. The view loads normally, but functions that have been programmed with jQuery for all inputs, for example, do not work. As...
asked by 03.02.2018 / 04:51
1
answer

Help with Combo Box with Ajax

I used a YouTube video lesson to create a Combo Box for States and Cities, but I followed the reasoning of the STATES.PHP page and I inserted it in the CITIES.PHP page and created the BAIRROS.PHP page, but I did not succeed because when I enter...
asked by 12.11.2017 / 18:03
1
answer

Update database with AJAX Switche button (Materialize)

I'm using the Materialize FrameWork, in it I have a switch (Switche) that switches between ON and OFF , just in html, I wanted to insert this into a database Mysql, all in real time, by pressing the button, it changes the value in the databas...
asked by 24.12.2017 / 16:58
1
answer

Use AJAX return in other functions

I have 2 functions: function1 returns a JSON via AJAX and lists the data in an HTML table dynamically, so far everything works. Function2 needs to handle the same data, however, I did not want to make another AJAX request by invoking functi...
asked by 18.11.2017 / 17:23
1
answer

Is it possible to monitor all Responses and Headers of the page to use as a trigger for a function?

I have a script that needs to be executed only after the return of a page request, since the request returns HTML content, and the function I want to execute immediately after it implements this received HTML. The problem is that I can not play...
asked by 25.10.2017 / 22:42
1
answer

Populate INPUTS with ajax

I have some fields that I need to populate with AJAX from a SELECT in php. I am already able to fill in the ID field, and CUSTOMER, now the remaining items are missing, such as ENDERECO, CPF, NEIGHBORHOOD, CITY. Ajax $("#resultado").hi...
asked by 29.10.2017 / 02:14