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
answers105
viewsHelp to pick up ajax input with Laravel
I need to take the input city of the form below, use in $input['city'] but does not take. Uf $input['Uf'] takes, below the code. <select name="uf" id="uf" class="form-control"> <option…
-
1
votes0
answers138
views -
1
votes1
answer941
viewsJquery-Ajax Orange Query 5.5
I can’t get the ajax consult on Laravel5.5. Query form: <form action="ConsultaEmpresa" method="get" name="FormConsultaEmpresa" id="FormConsultaEmpresa"> {{ csrf_field() }} <input…
-
1
votes1
answer117
viewsButtons generated by foreach only execute ajax in the order they are displayed
Hello! I am using an ajax on a button so that when I click on it this submits a form, the button then changes from VALIDATE to VALIDATED, all without reloading the page. Here’s the code:…
-
1
votes1
answer296
viewsAdd and remove select with button
I am developing a form in which I have a select that chooses states and capitals of brazil, but as those who fill can add more than one select I need to make a button add another select, is that in…
-
1
votes2
answers86
viewsHelp with Ajax Requests to get BD data
I am currently using this Code below to search the page with the products related to the requested brand. echo '<a class="marca"…
-
1
votes1
answer345
viewsHow to pass a variable parameter to jquery
Well, I have a button that when clicked should open another page, by clicking via Ajax the results of the bank. The problem is I have to pass an id through that button for the Ajax request. Making…
-
1
votes0
answers134
viewsHow to validate select Multiple?
Context I need to validate the multiple checkbox. It is necessary to validate the second checkbox. Doubt Where and how do these validations? In php or Java? Logic of Validation Codes: Locality…
-
1
votes1
answer47
views -
1
votes2
answers2122
viewsAccess-Control-Allow-Origin jQuery Ajax
I am trying to access the mail api to calculate freight and get the following msg: Failed to load http://ws.correios.com.br/calculador/CalcPrecoPrazo.asmx/CalcPrecoPrazo: No…
-
1
votes1
answer87
viewsError sending ajax request
I am making a registration via ajax, and I am getting the following error: Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers in preflight. You don’t register, you…
-
1
votes1
answer484
viewsUpdate PHP variable with Jquery using AJAX request
I have a problem related to HTML, Jquery and PHP, I will try to pass the most information. I have a PHP page that has to go back and forth with variables and it’s like a step by step, where each…
-
1
votes1
answer59
viewsHow to send the value of a radio with the concatenated user id?
Good morning my doubt and complex this creating a system that will create card of each registered user, to differentiate the card each element of the card has the user id. I would like to know how I…
-
1
votes0
answers161
viewsConfirm jQuery by running 2 times
Hello, I have a code that "activates and disables" users. This: HTML <button type='button' class='btn btn-success btn-circle ativar-gestor'> <i class='fa fa-check'></i> <input…
-
1
votes1
answer1182
viewsSend an ajax post request to PHP
I am trying to send a text that is typed via ajax to a php page that will make a query using this text that is received. I want to know how to send the variable value nmCliente for the php page. I…
-
1
votes0
answers33
viewsProblems with Ajax query
I’m trying to make a bank appointment without giving refresh, so I’m using the Ajax, but it’s not working, it doesn’t give the refresh, nor returns anything. The code of the page that should present…
-
1
votes0
answers155
viewsHow to receive value per GET?
ola personal I am developing a job and I need to get a value by get in the url but I’m not getting if someone can help me and show my mistake I thank you: <?php…
-
1
votes0
answers53
viewsDoubt in the return treatment Ajax, receive data return from an API
I have an Asp.net web.api API I am making a method that sends the login information, I am having difficulty to do the treatment of the return, even sending wrong information is passing as certain.…
-
1
votes1
answer157
viewsSpecific image in a modal window
I have a code that takes all images from a directory: <script> var folder = "img/"; $.ajax({ url: folder, success: function (data) { $(data).find("a").attr("href", function (i, val) { if…
-
1
votes0
answers105
viewsGrab ID inserted by Ajax
I have a function that includes a register, and when including I call another function, in this other function I need to pass the last ID included, how can I do this ? function SalvarHorario() {…
-
1
votes0
answers49
viewsDoubt Json MVC Core Razor
I have created a method to perform a Insert through Ajax, thus: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val();…
-
1
votes3
answers163
viewsClear campo select
I created an Ajax request to fill in a field select when the user clicks on a certain specialty appear only the professionals qualified for the same. However, when clicking on another specialty the…
-
1
votes1
answer56
viewsProblem with form + ajax
I made an ajax request to send the data from a form to the server, the data is sent and stored perfectly. But when processing the Success creating the condition, should the return of result were the…
-
1
votes1
answer664
viewsGet return from url c#
I need to get a return from an ajax that I send. The URL returns something like:…
-
1
votes1
answer349
viewsClear modal after entering record in database with php and ajax
I’m saving a record inside the database MYSQL with AJAX. The problem is when I will insert a new record with modal. It brings the record I entered earlier. How can I make the modal after…
-
1
votes0
answers21
viewsPass angular array in json to mvc controller
I have this function that generates an array, I need to pass to the mvc controller through JSON, but it is not passing, follow how I am doing: var app = angular.module('myApp', []);…
-
1
votes2
answers253
viewsHow to save selected items at check from bank using AJAX, Jquery, and C# MVC?
I have a form that shows me a list coming from the bank in checkbox form. How can I identify which items on the list were marked in the save? I carry it like this: function CarregaSaida() { $.ajax({…
-
1
votes1
answer31
viewsAjax script does not work
I am trying to fill a combo box (cities) in the change of another combo box (states), and I tried to fill this out via AJAX, but the script I made is not running, if anyone can help me, I thank you…
-
1
votes0
answers56
viewsProblem with sending data via ajax and Laravel
Good afternoon, I’m having trouble sending data via ajax, returns the code 200 but returns Syntaxerror: Unexpected end of JSON input But I don’t think it’s even enough on the controller <input…
-
1
votes2
answers351
viewsRequest via GET
I am trying to create a search system using a Request to get the search result. I am not able to bring the product data related to the title researched. Whatever the searched word, it always brings…
-
1
votes1
answer257
viewsChange values according to selected option
I have a table of plans here, and in it I had 5 columns, for 5 planes obviously. In each column there is a select to choose the periodicity of each plan. According to the option selected in this…
-
1
votes2
answers74
viewsUpdate object values via GET without repetition
To working on a plane table, which has a script with multiple objects, thus: var plano_basicoUS = { 1: null, // mensal 2: null, // trimestral 3: null, // semestral 4: null, // anual }; var…
-
1
votes0
answers57
viewsScript php and ajax does not run on my machine
I am making a registration system and for this I am using php and ajax, I made the two pages correctly I believe, when I run the script the validations I put in php perform perfectly and returns…
-
1
votes0
answers57
viewsPhp Codeigniter - Algorithm for generating string base from database data
Good night guys, how are things? Let’s get to my problem. I have the data saved this way in the database: Basically a project has TERMS related to it. Terms in turn may have synonyms. I want my…
-
1
votes1
answer244
viewsAjax POST does not execute the ASP.NET MVC action
Controller Action public class EstabelecimentoController : ControllerBase { [HttpPost] public ActionResult ImportarEstabelecimentos() { var file = Request.Files["inputFileImportarEstabelecimentos"];…
-
1
votes1
answer77
viewsIs it possible to add an event listener to the url?
The idea is that when there is a change in the url, run a function that will do something with that url, for example, the user is on the page exemplo.com/#/algumacoisa/2 which is a table with…
-
1
votes1
answer51
viewsI need to have dynamic dropdownlist or when selecting a drop down release the second
Next I have a question where I have 3 drop down list and when selecting 1 dropdown it releases the other one , it is connecting with my bank and brings the result of my select via while and shows in…
-
1
votes3
answers81
viewsHTML and AJAX problem
I have a chat that works with AJAX. However, depending on some characters that the user type, AJAX does not work, I do not know why, but it does not work. Therefore, I need to remove the HTML from…
-
1
votes1
answer1217
viewsLoad a TEXTAREA field from a SELECT with Jquery
I have a modal that performs email sending. Only I created some email templates in the database mysql. On the screen appears my select with all the templates for selection, only that I would like…
-
1
votes0
answers61
viewsTable with drag and drop event does not work in mobile
I have a page that user have the freedom to sort table, and this drag and drop event on computer works perfectly, but on tablets, mobiles does not work, what to do for the perfect workings of this…
-
1
votes0
answers50
viewsSend a jquery variable via ajax to PHP
I’m trying to send data from a table via Ajax to PHP. I’m doing this by transforming the table into JSON and sending it through Ajax to PHP. The scritp is like this: <script…
-
1
votes0
answers386
viewsAjax search with Laravel 5.6 and jquery
I’m having trouble executing an ajax search with Laravel, follow the ajax code of my view: $(document).ready(function () { $('#enviarForm').click(function (e) { e.preventDefault(); var form =…
-
1
votes2
answers186
viewsTake select description - AJAX
I have this function and need to load the description of the select. In this function I can only load the id, how can I do to in place of x(which is the id) I get the description? function…
-
1
votes1
answer260
viewsHow to create a request via GET
This attribute below is working with href, and directing me to the desired page. <a href="prod_detalhe_5.php?codigo=<?php echo $res['codigo']; ?>"> <img src="img_produtos/<?php…
-
1
votes2
answers1357
viewsHow can I show database value in real time?
I’m a beginner in php, let alone js. I would like to take a count of how many users are registered in my database, but in real time using ajax. I have tried in many ways, but without success. for…
-
1
votes1
answer39
viewsMy Javascript/AJAX function is not converting Date to the correct format
Hello I’m having a problem with an MVC project. My View needs to return Data values to some Text Boxes (from the record selection by a Data Table) so that the user can do the record Edit. The…
-
1
votes1
answer97
viewsRedirect page with post using ajax
I know the question is very strange, but it is a need that we have, I need to move to another page some variables that I rescued, but it is not only pass but redirect the page as well. I can’t use a…
-
1
votes2
answers144
viewsReuse AJAX calls with jQuery
Hello It is very common to see on the internet calls ajax blocks that always repeat exhaustively the same structure, I would like to improve my calls using parameterization patterns and save code of…
-
1
votes1
answer28
viewsRequests between Web and PLC Siemens small delay
This Jquery function is controlled when a Switch from my page is made a change $("#statusM1").change(function () { if (statusM1 == 0) { url = "index.html"; name = '"motor"'; val = 1; sdata =…
-
1
votes2
answers139
viewsProblem with Ajax and php
I’m doing a test with ajax and php, but it’s returning a value nothing to see test2.html <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8">…