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
answers319
viewsAccentuation with Multipart/form-data form and sql server using ajax
Hello. I have a problem that’s keeping me up at night. I am working on legacy code in classic Asp and need to register a form that contains pdf file and data (such as name, surname) and other…
-
0
votes2
answers56
viewsVariables by links
It is possible to prevent users from accessing a "register.php? msg=error" page per link? That is, basically there is the "register.php" link that serves for users to register and the email entered…
-
0
votes0
answers78
viewsError in jquery div display
Good morning, stack overflow I have the following problem. I try to display a content on the screen, part of this content gets duplicated. arrayObjCat9 = [];…
-
0
votes1
answer716
viewsHow to use a Javascript variable in a php page via ajax
Basically I need to use a Javascript variable in a php to later register, in the database. I have a boot <a href="carrinho.php"><button id="btnTestar">TESTE</button></a> that…
-
0
votes0
answers94
viewsSend form with file using ajax web api Entity framework
I’m trying to send a file along with the form to the database, but when I send it returns me error 400 bad request, I don’t understand why. Curriculoscontroller // POST: api/Curriculos…
-
0
votes1
answer189
viewsHow to copy div from iframe to parent? (replicate) can be using ajax, jquery, javascript
I have an index.php that does a post in.php content, and takes the result and writes to the div #content inside index.php. Post: <script type="text/javascript"> $(this).on('load',function(){…
-
0
votes1
answer143
viewsForm data is not sent with Event.preventDefault()
When submitting a form, I am using ajax and event.preventDefault() so that the screen is not recharged. In my project, I made a small MVC structure, where the URL that I pass is the path that leads…
-
0
votes1
answer574
viewsHow to handle xml return in Jquery
I am making an Ajax request for a PHP page that returns several data in XML. If I make a simple code recovery by opening the PHP page directly, sure, however I am making the request for another page…
-
0
votes2
answers171
viewsSorted list PHP+AJAX
I have been having the following problem since yesterday, putting together an orderly list as I will search for data in the database. I suggested to do with ajax, I did with the help of a colleague…
-
0
votes1
answer733
viewsAjax request error with Codeigniter (url)
I have a very strange problem, in case anyone can help, I thank you in advance. I’m developing an application on Codeigniter 3.1.6 with PHP 7.1 and Bootstrap 4. The start screen presents a list of…
-
0
votes1
answer652
viewsTake data-value that is generated dynamically
I need to take the value of a data-attr that is generated from an ajax request. The most I got was: $('.dataImposto').on('click', '.ImpostodeRenda', function(){ $(".ImpostodeRenda").html("ooi"); });…
-
0
votes2
answers175
viewsValidate all inputs in SUBMIT
I have a function that validates my fields in the event focusout, however, now I need to go through all the fields in the submit of form, I know I should wear one for, but I don’t know how.…
-
0
votes1
answer29
viewsHow to pass attached object without losing array structure
How do I attach an array, via jQuery/AJAX, and continue to receive data in a PHP page in the following structure: Array ( [cadeia-suprimento] => Produto final [produto] => 2 [categoria] =>…
-
0
votes1
answer118
viewsLaravel and Ajax - Doubt about route
Using the Framework Laravel 5.5, How do I call the following route in Ajax? Route: Route::group(['prefix' =>'paineladmin', 'namespace' =>'PainelAdmin', ], function(){…
-
0
votes2
answers1149
viewsHow to update a select in html with javascript
I’m new to development and I need help. I have a select in html that I need updated when selected from another select. Follows html code: $(document).ready(function () {…
-
0
votes1
answer36
viewsLogin with AJAX and PHP with database(Why is it wrong?)
$(document).on("click","formlogin",function(evt) { $.ajax({ type:"GET", url:"http://localhost:8080/ProjetoXDK/appModelo/www/php/entrar.php", data:{ var cpf = $('#cpf').val(), var senha =…
-
0
votes2
answers1035
viewsHow to insert value in mysql with PHP and Ajax
I have the following page of recipes, which brings the list of ingredients: <?php $db->setQuery("Select * from #__ingredientes"); $tmpingredientes = $db->loadObjectList(); ?> And from…
-
0
votes1
answer5430
viewsRun Curl command in an HTML/JS application
I have zero experience in API, JSON, Ajax, Curl, the most I learned in college was basic HTML, CSS, JS and PHP, I’ve killed myself searching and watching video, but with no one with experience to…
-
0
votes2
answers148
viewsComplete fields without user having to give TAB
When selecting the product in the list of suggestions Autocomplete I have to give TAB to complete the next fields, I wanted that as the Description field was filled in the other fields were filled…
-
0
votes1
answer191
views -
0
votes2
answers178
viewsComplete fields
When selecting the product in the list of suggestions Autocomplete I have to give TAB to complete the next fields, I wanted that as the Description field was filled in the other fields were filled…
-
0
votes1
answer769
viewsRun Action Post by Jquery ASP.NET MVC
Would you like to delete a record in a button click by Jquery, what’s the best way to do it ? The way I did it’s not working. Action I want to call by Jquery // POST: Pais/Delete/5 [HttpPost,…
-
0
votes1
answer853
viewsInsert information into bank with AJAX
I need to enter information in the database, but I need the page not update. the problem is that I do not know anything about AJAX and even searching the codes on the net, I could not solve Like I’m…
-
0
votes1
answer58
viewsProblems with forms
I’m trying to make a form using js and php, only when I click the send button, it always stays with "Sending email..." and never sends, I checked console and says that the error is in email.php (404…
-
0
votes1
answer78
viewsUse jquery component inside a formData (fileupload)
Friends, I am using the jquery fileupload plugin and using the following callback: jQuery("#fileupload").fileupload({ url: '/painel/uploads', dataType: 'json', formData: {_token:…
-
0
votes1
answer30
viewsAccess PHP class with AJAX
I have the file.js file in the folder: folder1\folder-xpto\js\c3-0.4.11\file.js This file has the following script AJAX: $.ajax({ type : 'post', url : 'controller/classX.php', dataType : 'html',…
-
0
votes2
answers476
viewsRequest ajax with append before opening modal
For some reason I’m not getting this append to work. function mostrarUploads(id) { $.ajax({ url: "/painel/mostrarUploads", async: false, method: 'POST', data: {_token: jQuery(".token").val(), id:…
-
0
votes1
answer65
viewsFill input2 from input1?
I have the "input1" that searches the name of a client and saves his id in the table, this search is done by autocomplete with Javascript. Now I needed that in "input2" I received the id of the…
-
0
votes1
answer231
viewsCrud Ajax Laravel 5.*
I have a little problem. I’m doing a crud with Ajax + Laravel. "Everything" is working, more than when I update a data, it also registers. Well see how I’m doing. I have a Bhutan that I have an id…
-
0
votes1
answer566
viewsIs it possible to link to php include with jquery?
I have a php page that makes require header, sidebar, and footer, but the content of body would like to pay dynamically by passing the link to require via jquery, do not want to work with framework…
-
0
votes1
answer683
viewsSubmit form with empty checkboxes and receive their value on the server
I’m picking up a form with AJAX and Jquery and sending for treatment in a file PHP by name getPDF, in this form there are several checkboxes with different values however name and class equal…
-
0
votes1
answer75
viewsAjax requests do not stop loading
I have been with this problem for many days now, I have a page where externally loads the link from a security camera to display the image on the main page, so far so good, the image shows normally…
-
0
votes1
answer68
viewsProblems with using Ajax request
When I try to make a request to return an sql query to the form fields it returns only the first row of the table, how can I change my code to fetch all rows: select code: <?php class Medico {…
-
0
votes1
answer487
viewsAjax + Php Pass Variable
How can I send a variable through Ajax and recover the value in PHP? <script type="text/javascript"> setInterval(function(){ $.ajax({ async: true, url: 'contalog.php', dataType: 'html', type:…
-
0
votes0
answers526
viewshow to recover json php data with ajax
how can I recover data coming from a php with the ajax. because I’m getting the result but it’s not coming to the jquery he doesn’t bring me values query code if(isset($_POST['cep'])){ $cep =…
-
0
votes1
answer326
viewsHelp with Ajax Combo Box
I used a video lesson from Youtube to create a Combo Box of States and Cities, but I followed the reasoning of the page ESTADOS.PHP and entered in the page CIDADES.PHP and created the page…
-
0
votes1
answer53
viewsAjax displays message and hides right away
This code of mine is a bit buggy, its function is to display the message and leave it there until it refreshes the page, but it is disappearing. $('form#yes').on('click', function() { function…
-
0
votes1
answer50
viewsReturn datatable of select
I’m using the datatable with ajax, getting among others a column with select, but I don’t know why onchange does not work. Follow the return of ajax: {"data": [[ 1, "17020161", "Marina Costa…
-
0
votes2
answers133
viewsTreatment JSON
Through JQUERY, I need to make a request via POST where I’ll get a JSON with a token. The JSON return I get after sending the POST is this: { "Token": "e27bb0a7-e65b-4cc3-a82e-7a2a3c26a248",…
-
0
votes1
answer181
viewsjquery’s maskMoney function does not work in div loaded via ajax
I have a page I’m refreshing with ajax only in the div conteúdo. It is configured like this: div1: I load 2 selects where the user will choose these 2 data (class and bimonthly) div 2: I load the…
-
0
votes1
answer730
viewsPass object by Ajax
I would like to know how to get through an ajax request, bring to my site a list of elements, where these elements are lines of an sql query. For example, I have an employee chart. In the form, when…
-
0
votes1
answer116
viewsAjax By Form Data= Variable Undefined
This is my form <form action='emails.php' method='post' > <input type='submit' value='Enviar para Email Selecionados' class='selecionados'/> </form> <div class='divtop'…
-
0
votes0
answers75
viewsCategories and Subcategories do not update - PHP7
Starting in programming I am developing an application with PHP 7 and MySql based on a lost and found site, but with problems in the creation of MENU, where my base is in the picture below: I can…
-
0
votes0
answers427
views(Flask) Ajax JSON with Jquery-Datatable
Good tarrde. I am trying to show my data (JSON) in a Datatable via Ajax. The HTML is: <div class="x_content"> <table id="exemplo" name="exemplo" class="table table-striped…
-
0
votes0
answers478
viewsYII2 Modal Ajax
good morning ! I am somewhat new in terms of programming, even more so in Yii2, and I know there are some guides on how to use Ajax in Yii2, but they are few and I still can’t understand easily,…
-
0
votes1
answer238
viewsHow to use "mock" to perform function only after a while
Hello. I am developing a script that runs when the user arrives at the end of the page scrolling. What I have so far is the following code: $(document).ready(function() { var posicaoAtual =…
-
0
votes0
answers110
viewsAJAX + PHP - Order form
I am creating a contact form where user puts their personal data and then selects the products on which you want a quote. The fields of products are select and quantity input type="number". But in…
-
0
votes1
answer73
viewsRequest problem via ajax
I have a JSP page to login to my system, but when trying to make a request via ajax to authenticate me, the form does not seem to be being sent correctly, as the redirection is done to the login…
-
0
votes1
answer173
viewsAjax to make select in bank does not work in new line
I am having difficulty in the following situation, when generating a new table row my Ajax code to make a select in the database does not work. Follow the image below to clarify any doubts: Page:…
-
0
votes0
answers395
viewsHow to call a specific PHP function with AJAX?
I need to call a specific function inside a PHP file with AJAX. I tried several ways, did searches even here on Stack, but it doesn’t happen at all. What am I doing: PHP code: $functionName =…