Most voted "ajax" questions
AJAX (Asynchronous Javascript and XML) is a technique for creating interactive websites uniformly through asynchronous data exchange between client and server. AJAX facilitates server communication or partial page updates without a traditional page update.
Learn more…3,397 questions
Sort by count of
-
0
votes1
answer1076
viewsHow to search for values in a PHP file with jQuery - AJAX?
Guys I want to search a string in a PHP file called search.php I want to return a string to my index.php but I want to do this when calling the function try_it(), is there any way to do this with…
-
0
votes1
answer62
viewsHow to take string values by reference using PHP
The way it is: var dados = $('#form').serialize(); // title=titulo&body=corpo $.post("autosave.php", dados); In PHP I can take the values by reference as follows: $title = &$_POST['title'];…
-
0
votes0
answers152
viewsRedirect Page in AJAX Replay in Asp.net Mvc
I’m having problems redirecting a page, in my Ajax Answer, when I am in Firefox in debug mode, I can redirect, without Debug the page only one refresh, I tried other Directs also failed, only works…
-
0
votes1
answer220
viewserror in sending data via ajax
I’m not able to send the data to mysql via ajax, I don’t know where part of my code could be wrong. My index in which categories are listed from the database via jquery. <div…
-
0
votes1
answer122
viewsJavascript function does not resume $_POST from PHP
I’m implementing a progress bar in a simple file upload script. I have the three files that are giving me a headache, Upload.php where the upload script is located, script.js where is situated the…
-
0
votes1
answer77
viewsI need two clicks to activate Jquey function
Hello, I am learning how to work with AJAX/JSON requests, and I came across a problem (which I think is more to do with Jquery, but I added PHP and AJAX tags, because you never know). come on; when…
-
0
votes1
answer155
viewsTreat Exception in Jquery Post
I have this function Javascript (Post Ajax) that when the post she’s passing theif (r != "") {. I needed to capture what was an exception and treat her out of the if. JavaScript function…
-
0
votes2
answers567
viewsUndefined index: action when sending ajax data to PHP
i am having problems sending the parameters of my ajax to PHP, is giving me the error Undefined index: acao in my file log.php my ajax takes the username and password of the html form and sends it…
-
0
votes1
answer85
viewsPass value to 2 different paths
I would like to pass the variable var data = 'codreq=' + id; for two ways. Is that possible? If so, someone can teach me. I can only go this way: url: "<?=…
-
0
votes1
answer77
viewsSingle ajax with different outputs that doesn’t work without async
Hello. I have a function with an ajax request inside (that’s the real function): function carregaAjax(caminho,tabela,funcao,dados){ dados.push({name:"funcao", value:funcao});…
-
0
votes3
answers1453
views$. getJSON - How to store responseJSON in a Variable?
I am mounting a Javascript object with the following constructor: var jsonResult = ""; // Inciei uma variável fora do escopo da Função function criarDicionario(lang) { this.lang = lang; this.dicio =…
-
0
votes1
answer211
viewsTable filled incorrectly HTML and Java script
I have the following situation, when I enter the data from the database, my table is populated as follows: And this message appears: "No data available in table", as if the data that are inserted…
-
0
votes1
answer151
viewsTake the last id generated in the Insert with jquery and redirect to another page
hello, I’m having a hard time getting the id generated in php with jquery, so I can send this id to another page, follow the code: queryInsert.php $assunto = $_POST['assunto']; $msg = $_POST['msg'];…
-
0
votes0
answers514
viewsProblems with ajax/json and cross-origin redirect
I have an application, in flask + javascript, that needs to query a url (on a server I don’t have access to), however I get cross-origin redirect error Xmlhttprequest cannot load…
-
0
votes0
answers35
viewsUse Ajax to load options from multiple selects after choosing an option
Ps.: This is not the same question already asked in another topic. This involves Ajax. I find it funny a lot of people marking it as duplicate without even reading the heart of each question or…
-
0
votes1
answer201
viewsDatatable library conflicting on Other script
I use this library below to run my tebela functionalities <script src="tables/datatables/assets/custom/js/datatables.init.js?v=v2.1.0"></script> But this script below only works when the…
-
0
votes1
answer1495
viewsUpdate Table with filter using jquery
Good morning I’m looking for solutions to a demand but only found in php. I’m new in Jquery, Ajax... I want to put the filter of my table to be dynamic as the user is typing will appear the data, I…
-
0
votes1
answer203
viewsReturns no error from an AJAX function
Returns a alert empty when I use this code (I picked it up on the internet): <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> <script…
-
0
votes1
answer151
viewsPick element selector created at runtime
I have a system that lists the fields and attributes of a table through javascript and ajax up to there everything, only that the elements created and listed in precise runtime manipulates lós…
-
0
votes1
answer535
viewsAjax, Javascript and PHP form
How can I make a form with a UF field and a selection field with label Cities that will be filled through AJAX and that when selecting the UF the JS function connects to the server and returns the…
-
0
votes1
answer286
viewsAJAX no response from SUCCESS
First of all, this code is just a small part of the complete code, I’m having a simple problem, but I couldn’t solve it. First, I have an HTML form, which sends by POST method, the values of the…
-
0
votes1
answer529
viewsJavascript does not receive json Response from Laravel
I’m trying to get Javascript to receive the data sent by the server and play in Alert. But it always comes Undefined. I’ve looked at many topics about it on the internet and found nothing wrong with…
-
0
votes1
answer165
viewsCapture my own number of followers
I’m trying to get a get of my follower number via Instagram API. I already own my clientId, mine userid and my accessToken. With the use of instafeed.js I can already access the feed. But whenever I…
-
0
votes1
answer589
viewsSend form parameter to controller via ajax
I have an Index with a form, I need to fill this form and when clicking the Filter button, call the controller using ajax. Index.cshtml @using (Html.BeginForm("ResultadoPesquisa",…
-
0
votes2
answers197
viewshow to fix Refusal in Webservice Post
When Sending the Post: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8", url: "/CmisWebRequests.asmx/GetMessageResponse", data: dataToSend, dataType: "json", async: true, error:…
-
0
votes2
answers92
viewsError converting Ajax Array to Array in PHP
I’m having an error trying to pass an ajax array to PHP and I can’t find a solution, I was based this instruction, but I couldn’t make it work. HTML: <tr id="<?php echo $produto['idarquivo'];…
-
0
votes0
answers47
viewsSequences of actions in ajax
Good afternoon! I don’t know if the title of my question is correct any more if someone has a better please change. I have following problem, I have an emission ERP and NFE and Nfce is working…
-
0
votes0
answers109
viewsI cannot recover $_SESSION with ajax and codeigniter
I’m having trouble recovering a $_SESSION using php native Session with ajax in codeigniter, because when I try to verify the data informUndefined. follows the code, since thanks to all. controller…
-
0
votes1
answer470
viewsPOST problem using Jquery
I’m studying Jquery and I have a little problem to give POST in an API I have. Follows my html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta…
-
0
votes0
answers129
viewsStore onclick values in the database
Colleagues, How do I get the value of a onclick and direct to another page. See below: $('.value-plus').on('click', function(){ var lista = $('.invert > span'); $.each(lista,…
-
0
votes1
answer1607
viewsHow to run a php function in ajax?
I’m wondering how I can do to click a button and the onclick of this button I call a php function, said I have to use ajax, but I have no knowledge in ajax but I will study, could help me?…
-
0
votes1
answer398
viewsConsult BD after leaving the input focus and return results without refreshing?
I have a table that has about 30 input fields to perform a release, example: <input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlength="8" /> <input type="text" size="8"…
-
0
votes1
answer656
viewsDelphi - Datasnap authentication via AJAX
I am now starting to use authentication in Datasnap. I am trying to access the methods via AJAX and is returning error 401 - Unauthorized. My request is as follows: $.ajax({ username: login,…
-
0
votes1
answer34
viewsHow to make a call from a file that contains an ajax form?
How I call a file that has the content of the conditions form? Html <label>SELECIONE UMA OPÇÃO</label> <form> <label><input value="A" name="opcao" type="radio">opcao…
-
0
votes1
answer54
viewsProblems in Javascript date conversion
I have a system hosted at UOL where I capture the data through a ajax of my WebService and the dates that are in the bank are in the format of DD/MM/AAAA but when I return to the screen(HTML) the…
-
0
votes1
answer73
viewsError while receiving variable JSON
That way I can get my values back: var unidades: "101|102|103|104"; function getValue(key, array) { for (var el in array) { if (array[el].hasOwnProperty(key)) { return array[el][key]; } } } var…
-
0
votes0
answers150
viewsJavascript function returns wrong Ajax
I’m validating a register with JS. There’s a part like this: ... if( existUser() ){ alert(' Email já cadastrado.'); } else // ok , envia formulario ! The Js function that checks whether the user…
-
0
votes0
answers1012
viewsSending Email Using Jquery Ajax without Refresh
I’m having problems trying to use this method of sending form by email, without refreshing the page. I don’t have much knowledge of Ajax yet, so I’m not sure if the code is correct, I even tried…
-
0
votes1
answer534
viewsI can’t "read" a JSON
I am working on the FLUIG (TOTVS) tool, and I want to read a JSON that is delivered via REST. Here is a photo of the URL (intranet): Contents:…
-
0
votes1
answer619
viewsDynamic Combobox Information Filter
I would like to know how to make a dynamic data filter, to appear only the data related to the selected, for example: I have in my bank the table Empregado and Empresa, as an example I have: Staff…
-
0
votes1
answer50
viewsAjax receiving array that shouldn’t
I’m putting together a popup registration form, so I had to use Ajax for authentication. It happens that when I type an already registered email it shows me the message correctly (already registered…
-
0
votes1
answer815
viewsLoad data from a method list to Servlet
Good afternoon people! I have this method in Servlet that returns a list of values. How do I load the values it has, with jquery?…
-
0
votes1
answer405
viewsDjango formset, calculate total with Jquery
I have my order items being displayed with formset, the quantity and price columns are editable. I’m having trouble calculating the total after changing the price or the quantity. I can identify the…
-
0
votes3
answers535
viewsTake element data attr Datatables/jQuery
I am developing a project in PHP, Mysql, jQuery and CSS, and I came across the following 'bug' (in quotes because it is not a bug in fact) using the plugin dataTables+bootstrap+ajax: First a table…
-
0
votes1
answer692
viewsGet print data json in real time
Hello friends good night ! I have this code working perfectly I just need it to print the variable type every 5 seconds told me I had to do this with ajax more I do not know how to do this ! json […
-
0
votes0
answers69
viewsHow to get product data with Javascript, ajax and PHP
Hello, I am unable to bring the product data to the <div id="services"></div>. I notice when I take that part of the code ?codsubcategoria='.$res2['nome'].' of <li…
-
0
votes2
answers299
viewsAJAX javascript, PHP post does not work
Good morning, I’m created a code Java to send data using AJAX to a PHP page,my problem is that the POST is going empty to page I’m calling. This only happens when I call the Javascript (AJAX)…
-
0
votes0
answers72
viewsautocomplete does not work after calling ajax
I have a zip code field with autocomplete that works perfectly when I type something. However this field is also filled after an ajax call that fills the zip code automatically, only when receiving…
-
0
votes2
answers3595
viewsSend value from a Javascript variable to PHP
I have searched a lot and done many tests but I’m not able to send the value of a Javascript variable to a PHP variable. My case is as follows: I have a real estate portal and I would like to take…
-
0
votes3
answers482
viewsDelete table>tr with Ajax and PHP
Fala galera, I have a question here.. I want to be able to delete a row from the table with Ajax just by clicking on a button without having to load the screen.. I already searched and tried to do…