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
votes1
answer333
viewsSelect populated via ajax when selecting value from another select by sending null to php
I have a select that fills another select via ajax, all values are filled correctly, but when saving, it sends null. First select: <select name="clientesel" class="form-control…
-
1
votes1
answer123
viewsIncorrect date arriving
I have the following problem here: I have a request that I make by ajax, and send a date for it, the java receives and saves in the bank, but the date that arrives in java is different from the one…
-
1
votes1
answer53
viewsAjax function being ignored
Guys, I have this code that I’m using to search for server validations and display in the jquery validation plugin that I use. function nomeExiste(value, validator, $field) { var retorno; $.ajax({…
-
1
votes1
answer821
viewsReturn php result to javascript
I’m making the POST request by AJAX: HTML FORM (administration.php): <form align="center" width="50" name="excluir_documento" id="excluir_documento" onClick='return confirma_excluir_documento()'…
-
1
votes0
answers107
views -
1
votes1
answer99
viewsDoubt with Enablecors Asp.net web.api
When is the release of an address made using the Enablecors can be used the Route or is it necessary to change something? is correct this way? [HttpGet] [Route("consulta/BuscaTipoPagamento")]…
-
1
votes4
answers10528
viewsContact form with AJAX without refresh
How to create a form with ajax that when pressing the send button it does not redirect you to another page but rather a message just below "Data sent". Follow an example of code I’m studying, but…
-
1
votes1
answer159
viewsHow to pass multiple arrays to PHP page
→ $scope.items = []; → dados = $('#meu_form').serialize(); I wonder: how to send/receive/read the arrays above to a PHP page? Javascript: app = angular.module("app",[]);…
-
1
votes1
answer97
viewsMVC 5 Ajax.Actionlink returns result, but does not render in DOM
Gentlemen, I’m having trouble displaying a list of results in my view. The idea is, by clicking on a dropdown value, I make an asynchronous query to popular the next dropdown. I refer to the…
-
1
votes0
answers61
viewsSkip field when selecting ajax result
I have a div that has an "input" that returns via ajax the results of the query. I need that when selecting one of the user’s results, automatically skip to the next field or if you enter also skip…
-
1
votes2
answers308
viewsHow to store AJAX return to use as a parameter of another function
Main function, which will return the value chave = data.chave: var chave = ''; $scope.submitForm = function() { $http({ method : 'POST', url : 'validar.php', dataType: 'json', data : dados, headers…
-
1
votes1
answer304
viewsAjax canceling onblur and onfocus events
I’m picking to call an ajax (Bootstrap 3 + Html + PHP), what happens is that when you put the $.ajax function, simply the events do not occur, if I put an Alert there events happen normally : Has…
-
1
votes1
answer1308
viewsProblems with Jquery load and append loading another php page
If anyone can help me, I have the following problem. By clicking on the menu that is the reference id for my jquery it loads the page only with several clicks in the menu and when it appears I click…
-
1
votes2
answers269
viewsProblem with AJAX request return
I am making a request in ajax but the result does not update, it is as if it were in some kind of cookie. function AtualizaTotalItensNota(idFornec) { $.ajax({ type: "GET", dataType: "text", url:…
-
1
votes0
answers622
viewsSending email with php and ajax
I am trying to send email from my page but it does not return any message to me if it was successful or not, I am using php along with bootstrapvalidation and ajax to forward the information to my…
-
1
votes5
answers1205
views -
1
votes3
answers1807
viewsHow to do something asynchronous with jQuery, search in Mysql with PHP?
I’m having a lot of trouble with this part. I want to simply do a database search and move on to my main program, this without giving a refresh. I know how to do all part of PHP and Mysql, however…
-
1
votes1
answer571
viewsHow to execute a javascript code received by an AJAX request?
I have that code in the database: <script type="text/javascript"> alert("teste script-1"); var axel = Math.random() + ""; var a = axel * 10000000000000; document.write('<iframe…
-
1
votes1
answer311
viewsPass parameter with ajax
My application receives in the first field of the form a directory. Through this directory I will list the files present in it. I have a method that will list the files according to the received…
-
1
votes1
answer191
viewsPost to two tables simultaneously in AJAX
the code below it is working, however my doubt is the following: There is some way to make a post in two different addresses simultaneously using this same code without repeating it? For example, in…
-
1
votes1
answer390
viewsHow to Add Mask in ajax input via jquery?
Hello guys I have a function that edits the table dynamically, but the data contained in it has formatting coming from the database, but when I double click it does not remain with the mask. the…
-
1
votes2
answers1382
viewsLaravel 5.3 with Ajax
Dear friends, I ask your help to help me solve an Ajax problem with Laravel 5.3 I am facing problems with Internal Server Error 500, and looking for information about it, it may be a problem of…
-
1
votes1
answer109
viewshow it returns pata html array via ajax/php
i have the function below in functions.php files function get_ADRESS(){ if(isset($_POST['getcep']) and $_SERVER['REQUEST_METHOD'] == "POST"){ $cep = escape($_POST['cep']); //10 $cep =…
-
1
votes1
answer901
viewsCurl PHP - Retrieving html from page
Hello, I’m training this URL. Can you tell me why the following section doesn’t work? <html> <head> <meta charset="UTF-8"> <title></title> </head> <body>…
-
1
votes1
answer566
viewsHow to open a specific div on another page?
I’m not sure if this question is duplicated or not, maybe I’m not sure how to search. Anyway, I am developing a system of questions and answers (whose it is already ready) and I will make a page…
-
1
votes1
answer164
viewsResult php in a Modal W3.CSS
Hello! I’m testing the W3.CSS and I really liked what I saw until I locked it in a form with the result inside a Modal. My difficulty is when the event "onclick" submits the form, it opens the modal…
-
1
votes0
answers5038
viewsAjax request with Jquery
Good morning, In my work, a biometric reader system was implemented to control the output and entry of personnel. Such a system has an API, which gives access to your data. Every API is in Ajax with…
-
1
votes0
answers32
viewsHow to return a closure method out of scope when there is ajax response
I did the following method using the library xeditable: $('[data-id]').on('click',function(e) { e.stopPropagation(); var _self = $(this); var id = _self.data('id'); var editableElement =…
-
1
votes1
answer536
viewsshow Exception error on return of AJAX call
I have this call ajax: $.ajax({ method: "GET", url: "/Shipper/getFullAddress", data: { postalCode: value }, dataType: 'json', success: function(data) { $('#AddressStreet').val(data.AddressStreet);…
-
1
votes0
answers44
viewsHow to store previously checked Checkboxes values?
Hello. I’m making a system that allows access to folders. I search the folder, which has its id and permissions saved in the database, select it, loading its subfolder and checkboxes are loaded to…
-
1
votes1
answer53
viewsUse fadeOut('slow') in Ajax Array that contains several id
Hello, I have an ajax function, in which I remove several lines in an html table. The function collects several id that will be deleted, I would like to make a fadeOut('slow') when the function is…
-
1
votes1
answer384
viewsHow to select multiple checkboxes from Array ?
In my HTML you have the following line: <label class="turnoCurso pretoClaro" id="3"> Vespertino, Noturno </label> I need to turn the turns that are brought from the database into an…
-
1
votes1
answer881
viewsUpload Multiple jQuery PHP Files
I would like to send multiple files via post using jQuery, I tested several codes and could not, I would like you to help me. I have this form: HTML - index.html <div class="arquivo"…
-
1
votes1
answer136
viewsUploading files with PHP does not recognize
I’m trying to upload images with PHP and Ajax but the result says it’s an undefined value Javascript code $('form[name="update-user"]').submit(function(){ form = $(this); $.ajax({ url:…
-
1
votes2
answers1828
viewsHow to save data from a form automatically?
Hello, good night, I need a help from you, I want to automatically save what is typed in a text area in my mysql database, I’ve heard that has how to do with Ajax, I tried with this code I have…
-
1
votes0
answers22
viewsModify type text for radio for ajax query
The code that I have is this, but instead of type="text" I want it to be radio type, and when I select a radio of the value example "A" list me the data that has A, why with type="text" I have to…
-
1
votes2
answers1776
viewsAjax request url point to a route
I set the following route in my route file: Route::post('order/productsByCategory', ['uses'=>'OrderController@productsByCategory']); How do I use it in my Ajax request ? $.ajax({ url: "", type:…
-
1
votes0
answers87
viewsChat in Cakephp
My colleague and I developed a chat in Cakephp 1.2 (the system is a bit old) using Ajax. But the only problem is that he needs to keep making requests to the database at all times, with a set…
-
1
votes1
answer279
viewsASP NET MVC with Jquery
I made an ajax request, but it does not call the controller, when debugging javascript never falls in Success and the console appears Error in XML processing. Controller: [HttpPost]…
-
1
votes1
answer213
viewsPopular inputs with jquery and insert table rows at the same time
I have an input that when inserted the matricula (identification) of a person, the rest of the table populates dynamically, and is automatically inserted another row of the table, which would work…
-
1
votes1
answer2264
viewsReactjs - How to run AJAX calls?
I’m developing a project in React (first time I’m working with React) and I’m having doubts at the time of running calls to the server, be a GET or POST. I even managed to perform this task, but in…
-
1
votes2
answers2037
viewsPass an array of objects via AJAX via POST and read the properties of objects in PHP
I’m having some problems solving this situation. I’m trying to pass my object array via AJAX to another PHP page and read the properties that are inside each object within that array. For you to try…
-
1
votes1
answer43
viewsAjax problem while consuming asmx
When trying to consume asxm webservice it returns unfenined when trying to call the myData.id field, however the date result. d returns the webservice values correctly. $.ajax({ type: "POST", url:…
-
1
votes1
answer13243
viewsUncaught Syntaxerror: Unexpected Identifier
Guys I’m having this error on line 14 of my script however I’m not able to see the error, if anyone can help, thank you!! line 14 -> error:Function(date){ whole Cód $(document).ready(function(){…
-
1
votes1
answer685
viewsHow to query (SELECT * FROM table) using AJAX?
Hello I am trying to make a query in a table and show the results on the client page without the need to update the page every new registration. But I’m not getting it. Follow the codes: index php.…
-
1
votes0
answers357
viewsreCaptcha in lightbox
Hello, I am trying to insert a recaptcha on a page, I managed to successfully insert into the contact page through a form in AJAX. The problem is in an AJAX form that is inside a lightbox (In this…
-
1
votes2
answers799
viewsCan I return 2 value in an Ajax?
I have the following script: ('#AjaxUpdateClient').submit(function(e){ var id = $(this).attr("id"); var form = $(this).serialize(); $.ajax({ type: "POST", url: "/updateClient", data: form, dataType:…
-
1
votes1
answer51
viewsHow is a PHP page updated/included via AJAX?
I started thinking about using AJAX in an application I’m developing, but I found some problems with it. I would like to understand how it works, to make the most of this "tool". I had no problems…
-
1
votes1
answer2126
viewsLoad a table dynamically with ajax
I am trying to build a table by making a request to the server and populate it with the return. The server return is correct, but when you enter the function(data), I realized he carries my entire…
-
1
votes1
answer20
viewsProblem resetting $_POST
Staff with a problem in this code snippet, it evaluates if there is a variable $_POST['employee_id'] if it exists it will give an update, if it does not exist an Insert! until then everything is…