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
answer478
viewsPassing variables from AJAX to ASP
I have a contact form that uses an AJAX function to validate and return a success PARAMETER that allows me to send the message WITHOUT the visitor leaving the contact page. Normally, I use these…
-
0
votes1
answer1004
viewsRedirect Com Jquery
I’m making a system that makes a requisition ajax with Xios. So far td well, I was able to make the request GET and list all items on the screen in a table. In this table there is a button View…
-
0
votes1
answer97
viewsInclude registration and return disabled button without refresh
I made a button adicionar amigo, as in social networks, except that I use form to do this, it sends the user to another page. Wanted some dynamic way without updating the page, when clicking the…
-
0
votes0
answers42
viewsset value by function Success ajax jquery
In the Success function I am not able to set a value of a div with the content of the date variable $(document).on("click", ".js-busca-previsao-chegada", function(event) { event.preventDefault();…
-
0
votes1
answer916
viewsAjax Request Issue - Maximum call stack size exceeded
Good afternoon, I have this simple code below using js but it returns me the error that is in the print below: I am using Codeigniter 3.0.10, Ajaxm jQuery 3.0.0 Minifed and Bootstrap 4 **Code:*…
-
0
votes1
answer80
viewsDatatables Jquery
I can list the data, but I can’t filter the data, my query is right, returns the json, but I get a processing message. I’m using the slim for the routes. my call: <script>…
-
0
votes1
answer105
viewsAutocomplete not working - Asp . net MVC
Good morning guys, I’m having trouble implementing a field with autocomplete in an Asp . Net MVC application. The problem is this, using an Ajax I can go to my controller and search for results of…
-
0
votes1
answer72
viewsFloat field conversion problems
I have a problem that at first, is silly, but I am not able to solve, I have this function in ajax, that takes the values of input, and sends it to the controler: var url =…
-
0
votes2
answers150
viewsFunction in jQuery Ajax does not return Value
I am making a conversion from Brazilian Currency (Real) to Chinese Currency (Yuan). I am using the website API: https://free.currencyconverterapi.com . When debugging in the browser, I can see that…
-
0
votes1
answer119
viewsSweetalert with load - check if it was executed (php - jquery - ajax - sweetalert)
I want that after loading the PHP file reportas_excel.php close the swal, until this part is working. The Problem is that when you finish loading it does not generate the file…
-
0
votes1
answer454
viewsLaravel keeps missing the session
Hello I have a system developed in Laravel 5.6 that keeps missing the session When I log in: private $prefix = ''; public function __construct(){ $this->prefix = env('APP_NAME')."_"; }…
-
0
votes1
answer40
viewsAjax is not returning json in the html table
I’m trying to make a table where its contents come from an http. I am using Ajax and Json to pull the content but does not return anything on the screen other than what is written in HTML. I’m still…
-
0
votes1
answer112
viewsHow to pass array values via AJAX, via POST?
Good people! I am creating a function to enter the data of a form in the BD (AJAX - POST): function inserir_registo() { //dados a enviar, vai buscar os valores dos campos que queremos enviar para a…
-
0
votes1
answer84
viewsInput Hidden receive $.ajax array
I have a $.ajax who receives from PHP json_encode( array ($html, $relatoriosGr) ); That one Return of $.ajax, will popular a input Hidden with the index 1 of result: success: function (result) {…
-
0
votes1
answer951
viewsHow does csrf-Protection work in Codeigniter?
Today while working on a codeigniter project, I came across the concept CSRF - Cross-site request forgery. This happened when I got error 403 - permission denided when making a GET request in AJAX…
-
0
votes2
answers102
viewsAutocomplete form and check in JSON if it exists
I am trying to make a form that works as follows, the user must put his CPF and the full name will auto-complete, and the form can only be sent if everything is ok in JSON. Follows layout the model:…
-
0
votes1
answer98
viewsDeliver PHP array from ajax to HTML field
Well, I’m wearing it $.ajax to recover a json_encode() in an archive PHP. In that file is populous one form: $html .= " <input type='hidden' id='dados' value='" . $relatoriosGr . "' />…
-
0
votes1
answer118
viewsCalling a PHP function with the Xmlhttprequest object( )
I have this script. function execultaAjax() { var fld_busca = document.getElementById("id_busca").value; var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState…
-
0
votes2
answers63
viewsHow to add new table row with contents from text box with post ajax
I have a table created using html and javascript, the contents of it I used ajax’s GET method to pull a url, in JSON. I’m trying now using POST in ajax to add content to this table, where I write in…
-
0
votes1
answer31
viewsProblems with AJAX return
<script type="text/javascript"> $(document).ready(function(){ $('#btn_busca_f').click(function () { var data_ini = $('#data_ini').val(); var data_fim = $('#data_fim').val(); var cod_recurso =…
-
0
votes1
answer375
viewsMount HTML table using JSON AJAX
I have a registration page and just below the form I have a table that shows the registered records. This HTML table is mounted with the data registered using JSON via jQuery. Even at this point it…
-
0
votes1
answer28
viewsProblems when performing a MODEL POST with AJAX on ASP.NET CORE MVC
I’m having trouble doing a post of a complex template using AJAX on Asp.net. Modelhave some properties that represent other Models, but at the moment, I just need to initialize them with NULL. I…
-
0
votes1
answer53
viewsVerifies Registered User
I’m using this topic as an example of implementation. /a/76694 It works, gives me the message that there is already a registered email, BUT if I click register it registers anyway, ignoring the…
-
0
votes2
answers26
viewsProblem to record radiobutton in db with Jquery
I have a form where the data placed on it is recorded in the db by a jQuery, but we radiobutton cannot save the item I select. Below a part of my form. On the radiobutton Sexo_Segurado that I have…
-
0
votes1
answer159
viewsUpload several input files via Ajax
Hello I need to upload files via ajax, where each event of clicking the input file, I already upload the corresponding file. I do not know how to do this dynastically, since what changes between a…
-
0
votes0
answers520
viewsChange an option of a select according to the choice of another select (HTML form)
Hey, here’s the thing. I have an area of a form in which I select the code of the company, company and also show the taxation of that company. I will show the image of the fields: (my problem is in…
-
0
votes1
answer48
viewsState/City Combos: AJAX does not return cities
Good evening, everyone! I’m learning jQuery/Ajax and I’m trying to do the famous title combo, but the city combo is blank. I was able to test even the part that arrives in AJAX and, apparently, the…
-
0
votes1
answer1282
viewsTake the data attribute value of an input file field
I am in need of help with the following situation I have several input files fields with the same name and which are used to do various file uploads. <form> <label> Foto…
-
0
votes1
answer193
viewsDatepicker does not open when loading Ajax into a Bootstrap 4 modal
I need to open a calendar in an input that is in the file uploaded by Ajax. How can I call the plugin Datepicker when a Ajax in a modal Bootstrap? I have these codes: <!-- Modal --> <div…
-
0
votes2
answers295
viewsReturn value per json and return to a function
I have the following function: function novasMensagens(Alerta) { var retorno = Alerta > 0 ? Alerta : ""; return retorno; } document.getElementById("msgNumero").innerHTML = novasMensagens(); Now I…
-
0
votes1
answer44
viewsEnter a screen with the dropdown option already selected
I got this dropdown <div class="form-group"> @Html.Label("Grupo de Desconto", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10">…
-
0
votes2
answers144
viewsClear html content with jquery not working
I have this jquery <script type="text/javascript"> $(document).ready(function () { $("#GrupoDescontos").change(function () { $.ajax ({ url: '' + $(this).val(), type: 'GET', success: function…
-
0
votes1
answer224
viewsHow to fill php variable via jquery/ajax?
I am developing a system of messages in php + mysql and in the "inbox" I am displaying the messages in table formatted, using the plugin datatables. I happen to want to open the message in a modal…
-
0
votes2
answers29
viewsPassing POST Asynchronous, array returns 0
I’m trying to pass the data from one Form to another page: My Option is doing a query in Mysql to return the values within the option options. <form method="POST" action=""> <div…
-
0
votes0
answers66
viewsHow to create page by arrow?
I’m trying to page by arrow, using ajax, but I’m not getting it... Normal page I got (which is showing the numbers) but with arrow, I’m not getting. jQuery: var paginacao = { iniciar:…
-
0
votes1
answer134
viewsButton click event is only held once in jQuery
So I have a button that is generated dynamically via AJAX. I made an event in jQuery that when clicking the button, it runs one of the conditions that are inside the event (in IF and Else If).…
-
0
votes0
answers34
viewsHow to change the text of the button with Ajax?
This is a Javaweb project, but I’m already getting the value from the button when you click on it. Every time I click the eclipse IDE button I was able to print the value of the button, if I click…
-
0
votes1
answer56
viewsLoss of information when ordering a datatable inside a Modal with AJAX
Good Afternoon. I have an action list that opens a modal and displays a series of pagination information within a datatable, and I want to give the user the option to sort this information, but when…
-
0
votes0
answers58
viewsInput Images with Dropzone in AJAX request
I have a problem with my code referring to trying to perform an image input via AJAX. The PHP script is ok, because the same code is used in other operations, but I believe there is something wrong…
-
0
votes0
answers183
viewsC# MVC 5 - Ajax - Run Two Actions
Good morning. I would like to run two Action, one that displays the result on the screen and the other that generates an excel file. The View that displays the results at its top has the search…
-
0
votes1
answer141
viewsQuestions about dynamic system update of Dashboard
I am creating a task management system and I have a Dashboard that displays the activity updates. The problem is that I can only update this Dashboard when I refresh the page because I am displaying…
-
0
votes3
answers6902
viewsAjax request with Error Failed to load Resource: the server responded with a status of 500 (Internal Server Error)
Everybody, good afternoon, everybody ! I’m setting up a local manager, and I’m having trouble searching the required fields, is returning Failed to load Resource: the server responded with a status…
-
0
votes0
answers239
viewsUpdate with Ajax + Pdo
I performed the UPDATE with AJAX + Pdo, however, it is affecting only one line, the others are not affected. I’ve tried a lot of things, but I can’t seem to figure it out, if anyone can help me.…
-
0
votes1
answer102
viewsset select option to Selected with value coming from a JSON
Good afternoon friends! I have a modal with a city edit form that carries data coming from a JSON. Everything works. The problem now is that mine does not select the correct state. My JSON returns…
-
0
votes1
answer394
viewsPopulate input’s with Ajax database data
I need you to fill out the input CPF/CNPJ Bring me the customer’s zip code and city that is automatically registered in the bank after losing the focus of the CPF/CNPJ input. The consultation at the…
-
0
votes0
answers50
viewsSlotmachine Jquery Dynamic
I have the following Slotmachine: Use the API <div> <div id="casino1" class="slotMachine" style="margin-left: -65px;"> <div class="slot slot1"></div> <div class="slot…
-
0
votes2
answers268
viewsReturn data via Ajax
Good morning everyone... I need a help... I need to return success or error values via ajax. But it is not returning anything. Follow the codes: HTML <div class="form-group col-md-4…
-
0
votes0
answers26
viewsSend an input value via ajax
Hello folks I have an input with the following function <input id="cpf"onblur="buscacpf()"> below is the function . <script> function buscacpf() { var x =…
-
0
votes1
answer1001
viewsUncaught Referenceerror problem: answer is not defined
To with a problem, in sending data using ajax, my function always returns that same error: Uncaught Referenceerror: reply is not defined; Function that passes the data:: function…
-
0
votes1
answer143
viewsHow to handle the return of files (PDF) in an AJAX call?
I made a code that selects the documents that are in a bank FTP and by clicking download it runs a AJAX call to the DJANGO where I call the FTP again, download the file and send back to the AJAX.…