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
-
-1
votes1
answer69
viewsJquery does not work with <input> loaded with Ajax
The jQuery function works normally but when including the input ajax jQuery does not work for the input that was included! I have the function: $('.alerta').on('input', function() { alert('Olá…
-
-1
votes1
answer109
viewsHow to capture data to only feed a list with VTEX
I made this js code to take input data (THIS GETTING THIS PART OK) from the page and send it to VTEX (IS NOT SENDING). Must be some detail you forgot about. I’ve done several js to capture the data,…
-
-1
votes1
answer705
viewsReturn SQL array in a php variable, for later HTML assembly
I need to do a database search on a date variable and return only the Years. For this I did the following : In control: public static function getDataAnos() { $bd = new Banco(BANCO_HOST,…
-
-1
votes1
answer44
viewsHow to send a Javascript array to php and display them?
I can create my javascript array and store the values inside an array called ArmazenaIds ArmazenaIds = new Array(); $('.checkboxs').each(function () { var estadoDoCheck = $(this).prop('checked');…
-
-1
votes2
answers2780
viewsReturn PHP values via Ajax and display in HTML (separately)
Can you return values from a PHP page via Ajax and display them separately? Ex. I have a PHP page on which I have the return values: <?php echo $a; echo $b; echo $c; ?> Currently I can…
-
-1
votes1
answer94
viewsajax counter and save in bank
I have a list in a table and put a column to display the amount of clicks when clicked. But how could I trouble the value that comes from the bank and save. Would it be by ajax? If yes, how would…
-
-1
votes1
answer52
viewsHow to return balance automatically with AJAX without post
I am trying to make a function that returns the result of an expression. Example: I want to make the distribution of a value informed by the months of a year. Example: 120,000 = Jan/10,000…
-
-1
votes1
answer799
viewsReturn database data in <label> with Javascript
I need to return the database data inside the inputs when selected the "Edit" button without the page being reloaded, however, when clicking on "Edit", I see that the action of the button changes,…
-
-1
votes1
answer737
viewsAjax does not work on android
I’m making a request ajax that works perfectly on the Desktop, but when I test on android does not work, if anyone can help me jQuery(document).ready(function($){ $("#loginform").on('submit',…
-
-1
votes1
answer238
viewsProblem passing value to PHP variable with Ajax
I know it must be a frequent problem and all, but I looked in several places and could not fix my problem: In the project I am working on there is a javascript function in which a variable called…
-
-1
votes1
answer307
viewsAjax with Jquery does not work
I need to make the Ajax within the Jquery. The Jquery does the validation correctly, but when I click the button to send the form, it doesn’t work, hangs on the loader, where he would have to…
-
-1
votes1
answer86
viewsReturn a table between an initial and final date period, php + json
I’m trying to return a Dashboard table of reports between a specific date on, but when I click on search it just returns me Error: Syntaxerror: JSON.parse: Unexpected Character at line 1 column 1 of…
-
-1
votes2
answers191
viewsAjax requests with the Fetch API keeps repeating
I make an Ajax Request with the Fetch API: function PostData() { var A1_CGC; A1_CGC = sessionStorage.getItem('cpf'); console.log(A1_CGC) var inicio, fim, A1_CGC; inicio =…
-
-1
votes1
answer58
viewsHelp me to understand
Use this script to send information to the Jsonplaceholder api. I would like to understand why the following snippets: Why should I serialize before using stringify? var dados = $(this).serialize();…
-
-1
votes1
answer89
views -
-1
votes1
answer965
viewsSend form and post message of "success" on your own page, and after clicking on Submit appear another button
Hello I’m new in these code things and wanted to know how I make to appear the success message after I give Submit, I want those messages that appear the green field, like a div and edit with css.…
-
-1
votes5
answers1890
viewsReceive and read array coming by Ajax
I have a requisition ajax thus $.ajax({ type: "POST", data: "valor="+val, url: "ajax/mostra_imagens.php", success: function(e){ console.log(e); } }); On the page mostra_imagens.php he creates a…
-
-1
votes1
answer489
viewsUpload Ajax and PHP
I am trying to upload images via AJAX and PHP, but without success. Already reviewed, updated, anyway, the codes match all the other codes I researched, I really don’t understand. HTML: <form…
-
-1
votes1
answer93
viewsHow to insert data from a form made in Angular2 in a database?
I’m starting to learn Angular 2, and I have to do a CRUD of a system over series, and I need to store data in a database, currently I know how to use Mysql using Xampp. I need to make the request…
-
-1
votes1
answer54
viewsData is not being loaded in the Table
Good Afternoon, I wonder how I can get my list of records to be loaded into the table at the same time that the chart is loaded by AJAX, because currently in my model shows that there are records…
-
-1
votes1
answer252
viewsYou can use Ajax request in <meta http-equiv='refresh' content='0;'>
Friends can use a request on <meta http-equiv='refresh' content='0;'>. I have this code below working, if($buscasegura->execute() == ''); echo "<meta http-equiv='refresh' content='0;…
-
-1
votes2
answers216
viewsUse array type variable that returns the ajax function in PHP?
I have to pick up a variable type array of ajax and is returning correctly to the console.log(date); but I’m not sure how to use the return variable inside the index.php file. Index.php…
-
-1
votes2
answers68
viewsProblem deleting a record, fetching the next
I am trying to do in the code, a page edit, then the user on this page edit, he can delete the record, and if he delete, the system has to check, if there is a record next, it goes to edit screen…
-
-1
votes1
answer38
viewsConfirm before making the change
When I change the event on the calendar, before changing ask to confirm: the code: function edit(event){ start = event.start.format('YYYY-MM-DD HH:mm:ss'); if(event.end){ end =…
-
-1
votes1
answer71
viewsHow to Generate Summation in loop fields
As I have no knowledge of javascript need a help how I can do, this my script below perform the sum of the items of the fields "value" of each row in loop In the case the "Total" field would…
-
-1
votes1
answer63
viewsError Function to return Alert
I have a function that if she returns 1 appears a alert: form was successfully sent If you return 0, appears a alert: error sending your form. When I leave the form blank the expected behavior would…
-
-1
votes1
answer133
views -
-1
votes1
answer193
viewsSearch data with JSON
I need, through a <select> </select>, bring the data to some input[type='text']. I believe it is through JSON and AJAX, because the page can not have any "Submit". For example: I have a…
-
-1
votes1
answer113
viewsHow to re-order a Viewbag, inside the View?
I’m trying to get a Viewbag that received a list in the controller, be reordered after changing a combobox without the page being reloaded. Passing the List to Viewbag: public ActionResult…
-
-1
votes1
answer511
viewsRefresh page with button, but without blinking
I wanted to click the button atualizar the page updated automatically but without flashing, without refresh .transferencias { width: 59%; float: left; margin-left: 30px; margin-top: 25px; }…
-
-1
votes1
answer74
viewsI am doing an image insertion with jquery ajax and php but the move_uploaded_file is not working it does not send anything
HTML <form id="formImage" enctype="multipart/form-data"> <div class="corpo"> <div class="foto"> <h5 class="white-text title">Escolha sua foto de perfil</h5> <br>…
-
-1
votes1
answer46
viewsHow to let the loop separate on Row
Good night, basically I need to get one. json and loop it to pick up all the tables with the title name, but when doing so it returns me all together and can not set apart to put inside a table.…
-
-1
votes1
answer27
viewsI try to make a request ajax but it does not send any dice
$(document).ready(function() { var lerId = localStorage.getItem("id"); var dados = localStorage.getItem(lerId); var dadoss = dados.split(","); var titulo = dadoss[1]; var imagem = dadoss[2]; var…
-
-1
votes2
answers581
viewsReturn True or False $.ajax(). done
Hello, Using a change of venue ajax this way, I can return true or false. /** ## AJAX ## **/ function getAccountAjax(id, metodo) { let bool; $.ajax({ type: 'GET', async: false, contentType:…
-
-1
votes1
answer41
viewsAjax with PHP is not recognizing POST method index field
I’m making a system for restaurant orders, and I have a part to share commands. I have a javascript to create input commands I want to split, with maximum size of 3 command inputs <script…
-
-1
votes1
answer17
viewsHow to make Ajaxpost request after Ajaxget completed
The problem is that when I call the post it does not return either in Success, error or complete. Some sicrona definition is missing? this.funcget = function () { var paciente;…
-
-1
votes1
answer140
viewsAjax error when placing on server
Good afternoon guys, I’m having a hard time, when I’m using my code in my local bank, it works normally... When I play on the server, it gives the following error: Datatables Warning: table…
-
-1
votes2
answers236
viewsHandle data received by AJAX
Good afternoon, I am sending a value via AJAX/Jquery that triggers me the controller notifications index function. When I receive a certain value, I want the function to direct me to another page.…
-
-1
votes1
answer23
viewsI have a bug in my Symphony Controller Replay
My goal is this, in my Form there is an attempt to send in one of the fields that was empty, something like this. V Example -> https://i.stack.Imgur.com/Hiof9.gif exepction -…
-
-1
votes1
answer66
viewsDynamic checkbox with Ajax and PHP
I am generating a product div with php, in this list I would like to add a check-box with boolean value 0-1 for active and disabling. When the manager clicks disabled the product does not appear to…
-
-1
votes1
answer267
viewsUse Ajax Json return in HTML
Hi... I have the following codes HTML <div class="escolha"> <h5>ESCOLHA A CIDADE</h5> <select id="selectMunic" onchange="getMunic(this);"> </select> <div…
-
-1
votes2
answers192
viewsChange HTML during AJAX request
Hello, I am trying to change a text on my web page to follow in real time some insertion in the database, I am using synchronous AJAX to make the requests, but HTML does not change. Javascript:…
-
-1
votes1
answer809
viewsError making request in Ajax
I am sending a request by ajax to my REST server and am getting back: Access to Xmlhttprequest at 'http://localhost:8081/datasnap/Rest/Tcadastros/Group/' from origin 'null' has been blocked by CORS…
-
-1
votes1
answer266
viewscall authenticated Laravel api
Good morning, all right? I am reading an api (which can only be accessed with user authentication) done in the Standard. To consume this data, I am using jquery/ajax. I know I need to send a token…
-
-1
votes1
answer153
viewsI’m using JSON database and I have a question?
I have a JSON database of users, for example, if I update my username via AJAX POST, click update and call AJAX exchange the value based on my ID with PHP, all right. Ai enters the doubt in PHP…
-
-1
votes1
answer87
viewsjQuery-Ajax query with PHP
I made a code with jQuery-Ajax. In order to consult the bank without much complication or objections, just SELECT * FROM produto. The result was right from the moment I tried to make a filter query…
-
-1
votes1
answer59
viewsController in Laravel is not receiving values sent by Ajax
I’m doing a Wizard where I add one product at a time by clicking on a button and Jquery adds the values in an array, and when I click on the next button I make an ajax request sending the values of…
-
-1
votes1
answer32
viewsHow to consume the images link through Ajax?
I am trying for several hours to consume the links of the images of a web service through Ajax and I can’t, this is the web service link (https://api.tenor.com/v1/search?q=happy). The goal is to…
-
-1
votes1
answer105
viewsHow to change an attribute of a select without option value?
I have a select rendered in view with recovered data in a database. In the table in question estado, have the attributes id, siglaEstado and descricaoEstado. In case I’m using the id in the value of…
-
-1
votes1
answer333
viewsHTTP GET - Jquery - Node.js request
First of all, I wanted to say that I’m developer . net, so I’m kind of lost in what I’m doing. If I understood correctly, I downloaded Node.js and inside the Node.js prompt I gave a CD in the folder…