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
votes0
answers70
viewsHow do I update the HTML table after registering the data
This code already registers in AJAX and filters the data from the HTML table, check out the code. HTML This is a part of the HTML code, where I show the table data <html> <head> <?php…
-
1
votes0
answers28
viewsWhat is the performance curve of the file that will consume an Xmlhttprequest via GET according to the date volume sent?
I wonder if there is a date volume with better performance in a Xmlhttprequest request via GET or if the performance is always directly proportional to the date amount var request = new…
-
1
votes1
answer55
viewsPost with jquery
My python endpoint is working perfectly, I’ve done tests using Postman. The problem is when Javascript will call the method Follow my Javascript code: $("#Submit").click(function() { var info =…
-
1
votes1
answer488
viewsAJAX in the Laravel
I am trying to send data to my controller using AJAX but am getting the following error: AJAX error: error : Not Found What can I be doing to solve this problem? follows the codes: route:…
-
1
votes2
answers603
viewsHow to update a row in the table with ajax?
The idea is to click the valid or invalid button and update that line in the table, changing the class of the button to the respective situation class: valido or class: invalido with ajax. My…
-
1
votes0
answers56
viewsHow to prevent repeated values?
Hello, I am new still in development and I need to validate input fields, more precisely prevent the inputs of the same column within a table have repeated values. Html example <!DOCTYPE html>…
-
1
votes0
answers156
viewsAjax request, retouching array
I’m having trouble getting the array I’m sending via Ajax, I know it’s sending all the indexes, but I’m having doubts about how I’ll receive and treat reading this array in the "gravar_btn.php"…
-
1
votes2
answers347
viewsUse Axios to generate an unordered list using the Github API
I have a code that should receive the client’s Github username and generate a list with the name of its repositories. The list is generated, but always returns undefined. The result would be…
-
1
votes0
answers38
viewsReturn a JSON table using Element creation (I cannot use Jquery)
Instead of returning the table in html, return in JSON and mount the table using the element creation (Document.createelement) and insertion and removal features of the DOM tree. I need a help with…
-
1
votes1
answer177
viewsHow to get the database id of each TD from the html table
Goodnight I have a button that holds the bank id of each <td> in a row, I send this id to open a file in another tab, and now I’ve added a second function on this button to get the id in the…
-
1
votes1
answer72
viewsupdate does not work after ajax request
good personal evening I am creating a system and in it I make a dynamic request with ajax to fetch names of customers I have a link that opens a modal with the information to give update ,as when I…
-
1
votes0
answers28
viewsError in Sending Ajax form
Hello, I need a help, when I try to send it displays the message successfully and dps displays the error message when sending, when I enter the dev mode of the browser and see the contact.blade.php…
-
1
votes1
answer62
viewsError calling ajax function
I have gotten an error calling an ajax function contained in a file. js separate from my .html. file The same does not occur when I insert this javascript function into my html file. The function is…
-
1
votes0
answers38
viewsuse ajax or leave form hidden?
Good morning! I am preparing a form, and this form contains a select field. Depending on the select field that the person chooses, new fields must be shown, exclusive to each option. The question…
-
1
votes1
answer92
viewsProperty coming as Undefined?
When I try to access the full_name property of the user object with useState, the application says that the property is Undefined. Here is the code: import React, { useState, useEffect } from…
-
1
votes1
answer1928
viewsJavascript - Uncaught Referenceerror: {funcao} is not defined
Hello, my friends! Good evening! I am a beginner in Javascript and I am faced with the following situation: I have a script called js widget. on my home page and this script performs a request in…
-
1
votes1
answer110
viewsHow is the $Columns table structure that is referenced by the Ajax script organized when using the Datatables plugin on the server side?
I am using the Datatables plugin in PHP to list data from a database. Basically using the serverside option (https://datatables.net/examples/data_sources/server_side.html) , Voce should call a…
-
1
votes1
answer194
viewsReturn some query columns using LINQ
I have a query that returns me all the columns and I’m using only two columns (id and nome) in my select2, I thought to bring only these columns, I wonder if it is possible to bring in the query…
-
1
votes2
answers2367
viewsHow to send a JSON object in a POST request with ajax?
I need to send a json object with ajax to an external API but cannot include variables instead of static values var numSGPE = document.getElementById('numSGPE').value var setor =…
-
1
votes1
answer67
viewsSelectpicker: show already marked options when page is loaded - AJAX JSON
I’m using the Bootstrap-Select (selectpicker) and I would like to know how to make the options inside this selectpicker already marked when the page is loaded and the same is clicked. In case I’m…
-
1
votes2
answers58
viewsProblem using counter variable within Xmlhttp/AJAX request
When I run the following function I always get 0 as a result. I’d like to know why and if I’m doing something wrong. The function cadastro_socios_xlsx receives an object and registers each instance…
-
1
votes1
answer312
viewsError sending a POST request via ajax
Good morning, I am trying to send a POST request to a URL but am having the following error: Syntaxerror: Unexpected end of JSON input JSON is correct in formatting because I have validated it. The…
-
1
votes2
answers269
viewsHow to call and get via GET an external HTML page using Axios?
I am trying to get any external html page via an Axios.get(), passing the url of the page in question as parameter: axios.get("http://www.google.com") .then(resp => { retorno = resp.body }) Only…
-
1
votes2
answers50
viewsSend selected value in select to mvc controller
The code: $(function () { $('#IdiomaOrigem').change(function () { var data = $("#IdiomaOrigem").val(); var destino = $("#IdiomaDestino").val(); $.ajax({ url:…
-
1
votes0
answers32
viewsAjax return error when sending Formdata with file to MVC Controller
I have a problem that started to occur for a while. I have a view that sends a FormData with attachment information (input type file) to a MVC controller via an Ajax. The controller returns a Json…
-
1
votes2
answers216
viewsExpress - req.body does not find the data sent by the customer
I have a small form with login and password whose data I need to be sent to a route X via POST. For this, I used AJAX and to make sure that the data was being sent, I used the Success function to…
-
1
votes1
answer471
viewsUpdate data in Real-time without refresh in Blade - Laravel
I would like to know how and what is the best way to update data in real time on a screen using Laravel. The situation is as follows: I will have a (edit) screen, which displays the items already…
-
1
votes1
answer46
viewsError returning values using $.getJSON
I’m trying to make a page about data from covid-19! I’m trying to get the total number of dead from two different days using the following code: var ontem =…
-
1
votes1
answer59
viewsRefresh page when an XML refreshes (Shout cast)
Friends, greetings to all... I have a question, I have been researching and I do not know if it is possible, because I think that when we look for something too much it is not possible or I am not…
-
1
votes0
answers21
viewsif Else problem in javascript inside ajax
and a selection control for the checkbox so if it’s just a normal works but if you have type 2 option... one to choose 3 flavors and another to choose 2 flavors if I select first the 3 will normal…
-
1
votes0
answers95
viewsRead XML with Ajax, Javascript, DOM
As it is possible to read this XML using Ajax, I tried several ways, but so far unfortunately I could not succeed, the goal is to take the number of inum (810265006252830) that will be using in…
-
1
votes0
answers21
viewsUpload files using ASP.NET MVC, AJAX and jQuery
I have the following problem when uploading file to ASP.NET MVC with AJAX and jQuery it enters the if that checks if Listings files != null and arrives in Console.Writeline(source.Filename); to…
-
1
votes0
answers57
viewsWhen the Checkbox with javascript is not working
Next. I have an input select with States (Rj, SP, MS), When I select it, it does a search via ajax ($.post) and brings me as a response, in JSON, the data of the cities (code, name, Uf, status) in a…
-
1
votes1
answer650
viewsRun python script by clicking html button
I need to feed a page html that will load and display the content dynamically with ajax/fetch. The problem is that I need to take this data from other websites that also upload this content through…
-
1
votes1
answer102
viewsFill Select based on the value of another previous Select
Hello, I would like to enter information that is in a database based on the value that the select is selected. Based on the value that the 'professional' input had appeared the services that are…
-
1
votes1
answer34
viewsBring values from a select with AJAX automatically
I started using AJAX for a while and I have a question. I own a <select> and I am trying to bring the value of it on the same page (without giving refresh), however, it is only displayed the…
-
1
votes0
answers45
viewsForm of insertion into accordion in multiple items with AJAX
Hi, I’m trying to make a requisition for updating item of accordion in the mysql, but only one item is updated. The code works as follows: Sample of Code 1, creates the cards within the modal. Each…
-
1
votes1
answer77
viewsUpdate class data with Array in Laravel
I have to update several records in mysql database via ajax in Laravel. There is a list of many teachers with many subjects, however they are part of a class in specific. If anyone can help me very…
-
1
votes1
answer18
viewsProblems getting a Viewmodel with decimal values using Ajax
When you Get using Ajax, viewModel is coming to the Controller with the fields reset. I’m creating the class manually, converting it and doing the GET. I cannot figure out the reason for the…
-
1
votes0
answers27
viewsConfirm deletion with Sweet alert2 and Laravel 7?
I have a button: <button class="btn-floating red btn-small" data-id="{{ $tag->id }}" data-action="{{url("/admin/tags/{$tag->id}") }}" onclick="deleteConfirmation({{$tag->id}})"> <i…
-
1
votes0
answers66
viewsPHP to receive data from a CSV file via POST with Ajax
I need to upload a CSV file via a form, pass to PHP using Ajax, parse the file and receive a return. I was able to send the file, but I can’t get the data from the file to analyze. My CSV file:…
-
1
votes0
answers28
viewsHow to pass the id date to the controller without allowing the user to do screen manipulation?
Knob: <a id="btnExcluir" type="button" class="btn btn-icon-toggle" data-toggle="tooltip" data-placement="top" data-original-title="@UtilResources.VIEW_TEXTO_EXCLUIR_REGISTRO"…
-
1
votes0
answers28
viewsajax returns no error or success
I have 3 ajax functions that are posting to a REST api //--------------------------cliente---------------------------------------------------------- const urlattime = document.location.origin;…
-
1
votes0
answers27
viewsWeb method query in Asp.Net
I’m making a query to plot the data in the chart Highchart, with interval of up to 1h the query is ok, but of 1h is already slow to generate the chart. [WebMethod] public static string SENSORES() {…
-
1
votes2
answers25
viewsReceiving data from a Table on a php page
Greetings!! I’m trying to do something I don’t know if it’s possible. I have a table in an html page, which I took and turned into an array of objects that apart from Ajax send the same array to…
-
1
votes0
answers47
viewsPass value from a button to a php variable through POST using AJAX
Hello I would like to ask a help, I started using ajax recently and I am having a problem that I could not identify with my little knowledge. I am developing a project that I want to take the value…
-
1
votes1
answer51
viewsAJAX in pure JS (using Xmlhttprequest)
I need to send data from one form to another page. I am currently using Jquery and AJAX, but I need to move to pure JS. I’ve seen other similar posts, but I couldn’t make Xmlhttprequest work. The…
-
1
votes0
answers25
viewsSend JSON to PHP8 via AJAX
I need a lot of help. I need to send a JSON to PHP via AJAX/Jquery but something is not working. I have a JS file with the command: $('#save').click(function(e) { submit(); }); function submit() {…
-
1
votes0
answers24
viewsJquery Ajax does not display Object in the PUT method, using . net mvc
I own the Object var obj = { nome: "Felipe", idade: 23 } I created an ajax call by jquery like this: $.ajax({ url: 'ConfigCode/UpdateOptionsStatus', // route controller na web type: 'PUT', data:…
-
1
votes0
answers24
viewsBlock right access to file called by Ajax function
I’m adding layers of protection to a small system I own in PHP. In the requests via ajax, for example, I use the following code below to prevent people directly access the files that are called via…