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
-
2
votes2
answers209
viewsSlow problems with AJAX in ASP . NET MVC C#
I have a problem of slowness in my AJAX response. I use the following code to search and return a list of results: Javascript function enviaBusca(url) { var resultado = $('#resultados'), mensagem =…
-
2
votes1
answer24
viewsAjax problem when trying to use data in later functions
I’m trying to get the data from the functions BuscaCabeca and BuscaBraco, it is returning the data all right, but when I try to use the data created cabeca and braco is like Undefined, what I’m…
-
2
votes1
answer1690
viewsModal to inform users that the registration was carried out successfully
Well I wanted that when the user was going to register in the system and if everything worked out a modal appeared saying that: User successfully registered with if there is already a matricula or…
-
2
votes2
answers1446
viewsJSON PARSE returning 'Object Object'
I would like to know what is wrong with my job, because in allocating obj = data, the same sage object object, the date value is a JSON returned by the WEBSERVICE. Date value: [{"descricao":"Lorem…
-
2
votes2
answers497
viewsHow to assign target="_Blank" to all external links after ajax has finished loading?
Hello, I have a wordpress blog where I need all external links to be opened in a new tab when clicking. But these links are loaded by ajax and the function I have is executed before ajax finishes…
-
2
votes3
answers655
viewsMore than one Date Field in Ajax
Good morning. I have the following code: <form id="enviavenda" method="POST" action="" autocomplete="off"> <input class="input_codBarras" id="codBarras" name="codBarras" type="number" />…
-
2
votes1
answer125
viewsNull ajax values for controller
I’m getting values null on the subject by parameter no controller of asp.net core via ajax Follows the javascript with the ajax var ClienteFornecedor = { Id: "0", Tipo: $('#selTipoAdicionar').val(),…
-
2
votes0
answers244
viewsg-recaptcha-Response returns no value
The registration form sends the data by ajax, the captcha is completed correctly, and the token is given also as I could verify by the command. However when submitting the form I see that the value…
-
2
votes1
answer293
viewsCurrency Conversion Using jQuery API
I am making a conversion from Chinese Currency (Yuan) to Brazilian Currency (Real). I am using the website API: https://free.currencyconverterapi.com. Turns out I can’t set the value to be…
-
2
votes1
answer63
viewsContent that loads other pages without updating the masterpage
Hey, how you doing? I would like to make a side menu with the loading of a page next to it, only when selecting an item from the menu, I do not want it to be loaded 100% of the page but only that…
-
2
votes1
answer84
views -
2
votes0
answers78
viewsList files from a folder via ftp with jquery ajax
I need to list files from a folder that sits in one ftp server, how do I access this folder ? The user must select a list item (<select><option></option></select>) called…
-
2
votes1
answer24
viewsAngularjs download file from ASP.MVC5 passing parameters
Situation: I have an ASP MVC5 API that generates an excel.xlsx and returns it in a Filecontentresult. All in memory, because I can’t save the file to the server disk.It works ok if I access the url…
-
2
votes1
answer29727
viewsHow to insert line break in javascript
My code has a Textarea, in it I send some messages, but when I jump a line, when receiving this message the line break is ignored currently I use the following command in my javascript function to…
-
2
votes1
answer70
viewsMark Checklist container and run JS
I’m getting a lot of Javascript, I’ve tried several ways but I’m not getting it... I have a structure like this: I want that when the first checkbox is checked, it multiplies the first price with…
-
2
votes1
answer190
viewsAJAX json_encode PHP file
Good morning. I’m trying to build a form where the input is validated by a PHP file via an AJAX call, but I’m having problems with how I receive the "date" in callback. This is my call via AJAX:…
-
2
votes3
answers1077
viewsHow do I send my form along with another variable via AJAX POST to PHP?
Then, I have a form and send his data to a PHP file via AJAX. I’m doing this normally. Only now I had the need to send along with the form, plus a Javascript variable from AJAX to PHP. To use the…
-
2
votes0
answers328
viewsLogin with authentication token using jquery and ajax
I’m venturing to try to log in using token for authentication, using jquery and ajax. I have the user screen and password with the login button and another screen where there is a table with…
-
2
votes1
answer68
viewsLoop of multiple IDS in jQuery
I have that code HTML and PHP <?php foreach (array_chunk($unfollow, 3) as $row): ?> <div class="row mb-5"> <?php foreach ($row as $value): ?> <?php //var_dump($value) ?>…
-
2
votes1
answer146
viewsI want to pick up multiple checkbox with item ids for AJAX in select all
I have a checkbox to select everything. Underneath it I have two checkboxes. The select all I haven’t done yet but it’s not the problem, I need only that by clicking the button, send the post with…
-
2
votes1
answer67
viewsInterrupt setInterval for a function to run in its place?
I have a code that makes a query in the database (every 1 second) using the setInterval and updates a dashboard (Via AJAX and PHP) from my system, which shows the summary of all user tasks. (To give…
-
2
votes0
answers41
viewsWCF error time - Await Jquery Post
I have this method, which until then works well: $('#modelEditar').submit(function (e) { $.post($(this).attr('EnvioLote'), $(this).serialize(), function (json) { if (json.sucesso == false) {…
-
2
votes1
answer169
viewsHow to UPDATE with AJAX + PHP + PDO
I’m trying to do an Update with AJAX and PDO, but I’m not getting it. I’ve tried several ways and I can’t adjust the code. It is affecting only the last registered id. Can anyone help me please?…
-
2
votes2
answers74
views -
2
votes1
answer55
viewsImplement code ajax already ready
I’d like to instead send it to another pagin. Use ajax but I don’t know if it would be possible to just change some things in the code or if I would have to redo the code... ? <div class="modal…
-
2
votes1
answer700
viewsFill out form fields with php and ajax
Hello guys, are you all right? My first question put here in the stack, I always consult the forum to remedy some doubts and always find what I’m looking for. I know there are some topics with the…
-
2
votes2
answers154
viewsCheckbox with id in name
I would like to have a checkbox button on the site to enable and disable some action, I am using ajax to make the change immediately, the action would not need an F5 to work. The problem is that I…
-
2
votes1
answer315
viewsCNPJ Mask function for field with dynamic value
I’m having a question on the following occasion, I have a maskCNPJ function where the function obviously adds a mask on the supplier’s CNPJ number. The problem that is happening, comes from the fact…
-
2
votes1
answer273
viewsTrigger function only when form data is all filled
I created a radio form, which when filling the alternatives, when clicking on the Ubmit button, it sends the form data via AJAX to the PHP page applying the logic of how many questions were hit. The…
-
2
votes1
answer52
viewsImages duplicating at the time of transfer with Ajax jQuery!
Well, first of all, I’m sorry if I’m being an inconvenience to the question, it’s my first. I have a function in jQquery and Ajax that upload photos and have a PHP page to validate: This is the…
-
2
votes2
answers251
viewsHow do I do my table with infinite scroll?
I have the following situation: I want to get to the end of the table to make an Ajax request and return another 10 lines in my table. For example: <!DOCTYPE html> <html> <head>…
-
2
votes0
answers27
viewsHow to receive SESSION value in real time with AJAX?
Well, what I have achieved so far is to make the user click on any of the pagination buttons (1, 2, 3...) PHP save a SESSION with the corresponding page number. Follows the code: <!-- BOTÃO COM O…
-
2
votes1
answer290
viewsWhy does this function not return values
I am doing a more generic function to perform AJAX calls, in which I put the URL that should be searched and the data that it should send, and I wait as return the loaded data. However, I’m not…
-
2
votes1
answer47
viewsHow to use AJAX that takes the value of a field for a select and returns to a modal in a partial view?
My code here: View: <tbody> @for (int i = 0; i < Model.lNaoIncluidos.Count; i++){ <tr> <td style="text-align: center;"> <span data-toggle="tooltip" data-placement="top"…
-
2
votes1
answer35
viewsProblem to update database record with ajax
Good night, I’m trying to update the database via ajax, but it’s not working,I have two text area, and update it with update. Before trying without ajax, it was working perfectly, only now that you…
-
2
votes2
answers92
viewsAjax does not send data to php!
The code in Ajax works perfectly but the data is not sent to php! Where am I going wrong? AJAX.php <!DOCTYPE html> <html> <head> <title>AJAX</title> <script…
-
2
votes1
answer201
viewsPass parameter through AJAX
I am making a page where the user click the button will display some database information, only it is passing only a part, I do not have much experience with javascript, my code is <?php…
-
2
votes1
answer71
viewsAsynchronous request to return the updated table
I’m using an asynchronous request to return the updated table and replace the previous one, but I’m having trouble showing the data. Code with my table: <div id="spoiler" style="display:…
-
2
votes1
answer94
viewsDifficulty in the methodology of programming and migration from mysqli to PDO
Hello, everybody. I always programmed in the Back-End part (with PHP) using mysqli, but after reading some articles and comments, I came to the conclusion that I need to change my method of…
-
2
votes2
answers81
viewsProblems in the use of PDO
I used to use Mysqli, but now I started using PDO. I’m having a little trouble at the beginning. I made the code below, only when I use the parole and it enters the else, something is not returned…
-
2
votes0
answers127
viewsFetch request with ASP . Net Core 3.0
I am trying to replace the Ajax methods by Fetch in the application, but I cannot receive an object with Fetch, I made a small test object to try to receive, in Ajax, with you passing parameter…
-
2
votes2
answers84
viewsKeep in array the serialize
In the example below, I do the serialize and already step straight in 'date', in ajax: function filtrar() { $.ajax({ type: 'post', dataType: "text", data: $('#filtros').serialize(), url:…
-
2
votes1
answer66
viewsIgnore unfilled Mysql PHP fields
I need to bring information from a table that uses several fields. This information needs to be handled before entering an HTML Select. Every structure for this is already ready using AJAX but I’m…
-
2
votes2
answers107
viewsDuplicate Jquery event in ajax call
Good afternoon guys, I’m in the following situation: I have my page called Stock.html, it contains the Jqueries events belonging to it, for now everything normal, but on this page there is a button…
-
2
votes1
answer118
viewsCall ASYNC - AJAX
I have a problem with calls in AJAX, I need to make more than one call in AJAX to store in different variables and in that I can treat them. I’m just having trouble with AJAX’s ASYNC, because it’s…
-
2
votes1
answer19
viewsHelp with ajax connection
Hello! I am new in php and am starting with ajax, I would like a help because I am locked in this project. I am passing this connection ajax and using the data Return to send the object to my other…
-
2
votes1
answer350
viewsJQUERY/AJAX duplicate JSON results
Gentlemen, I am making a query in a URL that returns me the results of games, but this showing me the duplicate results, could give me a light of where I may be missing? Here where I consult: var…
-
2
votes1
answer32
viewsMVC switch from partial view with select control
I am making an application where the user chooses an option and a different form is shown for each of these options. My problem is that when I change the option, I cannot change to the corresponding…
-
2
votes3
answers77
viewsPass two variables together with the form through the ajax
I need to pass two more variables through ajax, I tried to do it this way: JS: var usuario_cod = document.getElementById("usuario_cod"); var line_cod = document.getElementById("line_cod"); ...…
-
2
votes1
answer83
viewsHow to send two forms in a request via Ajax
I have some fields on a page, which I can not put in a single form because of the distance between the codes, so I grouped in two languages that I need to send via Ajax. ex: <form id="form1">…