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
votes0
answers229
viewsHow to resolve this error? (Ajax Error)
I use a datatables feature on this system here and every time I refresh the page or after including a new record, this error appears. I did a lot of research, but still no solution. I tested the…
-
0
votes2
answers78
viewsGenerate HTML components with PHP and these assign javascript characteristics
I created a form that has a panel and this panel has a input date with a jquery datepicker. If you have data entered in the database, my PHP creates more lines in this panel (through the ajax) with…
-
0
votes1
answer120
viewsLaravel + AJAX Jquery
Good night, I’m learning Laravel and need to upgrade a div every 10 seconds. I have a route that when called makes a query to the database. This route returns the Dashboard view. Route:…
-
0
votes1
answer66
viewsHow to validate value that comes by json from php to ajax
In php I have the following return: $invalido = (object) array( 'invalido' => true ); echo json_encode($invalido); and I need to show on success of ajax asked if the invalido is true. I tried the…
-
0
votes1
answer65
viewsAJAX completes the URL from where it was called
I’m starting to use AJAX now, so I don’t know if this is what’s going on with him. I made this code to do a CPF search in the database $('#btn_buscar_cpf_responsavel').on('click', function(){ var…
-
0
votes1
answer99
viewsAjax Request Returning in White
all right ? My doubt is as follows: I am making an ajax request to my Serrvlet and its return is being blank. JS: $('#pesquisar').click(function() { $.ajax({ url: '../UsuarioController', type:…
-
0
votes1
answer78
viewsNull object with jquery ajax MVC3
I know I must be forgetting something. I am making a request ajax jquery to send a message via contact form, however the object is coming null on controller. I tried doing with the JSON.stringfy and…
-
0
votes1
answer68
viewsYou can capture a value from the radio button via ajax
<div class="btn-group btn-group-toggle col-xs-5" data-toggle="buttons"> <button type="radio" name="tipoTransacao" id="tipoTransacao" value="1" class="btn btn-success" ><i class='fa…
ajaxasked 6 years ago Rafael Amorim 1 -
0
votes0
answers34
viewsMulti-form validation Jquery
I set up a form, where I have a SELECT with three options and when selecting them, the jquery displays different form options, with their respective contents (they are three Divs with class "Hide"…
-
0
votes1
answer39
viewsI cannot create a new client on the server
Good evening, I’m a student of JS, html. I’m trying to learn how I can make an inclusion on the server ( I’m sorry if I describe with the incorrect word or term any step). I have to create a website…
-
0
votes2
answers2517
viewsPass Data Via Ajax to the ASP.NET CORE C#MVC Controller
Hello, I’m beginner in programming, and I’m trying to pass data via Ajax to my Controller, to be honest I’m just studying so I don’t even know for sure understand the advantages of Jquery for…
-
0
votes0
answers88
viewsHow do I make the infinite scroll not load the same values again?
I have the following code: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script> <script> $(document).ready(function() {…
-
0
votes1
answer14
viewsHow to pass an index to the element according to its position?
I am loading data from an external api with json and jquery,every ajax request a div with the item class, a div with the more_info class and a see button plus, which loads the rest of the data, and…
-
0
votes1
answer25
viewsIs it possible to set the charset in an ajax request?
I’m having a problem with the characters. I basically open txt(accent) files through ajax, but I’m having trouble with the accents. I was wondering if there is a way for ajax to open txt file with…
ajaxasked 5 years, 12 months ago Hovesky NerdGamers 41 -
0
votes1
answer141
viewsC# Web API 2 - AJAX Request for PUT method returning 405 (Method Not Allowed)
Good morning! I am building a system using C# as back and React on the front, and I have a problem in two controllers (supposedly), but the error seems to be the same, and whenever I make an AJAX…
-
0
votes1
answer86
viewsFill modal to edit with information coming from the database based on id
I need to fill a Modal in edit mode based on the received id. My code: $("body").on('click', '#editfoto', function () { $('#modalEdit').modal('show'); id = $(this).data("idedit");…
-
0
votes1
answer126
viewsHow to pass more than one url to ajax consume json?
I need to create div’s with data from two urls with json via ajax, and the data will be returned on the same page, but I need to pass two urls as parameter, as I can do this? var url_aparecida =…
-
0
votes1
answer117
viewsUse befereSend in ajax to make a loading screen in Modal
I’m trying to make a loading screen using modal and jquery, where while collecting the database information, it has to appear loading. But even after you have already loaded, the modal is not…
-
0
votes1
answer312
viewsfetch api GET method with Django
Talk guys good day, I’m with a form that the user enters Cpf and ra and receives its id_registration, I’m trying to do this with ajax, but always returns 500 Internal Server Error, follows my line…
-
0
votes0
answers123
views -
0
votes0
answers48
viewsReact and Web API - How to submit form with files
I’m using React for front development and c# Web API for back. I am trying to submit a form that has an input file, in the API I created a Viewmodel to receive this data. Before submitting, I place…
-
0
votes2
answers781
viewsLoad select city after selecting state
I have this HTML, and would like when the user selects the state, it loads the city data of the selected state: <label asp-for="Cidade" class="col-md-1 control-label"…
-
0
votes1
answer59
viewsAJAX request with FOR
Good staff as I can correctly print Hello World, using AJAX request, inside a for? My real question is: understand why the for executes your entire loop in the first ajax request, and only then run…
-
0
votes3
answers57
viewsI cannot return data from an asynchronous Ajax
I make the population 4 HTML select with Ajax, however I’m having trouble returning the files, I tried to do it asynchronously only it was not good because the user can see each select being…
-
0
votes1
answer86
viewsAJAX/jQuery call running only once
Good morning guys, I am setting up a tree scheme (network) where I send the parameters via GET to my API, and it returns me the data to mount my code is as follows: $('.btn-rede').click(function ()…
-
0
votes1
answer74
viewsHow to display hidden div after page reload?
Hello, everybody. I am developing a page where there is a hidden button that appears after a certain time. My code: HTML: <script…
-
0
votes1
answer854
viewsCall php function using onblur (completed)
I have an event onblur to call a function and this function has to call a php class in order to compare what was typed in the input with what is in my BD, but I don’t know how to do it using jquery,…
-
0
votes1
answer109
viewsSend two data via ajax
Next, I have an ajax code that takes values from a form and sends it to a page. But I need to send together a return that I have already obtained in an ajax passage. $('#form1').on('submit',…
ajaxasked 5 years, 11 months ago Alisson Becker 1 -
0
votes0
answers38
viewsProblem with file upload with ajax/jquey and Laravel 5.7
Good morning friends, I need to make a request in ajax with Aravel 5.7, but for some reason ajax is only processing and does not return a response, follow the code: Ajax: jQuery.ajax({ url: "{{…
-
0
votes1
answer89
viewsScript conflict in my html file
I am creating a web application where the main page is a Timeline, and this Timeline should update your content automatically. I’m using Jquery’s setTimeOut function to update Timeline every x…
-
0
votes0
answers554
viewsRequest being Barred by CORS policy
I’m trying to build my Front End using the Icinga API, but I’m constantly encountering the following error: Access to Xmlhttprequest at…
-
0
votes1
answer77
viewsLoad reply comment with AJAX without refreshing page
I am sending comments with AJAX and then loading it in the reply, works well, except that the reply link is not being processed on the page, after you click to publish reply the page is being…
-
0
votes1
answer163
viewsHow to store a JWT Token in a simple method and redirect to another page?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta…
-
0
votes2
answers916
viewsJquery autocomplete with Ajax via PHP and Mysql
I have an input that is populated via Jquery autocomplete. Simple and efficient. But I wanted to make sure that when selecting a number of this input (it is a mobile IMEI number) it already looked…
-
0
votes2
answers259
viewsAJAX request function that returns another function for JSON object manipulation
I have a function that uses AJAX to return data from a database. The data is processed and returned in JSON and, from there, I do the proper manipulations. So: function getData() { $.ajax({ url:…
-
0
votes0
answers47
viewsgetJSON function shows no information on the screen
Good evening Guys, I really need some help. I’m dynamically setting up a table that lists an X number of calls. For this I am using AJAX to query the database and display on the page. So far so…
-
0
votes1
answer47
viewsFailure return on Submit
I have a Ubmit, which before I perform this function: $('#modelEditar').submit(function (e) { var cancelada = $("#Cancelada").val(); if (cancelada == "False") { e.preventDefault(); var id =…
-
0
votes1
answer415
viewsPass select Multiple values by ajax
I’m trying to pass the selected values in a select Multiple by ajax but I’m not getting it. When executing my code there is no error, but the values arrive empty to the database. The code below is…
-
0
votes1
answer571
viewsHow to load a Spinner into a Modal during Ajax (GET) - Asp.net requests
I have a Page Index with a Grid that lists CEPS. I am using "Modals" windows to Edit, Delete and Create a new Record. When I click on the Edit button, there is a delay of about 3 seconds for the…
-
0
votes1
answer582
viewsError returning a query’s value with php and ajax (Request failed: parsererror)
I am trying to return the result of a query via ajax with php and jquery, but it is not working, I get a parser error message and am unable to identify the problem. FUNCAO JS function buscaCliente()…
-
0
votes1
answer45
viewsFunctions with ajax make loop for stop running
I have a function that executes when I click a button. When clicking, the function should execute a loop for and if the value of that position of the for correspond to any of the ifs then it…
-
0
votes1
answer44
viewsProblem in Form with Ajax and Codeigniter
Good night, I am using Codeigniter 3.1.9 on my default server. I have a form that is below. In the case , I can’t let the State stay in a Select and the City update itself with ajax according to the…
-
0
votes0
answers108
viewsLoad select mysql in specific column of datatables with Ajax
Good morning to all, I have a datatables with 4 columns. It serves to control the processing time of some routines. In the first 3 columns, I load the data from a table with name, description and…
-
0
votes1
answer23
viewsError with mysqli and Ajax data
I’m having a problem fetching data using ajax. <script> //função buscar dados function buscarDados(id) { $(function () { $.ajax({ url: 'ajax/dados_aluno.php', type: 'POST', data: {id: id},…
-
0
votes0
answers27
viewsBecause when I use AJAX the function doesn’t work?
JS $(document).ready(function(){ LoadMods(); $(".mod").click(function(){ var id = $(this).data("id"); alert("Entrou"); $.ajax({ url: '../crud/load_mods_info.php?id='+id, type: 'post', dataType:…
-
0
votes1
answer343
viewsPage and data redirection with Ajax
Test scenario I have a page from login.php, that checks the user and password with ajax, sending the data via post to the file valida.php. The valida.php, when the authentication works, should…
-
0
votes0
answers67
viewsCompare Database Data with AJAX Result
I make a request AJAX in view and a survey on database. I need to compare the results of the two and if an item is equal I want to print a result in a div $.ajax({ type: "GET", data: {number:…
-
0
votes0
answers41
viewsI have updated the version of Laravel 5.2 to 5.6 and I am having problems with the requests via ajax that receives a return Sponse()->json
I have a system running normally in Laravel 5.2, but I need resources that only have the most current versions of the framework. With this I updated it to version 5.6 and I am having problems with…
-
0
votes0
answers24
viewsDoubt Laravel + Ajax
I have the following table below, with a listing, there is a TD, which the user can choose between yes and no, html tag option, would like to know how to make the change from yes to no or…
-
0
votes1
answer91
viewsPass array by Ajax and receive in PHP script
I need to pass a Array for Ajax to read it in a script PHP. Javascript code: $.ajax({ type: "POST", url: "vendas_funcoes.php", data: arrayItens, success: function(msg){ console.log("ok"); } }); I’ve…