Questions tagged as 'ajax'

3
answers

Index identification changes before time JS

Hello everyone, I have a problem, next I need to create an element and send it via ajax, wait for it to perform (done / fail) and execute an action on that element, but sending and creating elements can be done several times in a row. the return...
asked by 05.10.2015 / 17:21
1
answer

Abort an Ajax request

In a situation where I use ASP.NET MVC , can you cancel a AJAX request depending on the response of a modal? I'm doing something like this: function atualizaStatus(sel, id) { var $status = sel.value; var $idAluno = id;...
asked by 20.01.2016 / 14:02
1
answer

Change event is only triggered when changing tab or changing window

Good afternoon guys. I'm trying to implement an autocomplete using typeahead.js. Assign a change event to my input to make an ajax request that brings me the data that will be displayed in the list. However, when the screen loads and I typ...
asked by 20.01.2016 / 17:35
1
answer

How to save a JSON locally?

Direct question: What is the best way to save a JSON file locally and how to do it? Details: I have a web application that receives user data using the Facebook API (Javascript SDK), I need to save this data to a JSON file locally. After sa...
asked by 27.10.2015 / 19:46
2
answers

How to retrieve the option in the click and select the item that is in its value?

<div class="escolher_temas"> <form action="iframe.php" method="GET"> <select name="escolhe_tema"> <option value="http://z05.axitech.com.br">Tema 1</option> <option value="http://z06.axite...
asked by 30.05.2015 / 14:34
1
answer

Difference between Synchronous AJAX and POST / GET

Is there a performance and performance difference between a Synchronous AJAX and a POST / GET connection? Both lock the thread (the browser freezes) but there are other differentials between the connection types?     
asked by 04.11.2015 / 11:33
3
answers

AJAX: Send value to php file, make query using this value and return an array Json

Can anyone help me with this code? Because it does not work? I'm trying to send a value received by a form to a php file, use that value in my SQL query by searching for records that contain that value, return a Json array with the result (s) an...
asked by 10.11.2015 / 05:56
1
answer

JSONP: status code 200 OK and even then returns $ .Ajax (... error: function () ...)

We're having a hard time making a request $.ajax , JSONP. The problem is that even with positive feedback (Status Code: 200) the function shown below always returns the error-checking result as positive. $(document).ready(function()...
asked by 15.02.2015 / 01:21
1
answer

Return JSON with ASP.NET/C#

I have the following codes Default.aspx <script type="text/javascript"> /* Relógio */ function startTime() { $.ajax({ type: 'POST', url: 'Default.aspx/GetNetworkTime',...
asked by 26.01.2015 / 18:42
1
answer

Dropdown with JQuery / Ajax only sends data in first record

I'm dynamically dropping a dropdown for each item in a list returned in PHP. When selecting any of the dropdown items, this value is sent to an Update.php file, via JQuery and Ajax. The Dropdown: //Aqui tenho um while em PHP para criar um D...
asked by 19.07.2015 / 00:58