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
votes1
answer87
viewsSimplify and unify functions into one
How can I simplify and leave everything in a single function the script below? var plano_0 = new XMLHttpRequest(); plano_0.open('GET', 'buscar_valor.php?id=10', false); plano_0.send(null);…
-
0
votes0
answers63
viewsForce woocomerce checkout page update
Hi. My store does not update the order amount when I change payment method ... How can I force this update on functions PHP or jquery script / ajax etc.? woocomerce refreshes the page in ajax, but…
-
0
votes2
answers165
views -
0
votes0
answers385
viewsHow to take modal bootstrap data and send it to PHP
I need to get the data from the Modal form via Ajax My code: var url = 'fotovisita.php'; var data = $('#foto').serialize(); var type = "POST"; $(document).on('click', '#save-foto', function () {…
-
0
votes3
answers1316
viewsReturn of PHP Query in Ajax
How do I get the PHP query values in AJAX? AJAX $.ajax({ type: 'post', dataType: 'json', url: 'listaGabaritosSelecionados.php', success: function(url){ $('.retorno').html(url); } }); PHP $mysqli =…
-
0
votes0
answers41
viewsDoubt - Send Ajax at Checkbox Click (Performance, Network)
I have a table in a view, which lists the modules, with each module and each user, and a checkbox that indicates whether or not the user has access to the module, and I want in the action of…
-
0
votes2
answers51
viewsHow to maintain the presentation of modal data
I developed a screen that presents the benefits granted to the citizen, system aimed at social assistance, follows the view : <!--onblur…
-
0
votes1
answer276
viewsSelect table row content
Talk personal all right? I have an HTML application,PHP,Jquery, bootstrap and on the same screen I have two tables the first of clients I bring via AJAX when I type the client name in the "search"…
-
0
votes1
answer97
viewsShow modal only if there is an active session
When someone registers their name and email I create a session and I rescan the page with the name of who signed up, but I’m not able to understand how I do so that the time I rescan the page…
-
0
votes1
answer217
viewsError 404 when using Cielo Ecommerce API
I am trying to make a request via API to make sales via credit card. URL of the Handbook: https://developercielo.github.io/manual/cielo-ecommerce#requisi%C3%A7%C3%A3o JSON informed by CIELO {…
-
0
votes0
answers72
viewsHow to send a form with Targe Blank and redirect the current page without Crhome blocking?
I have the following scenario: In a form send the data via Ajax, at the time of return if: if (json.retorno == true){ $("#form_imprime").submit(); } If I put a button in the form and send via the…
-
0
votes1
answer89
viewsHow to send two integer parameters to an Asp.net MVC Controller using Ajax
I have a composite key table (Personal and Professional). The Personal property is in a Hidden and Profioid is accumulated in a data-id. Stays two information must be passed to the controller so I…
-
0
votes1
answer158
viewsHow to call my view Asp.Net MVC with ajax
I am starting my studies with Asp.Net MVC and I am able to call a view from the main menu. I have an initial view "_Layout" with the following menu item: <li> <input type="radio"…
-
0
votes0
answers104
views -
0
votes0
answers48
views -
0
votes0
answers30
viewsPull html editor txtarea through select
Good afternoon, I’m having trouble correctly displaying the contents of a select inside the html editor. Code below: <form> <div class="form-group"> <label…
-
0
votes1
answer154
viewsHow to Dropdown Autocomplete Field in Loop
Como não tenho muito conhecimento de javascript I need a help in this my problem here... In this and precise form that when choosing an item in the dropdown it fills the field beside with the value…
-
0
votes2
answers82
viewssend file by ajax
I have a form to fill and record files in the database passing the data by ajax but the file is not coming. The form: <script src="jquery.min.224.js"></script>…
-
0
votes0
answers24
viewsError while receiving $_FILES['photos'] data via ajax
Error when receiving $_FILES['photos'], already the post with the other data I can get it normally... I believe it is something in ajax that is giving conflict.…
-
0
votes0
answers447
viewsChecking that the CPF is unique with Jquery validate remote
I’m making a form that checks if the number already exists in a database. In my JS I use the Jquery Validate library $('#form').validate({ rules:{ cpf: { required: true, cpfBR: true, remote:…
-
0
votes1
answer220
viewsButton created Dynamically does not fire Asp-action - core 2 MVC
I have a cshtml (view) on this page I use a typed template and inside I use a POST form, I create a div(dinamicamnete with ajax) with some components, ALL appear normal, but the button to fire an…
-
0
votes1
answer239
viewsHow to delete complete HTML content?
I’m doing a chat using PHP, Javascript, Ajax and HTML. I know it’s not the best option, but I chose to create an html file log.html which stores all messages and is loaded by my PHP file index.php.…
-
0
votes1
answer21
viewsDWR Framework - Does not run
I am trying to use the DWR framework to populate a select from the output of another select in my JSP. Only you have no action after selecting the first select. JSP 1º SELECT: <select…
-
0
votes1
answer93
viewsMake Script work in loop
As I’m not familiar with javascript I need a help on how to make this script work in the loop. His problem is that auto complete only works in the first line. if we add another line it no longer…
-
0
votes1
answer3569
viewsAjax (POST) Laravel
I am having the famous error 419, that for a certain moment I was able to solve, but after restarting the server, it stopped working. Route: Route::post('ajax/Register', 'Ajax@Register');…
-
0
votes1
answer58
viewsNotice: Undefined index: $_FILES
I am trying to send the data of a form to use in php, I made a script in ajax to send the data, I can access the POST data normally, the problem is that I cannot access the image that is in the form…
-
0
votes2
answers44
viewsAlert de Sucesso
I have a modal to mark friends, when the user clicks to mark, I call the onclick that makes the request to the controller. I want to send a message of success to the user, I have a div with None…
-
0
votes1
answer85
viewsShopping Cart (checkout) keeping only the last value
all right? I’m working on a project with Laravel PHP framework for back-end and jQuery for front-end. I’m setting up a ticket checkout for football stadiums for a system I’m developing. I have…
-
0
votes2
answers123
viewsTake a JS variable and move to a PHP class using Ajax with Jquery
I need to create a project that consumes an api with data in json, I created the interface, but when it comes to taking the result and sending it to a class in php, but when I press the send button,…
-
0
votes1
answer28
viewsError when passing the result of a json array to html;
I am with the following situation, I have a page that receives the name of a city, between São Paulo or Osasco, both the request of going via Ajax, and the data in json is coming back from php to…
-
0
votes1
answer66
viewsAjax no popula select on second request
Hello, I have some ajax requests on my page that populate a select correctly, however, I need you to do it again in an update modal, but the same ajax request returns nothing. This is the code of…
-
0
votes1
answer209
viewsHow to create Divs within Java and use Json
I am trying to create and fill several html cards according to the return Json I have of a PHP file, I have Javascript that takes the Json array, my doubt is how to create several cards within this…
-
0
votes1
answer128
views -
0
votes0
answers70
viewsWhat does callback.call mean in jQuery?
I’ve searched everywhere but can’t find an exact definition. Follow my function and the snippet of my HTML where Dropdownlist is created: function carregaSubCategoria(valor) { $.ajax({ url:…
-
0
votes1
answer140
viewsdelete record in dynamic table with php ajax
I have the following dynamic table and I want to delete the records via AJAX/PHP but I am not able. I tried this way, passing the line id as the button id but it didn’t work...…
-
0
votes1
answer212
viewsHow to put an if inside the Javascript append
I made a javascript to assemble a card and fill with information from a json, I need to check if there is an image in the indexes of the json array so that if I don’t have it I can set a default…
-
0
votes1
answer410
viewsHow to make multiple HTTP requests inside a loop with JS
What I am trying to do is the following: I need to send a request in which an ID should be returned, as soon as I recover this ID triggers another request that finally registers the data on the…
-
0
votes1
answer119
views$. post does not work
I created a Javascript code to receive a JSON, but when the data arrives in the $.post the code stops being processed. I found that in php the JSON file is populated correctly before it is sent to…
-
0
votes1
answer423
viewsComplete form without giving Reload on page
I am trying to implement a page where the values of a table registered in a system database can be changed. When selecting the names of the people listed, I call the function ola through the…
-
0
votes0
answers27
viewsDWR - Null classes
Expensive I’m having trouble injecting the classes by calling some methods using DWR with Hibernate. Code: @Controller @Transactional public class ManterArvoreClassificacaoController { @Autowired…
java ajax framework dependency-injection instantiate-objectasked 6 years, 1 month ago Kennedy Anderson 90 -
0
votes1
answer88
viewsDoubt to take the name of an automatically generated php input field
I have a legacy system in php that generates the input radios, and the names of these fields are dynamic, such as the $Row object. And now I need to take the values of the radio fields and their…
-
0
votes0
answers77
viewsGet id via URL in JS sent by PHP
I have a code that plays an ID in HTML for a link: <a href="javascript:confirmacao(<?php echo $row['idfoto'] ?>)"> <i class="fas fa-trash"></i></a> Already in…
-
0
votes2
answers149
viewsJquery - Multi-line Viacep autocomplete
I’m using Viacep’s Webservice to do the street autocomplete on my registration form, but it’s a form where 20 lines, each line contains: ZIP CODE + STREET OF THE CONDOMINIUM when filling the zip…
-
0
votes0
answers441
viewsUncaught Typeerror: e.map is not a Function
I’m getting the following error, could help me ? Uncaught TypeError: e.map is not a function at t.setResources (scheduler.min.js:8) at scheduler.min.js:8 at scheduler.min.js:8 at cal-init.js:218 at…
-
0
votes1
answer211
viewsLaravel 5.7 - Ajax call and Session::get()
Some days I’m banging my head to read a dice Session through a ajax call. In an application without Framework I do this normally using the PHPSESSION, however in Laravel 5.7 I can’t do it at all. My…
-
0
votes0
answers55
viewsAjax request with PHP does not recognize scripts
I am creating a code, where I send a form with ajax and return the result obtained in a PHP(comment.php) file, but this file ignores the linked scripts on the page where the form is contained…
-
0
votes0
answers145
viewsNot stopping Ubmit with e.preventDefault();
I have this function below, but it’s not stopping at e.preventDefault();, it performs and performs the submit on the page. Go on like I’m doing: $('#ClienteEditar').submit(function (e) {…
-
0
votes1
answer51
viewsCommunication between PHP files with Ajax
Good morning, you guys. I’m starting with PHP, and I’m trying to do some practical tests. I created an input text and when pressing the "ENTER" key is called an ajax doing post of this data and…
-
0
votes1
answer497
viewsLogin with AJAX in PHP
I’m studying about mobile apps, hybrid apps, I’m using phonegap and I’m having a problem. I cannot log in, ajax sends the variables right and php returns a value but ajax is not capturing this value…
-
0
votes1
answer112
viewsHow to take the variable ID of a form in ajax
I need to know how to submit the form id, which varies according to the post ID, which would be something like myForm'. $id. ' to be able to treat each form itself. The form is sent through the…