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
votes2
answers166
viewsform-check-input (check if no option has been selected)
reference link: http://www.dapweb.org/dapdaniel/rosiane/temporada.php I have a form with some options arranged in check boxes, to change them according to the click I am using AJAX, the following…
-
0
votes0
answers54
viewsAjax - after calling him my functions are not working
Hi guys this is my first question so come on. I am developing a page for android where it counts with only js, html and jquery, I made a back that searches for information in the database from a way…
-
0
votes2
answers134
viewsI cannot send JSON array to PHP page
Good night, I am trying to send a simple code array (2,5,7,etc) in Json format to a php page through an Ajax request but I cannot. My JS: <script type="text/javascript"> function enviArray() {…
-
0
votes2
answers112
viewsChange value according to the input typed using Ajax without clicking a button
I need the ajax to take the amount typed in input and show this value in a div without clicking a button, I’m using Ajax for this, but it’s not working. What I could do to solve? Meu Ajax…
-
0
votes1
answer82
viewsReturning BD data with PHP and AJAX
I’m a beginner with PHP and I’m having a problem returning data from BD to present it in the Front-End with AJAX and JS. I don’t think I know how to handle the data, because until the browser…
-
0
votes0
answers100
viewsHow to create a Download while the page is not all processed after the return of AJAX?
Hello. I have a code that queries the database (when loading the page) to fill a table (This is done via AJAX). I created a div that contains a gif from a Download and it displays as AJAX fills the…
-
0
votes1
answer629
viewsLimit JSON requests made in an API
I am creating a mini API to make queries on json using ajax, and I’m facing some security issues. The API is already ready and is returning the data correctly. The problem is in the file that makes…
-
0
votes1
answer59
viewsError in autocomplete search field - PHP / AJAX
Good afternoon guys, today I managed to make a progress in my code and I got to the point where I must be missing something stupid but I can’t find it. I am making an input field with search and…
-
0
votes1
answer73
viewsLoad Json data via Ajax
Guys, how do I load the json data into a table in html? The table is mounted, the script I’m pretty sure is right, to print the data in the table, but I think there’s something missing, sap, maybe a…
-
0
votes1
answer29
viewsHow to fill a Dropdownlist from another Dropdownlist
I need to know how to popular a Dropdownlist from another Dropdownlist. Example: I have a Dropdownlist called Team that takes information from my DB. When I select for example "Equipe1" I need that…
-
0
votes0
answers44
viewsError 500 (Internal Server Error) Get
ERROR GET http://localhost:54446/Tasks/Listrintegrants? team=1 500 (Internal Server Error) HTML @using (Html.BeginForm()) { <div class="form-horizontal"> <h4>TarefaViewModel</h4>…
-
0
votes1
answer49
viewsStart the site with the hidden filter
I made a button that hides and shows my select and I wanted to make that if I login to the mobile site started with the hidden selects and only after clicking and that showed them. HTML: <button…
-
0
votes1
answer264
viewsRun PHP function after reCAPTCHA validation
I am working on a script that queries an external API that returns the data in json, I am making the consultation using ajax, but I’m facing some security issues. The query works perfectly, I just…
-
0
votes1
answer60
viewsAJAX does not respect foreach
I have a bank with two columns, namely: Activity and status. I have a table on my page with all Activities, and I want to know the status of each of them. I selected all tr’s and use an ajax inside…
-
0
votes1
answer34
viewsPerform query after registration with Ajax/PHP
help! I’m making a registration with AJAX and PHP, Registration is OK, however, I need to run a search soon after the Registration is completed, the structure is MVC: VIEW -register.php CONTROLLER -…
-
0
votes1
answer33
viewsError in automatic filling
alterar.php <script type='text/javascript'> $(document).ready(function(){ $("input[name='id']").blur(function(){ var $serialnum = $("input[name='serialnum']"); var $validadedata =…
-
0
votes1
answer249
viewsProblem with AJAX, PHP, Mysql select dependents
Good afternoon! I am facing a problem in linking 2 select. I’ve followed a lot of tutorials, but none solved. <?php include ('conection.php'); ?> <script…
-
0
votes0
answers879
viewsHow to update table automatically with Jquery/Ajax/PHP
I would like to know how to automatically update the table with the Jquery load because I tried to put it in the main file and keep breaking the table, so I increased the setInterval time but still…
-
0
votes3
answers149
viewsSet the value of a TD using a JS function
I have the following function, which returns an entire value of an AJAX query to my SQL Server database. function qtdItensUltimaCompra(){ var url = 'AjaxQtdProdutoInsumo.jsp'; var temp =…
-
0
votes1
answer85
viewsHow to save and retrieve multiple returns from an AJAX request in a loop?
Gentlemen, good night, sir. I am trying to accomplish the following task, I am sending via AJAX to another page 3 cep’s, when I get there I give only an echo of the sent cep to know that arrived,…
-
0
votes2
answers187
viewsMake the result of a table appear in AJAX
I am making a div with form to be hidden, and using AJAX for when it is clicked on the search button div is visible, and brings the result of the database in PHP. Only that I just can’t put my chunk…
-
0
votes2
answers976
viewsHow to get javascript/jquery ajax array values
I am making an ajax request and returning the data by php with json_encode server side: $id=1; if(isset($_POST['id'])){ $id = $_POST['id']; }else{ http_response_code(400); } $produto =…
-
0
votes1
answer821
viewsGet input value for AJAX
I found a code that sends an information via AJAX, but I need that, in addition to sending this information, it also send the value from another camp(input). I need to read the value of input name…
-
0
votes1
answer195
viewsCapture the Hidden input values that suffered the event in the "change" select with jQuery serialize()
My AJAX is not sending form variables. What I could do to get the values of the fields <input type="hidden"> with the AJAX in the change event jQuery? I’m doing like this: HTML form <form…
-
0
votes0
answers265
viewsProblem with UTF-8 when receiving Ajax data
Good morning, I checked other reports of the same problem, but I could not use any of the answers given in them... I tried some but it doesn’t solve. I am using datatables to show/insert/edit data…
-
0
votes0
answers36
viewsjQuery cannot find elements added via append
I have the following request that lists the students in a table: jQuery('#presencaExibir').click(function(e){ e.preventDefault(); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN':…
-
0
votes1
answer51
viewsPass parameter with AJAX to PHP when opening a modal
I need to pass the id value of each link to a modal. You are returning this error in the console: What I need to resolve? custom.js:5 Uncaught TypeError: $.ajax is not a function at…
-
0
votes2
answers371
viewsform Ubmit only with Enter key without button does not work
Good night, I have a little chat, in html, php and jquery, I just need to send the message form without button, but it’s just not working, someone could help me is so the code: <form…
-
0
votes3
answers597
viewsSumming up JSON values
I’m starting to mess with JSON and Javascript and have the following AJAX: $.ajax({ url: 'https://...', type: 'POST', dataType: 'json', data: 'inpnomeRequisitante=' + 'XXXXXXXXXX', success: function…
-
0
votes1
answer35
viewsPass parameters outside jQuery.Ajax
Good evening, I wonder if there is a possibility to determine the parameters outside the + function - in this way? Like, I’m saying that in var sintax the parameters of the function ajax before…
-
0
votes0
answers369
viewsCall link using Ajax
Hello, I have this code here: If I click on the number is called the href but opens the link on the same page because it has the target="_self". What I wanted was to click the number to call the…
-
0
votes1
answer68
viewsFunction is only called on the first click of the button
I have a code in which I show the count of new messages that the user has in a chat (This count is in the database). This chat room is like a chat room. So I made an event that when the user clicks…
-
0
votes3
answers303
viewsHow do I make the Alert() method in JS appear only 1 time when the user logs into the application?
The idea is this, when the user enters the application will appear to him the messages registered in the bank, but I want to appear only 1 time for him. And when he clicks to close the Alert() text…
-
0
votes2
answers49
views"Filter" is not closed
Hello, I have a simple script that from some searches on stackoverflow I built. After I started to put some more content the scripts started to stop working and to present some errors, I already…
-
0
votes1
answer32
viewsASP.NET read data from a POST ajax
Below is my "form" I want to send to the server in an ajax post $('#ajaxButton').on('click', function () { const ajaxFormData = { nome: $('#nome').val(), zap: $('#whatsapp').val(), email:…
-
0
votes0
answers23
viewsScript re-execution problem in jQuery after the same event is run
I am developing a web system in ASP.NET MVC and I have some registered companies, I created a button on this grid that leaves the company active and inactive in the system and I am creating a jQuery…
-
0
votes0
answers148
viewsInput does not appear echo
When I echo an input value of this serviceOrderForm.php file loaded via ajax, the correct content appears in the Browse code, but nothing printed in the input (in any input with echo). Has anyone…
-
0
votes0
answers52
viewsCall jQuery function when rendering component via ajax
I have a little problem that is: I have a component RichFaces more specifically the rich:listShuttle id "migrarId". Inside that component I have a input who owns a placeholder that is generated via…
-
0
votes0
answers78
viewsJquery does not serialize radios input value
Ola, I have a form that is sent via Ajax, I had to add some radio inputs. However the method serialize() does not take the values of the radios (I have two groups of radios in this form), all the…
-
0
votes0
answers35
viewsHow to validate data using beforeSend with Ajax
I’m developing a messaging system with initial and final date of each message, so before sending the data via Ajax, I want to validate some fields. I did a good part, the only problem is that when I…
-
0
votes2
answers110
viewsError calling Java Script in HTML
Ol, I’m doing a content load other pages without updating the masterpage with AJAX as follows: Line that I click <li id="pag1">Pag1</li> Script $("#pag1").click(function(){ $.ajax({ type…
-
0
votes0
answers61
viewsUse of the Xmlhttprequest object to perform an asynchronous HTTP request to update data on the server without a complete web page update
I have basic knowledge and am using in the application: html/css, javascript, Nodejs, and for the database - Mongodb - Mongoose. My application is very simple, as you can see in the image below,…
-
0
votes1
answer98
viewsGet element value after AJAX content is loaded
Well, I’m having some doubts regarding the use of Ajax. I’m trying to get a value of a certain element <tr>. For that I put an attribute data- in <tr> which is dynamically generated by…
-
0
votes1
answer77
viewsDatatables - Table Plugin for Jquery - Error searching string
Good morning I’m using Datatables - Table plugin for Jquery, is a code of the old developer where correctly loads the database data however, it has a field "Search:" at the top where type something…
-
0
votes1
answer193
viewsAJAX. How to pick up with PHP the data sent by "username" and "password" when set in ajax?
I know you have other ways to send and get Ajax-PHP data, but giving a read in the documentation of jQuery-Ajax I saw that you have the option of username and password, where I understood gives a…
-
0
votes0
answers73
viewsCorrect Variable Statement in Document.getElementById() to @foreach
Hello, I need to call a script inside a page triggered by a button using ajax method. My script in Javascript: <script type="text/javascript"> function attachProjetoFuncionario() { var…
-
0
votes1
answer537
viewsSuccess: Function AJAX does not work
I have this function in JQUERY and AJAX, it executes what I want, however, do not enter in sucess to display the successful msg and reset the form, it is sending the image to the server and the form…
-
0
votes0
answers42
viewsproblem with setinterval
I’m having a problem in a chat I’m developing, it works so on the right I have a contact list for me to start chat and that list is within a function carregarContatos() that is inside setInterval().…
-
0
votes2
answers657
viewsRedirect page by passing header Authorization
I have a login application where the user type the username and password, then I make a POST request with ajax according to the code below: <script >…
-
0
votes1
answer40
viewsRadio Button from Ajax does not work
Hello I have a radio button q comes from ajax for calculation of front not it not worked to take the . attr({disabled: true}) from a button. If I put it right on the page it works, but when it loads…