Questions tagged as 'ajax'

2
answers

Handle error: "Uncaught TypeError: Can not read property of 'value' undefined"

Hello, When making an AJAX request, I get the following error: Uncaught TypeError: Cannot read property of 'rede' undefined. I even understand the reason, I do not have the following value on account of the filter made by the user not re...
asked by 20.01.2017 / 19:35
1
answer

Preloader with Materialize

I'm making a request via ajax: $(function () { $('#loader').hide(); $('#formSend').on('submit', function (e) { e.preventDefault(); $.ajax({ type: 'post', url: 'proc_pedidos.php', data: $('form'...
asked by 28.07.2017 / 04:34
1
answer

Include properties of a $ .axax function dynamically

Is there any way to edit the $ .ajax function so that it includes the "date" property when it receives a value, and removes it when it does not receive it? that is, dynamically? Example: When the variable date has value: var parametro = "{i...
asked by 20.07.2016 / 08:17
1
answer

Upload AJAX select multiple files

This script below selects only one file for UPLOAD. I did a lot of research and found nothing that I could implement so I could select multiple files. <script type="text/javascript" > $(function(){ var btnUpload=$('#upload');...
asked by 30.12.2015 / 11:11
2
answers

Ajax Jquery return variable giving error

I have the following script in ajax : $("#contato").on("submit", function () { if($('#descricao').val() == "") { //verifica apena o texto alert("Descrição não está preenchida!"); $('#descricao').siblings().eac...
asked by 06.11.2016 / 19:48
1
answer

How to delete a term entered a form using jQuery?

The code below is part of a function that uses a search term in a text field to extract images from the Flickr site. After entering the word to search, it inserts the text below the field, just to show that it is looking for it, but the problem...
asked by 20.11.2015 / 00:35
1
answer

Do real-time bank search

How can I do it in PHP so that when the user types in the search field it will already appear the records of the database. For example, supposing that it is a city register, the user type "Field", the records "Campo Grande, Campo Largo, Campo...
asked by 24.10.2017 / 18:05
1
answer

How to get Json for Ajax in .html?

Suppose I have a .html file that I just created in notepad with a Ajax code where I want to get the data generated by this application . I made a code here, and when I put a breakpoint in the application I realize that the...
asked by 08.06.2015 / 00:23
1
answer

Why does AJAX allow synchronization?

Hello, in my studies on AJAX, the form of synchronous transmission is always viewed with bad eyes, and the widely recommended form of transmission is asynchronous. If only asynchronous is the one we should use, can anyone explain in what situati...
asked by 20.04.2016 / 04:45
2
answers

Receive variable real time ajax

Well I'm making a system, and I need to get the variable of a php page every time, so I can work on it on my index.php page. A friend of mine who understands more about ajax than I passed the following code: However, I do not know how to p...
asked by 03.07.2016 / 01:00