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
answer22
viewsView gallery on demand
I have a PHP code that searches images in subfolders, but I would like to do it with that it was loaded slowly because they are many photos, I tried in ways understand AJAX, but I was not…
-
0
votes1
answer15
viewsError printing Owner.screenname and Owner.url (Dailymotion Data API) property value
When running GET for PLAYLIST and VIDEO resources, I had a problem. When running GET on my console, the request correctly returns the values of the Owner.screenname and Owner.url attributes;…
-
0
votes1
answer53
viewsError sending parameter to a PHP server using AJAX (No Jquery)
Hello, I’m trying to pass a simple parameter to a PHP server using AJAX and I’m not getting this parameter in PHP. The error returned is that the index "parameter" of the GET method is not defined.…
-
0
votes1
answer130
viewsHow to bring an array via ajax and place results in a select
Hello, I am trying to bring an array via ajax and play the result in a select, I can make a query via ajax where each client I select in a select it makes the query via ajax and returns the services…
-
0
votes2
answers53
viewsSaving the value of the label on the bank with javascritp
Personal I have this input that brings the total value of the purchase and I have this script that changes the value of the input according to the type of delivery, IE, if it is delivery, show total…
-
0
votes1
answer57
views -
0
votes1
answer55
viewsHow to update a helper function with ajax
Hello, I need help that gave a knot in the head, I am working with codeigniter, I have created three functions in my helper consulting the database, and I display a result in Divs with the amounts…
-
0
votes1
answer31
viewsPick id dynamic value - Jquery
I am using PHP with AJAX. I need to take a multiple Forms id and run a function in AJAX. I am passing the ids of the Forms like this : <form id="formItem<?= $idItem ?>"> However, in…
-
0
votes0
answers27
viewsHow to cascade a multiselect list based on selecting a Dropbox with Asp.net core Razor
I need help to create a dynamic control. I’m a beginner so... Problem: The page has a selectlist which shows the records of the Jobs table returning the Jobid in the post. I need to capture the id…
-
0
votes1
answer68
viewsHow to make a request... Xmlhttprequest with array
following code: let info = new Array() info[0] = 'index.php' info[1] = 'portifolio.php' info[2] = 'nn' let url = ['https://xraros.000webhostapp.com/'] let proxy =…
-
0
votes1
answer628
viewsLog out after 5 minutes of inactivity
Hello, I am lost in this logic, I am using codeigniter, and I am trying to expire the session after 5 minutes of inactive (in case the user does not access the page for up to 5 minutes), I tidied up…
-
0
votes1
answer106
viewsHow to remove double quotes from a JS array
Lately I’ve been trying to use a Highcharts chart but I’ve been facing a problem, where I pass the value for graph generation does not accept "", and my array I capture from php is mounted with ""…
-
0
votes1
answer415
viewsSend form without refresh and bring results to the same page
I need to submit a POST form to make a query on a PHP page (dashboard.php) and return the results of that query, on that same page of the form (refresheless), how could you do? I imagine I’ll have…
-
0
votes0
answers20
viewspushState and popState, poor performance
I am wearing it. load() to have asynchronous requests, but I realized that when I click on the arrows to go and come back nothing happened, I decided to search further and discovered the History API…
-
0
votes1
answer126
viewsHow to Send Data from localStorage via AJAX to PHP and save them to an HTML file
I want to send the data saved in Localstorage with PHP to a file or to a database not necessarily need to be PHP code need some solution for this <h2>Likes</h2> <p…
-
0
votes2
answers29
viewsHow to return the status "success" and other items in array in wordpress in admin-ajax.php
How to return an array in ajax wordpress: javascript $(document).on("click", "[data-show-home-list-series]", function () { var id = $(this).attr("data-show-home-list-series");…
-
0
votes0
answers24
viewsSend file together with data in AJAX
Hello, I want to send a file in the form, along with other inputs via AJAX, so there is no refresh on the page. However, when sending the form, nor the file, as the data is coming in MYSQL, just…
-
0
votes0
answers40
viewsProblems serializing a form and making a Viewmodel Post using Ajax - Asp.net Core MVC
I’m making a Submit using AJAX, but I’m having problems because it’s giving error 404 and I’ve tried to do several ways to use JSON.stringfy, use [Frombody] in the controller action, etc. Can anyone…
-
0
votes0
answers13
viewsMultiple forms ajax(jquery) request running only 6 times
I am trying to send multiple forms with ajax and jquery but it is sending only 6 forms. Here is the code Jquery: $('form').each(function(){ var values = $(this).serialize(); $.ajax({…
-
0
votes2
answers38
viewsFind an input value within an AJAX loop
I confess that I have been for a while in this small challenge, I am developing the cart part in my Ecommerce. The goal is to display a message, the user click on "Add to cart" of a particular…
-
0
votes1
answer13
viewsHow do I put a password exchange method in my login system using ajax?
My login system was done as follows: On the home page of my website, we have: insira o código aqui`<div class="tab-1 resp-tab-content" aria-labelledby="tab_item-0"> <div class="facts">…
-
0
votes2
answers44
viewsPHP repeating commands
Hey, guys, all right? I’m having a problem that I can’t find the solution to, I’ve already done some research, but nothing a few days ago I created a question here, about how to run only 1x when…
-
0
votes1
answer23
viewsSending of ajax function variables
I have an Ajax function, which when taking the focus of the discount field, it checks in the database and brings me an array of results via json, and with this result I check if the discount is…
-
0
votes0
answers15
viewsSend php date via ajax and jQuery
I’m trying to send two variables to a php file. I tried it first with a variable, and it was working. When I put in the second variable, it stopped working. Javascript function: function mensagem()…
-
0
votes0
answers9
viewsmediaElement does not work on jlPlayer
hello I’m using the using the jlPlayer and I have this video code: <video preload="none" class="jlplayer-video" id="MY_VIDEO_1" onended="refresh()"> <!-- <track kind="captions"…
-
0
votes1
answer50
viewsCheck products with ajax and php for sales page
I’m trying to create a small sales system for a local store and I’m having trouble on the sales page, I was trying to learn how to use ajax to query product data in the mysql database of xampp and…
-
0
votes2
answers75
viewsInsert line break in an AJAX response
I’m developing a system for teaching purposes, but I can’t do a simple line break. The System is basically a filling of some inputs, where when clicking a button it reads these fields and assembles…
-
0
votes1
answer27
viewsSend ajax requests one by one
I’m sending an email to a list of say 100 people, process this sending via Ajax, the normal is the ajax send to a page and in Success or error of it, it gives me the return what occurred, until then…
-
0
votes0
answers17
viewsPush X Ajax X Reload
Today I use this function to update data from a page without having to fully reload it function fDashboardProgressao(tempo) { $.ajax({ type: "GET", dataType: "json", url:…
-
0
votes0
answers17
viewsProblems with Chartjs
Hello, good morning!!! I’m creating a graph that pulls data from a database and shows it on the screen, with php, mysql, ajax, Chartjs and jQuery. When I use only one dataset, everything works fine,…
-
0
votes1
answer28
viewsCalling an ajax inside the sucess of another ajax contained in the first ajax
At the click of a class button cantor is returned the singer’s name and buttons with class musica with their respective song names (data). By clicking a class button musica is returned to the lyrics…
-
0
votes1
answer40
viewsExecute query by pressing a button and send to modal
I have the following code where I want to click a button, and in doing so run a Query and display the results in a Modal Therefore, the button: <a class="btn-sm btn-success view_data"…
-
0
votes0
answers81
viewsError 500 when submitting a form with validation in ajax and fortify Aravel
I am trying to create a simple registration form in fortify Aravel and using validation with ajax. The form when it is submitted inserts the values into the database as intended, but ends up not…
-
0
votes0
answers16
viewsUndefined index error
Can anyone see where the error is in this shipment? I can not understand why report that does not find the field, including the console shows that the information is being recovered in JQUERY/AJAX…
-
0
votes1
answer26
viewsI would like to understand how by a check js to confirm Butão
` Confirmations <div class="card-tools"> <button type="button" class="btn btn-tool" data-card-widget="collapse"> <i class="fas fa-minus"></i> </button> </div>…
-
0
votes0
answers12
viewsHow to make partial submission through a dialog called in the datatable?
Hello, I have a datatable of the first faces that shows registered patients. In this datatable, I have a button that leads to a screen to inform the patient’s blood type (blood type and RH factor…
-
0
votes1
answer301
viewsInvalid or Unexpected token
When trying to execute the code below fetch(`https://mktp.oversystem.com.br:8443/MKTPlace2/rest/sinistrosZurich`, { method: "GET", header: { "Access-token": "aC0009E000081007F400dF210",…
-
0
votes0
answers25
viewsSending files via ajax to Webmethod
Good afternoon! I’m trying to send files via ajax for a WebMethod in c#, but I keep getting back my whole html page Javascript //Upload de arquivos $('#upload').change(function () { var fileUpload =…
-
0
votes1
answer74
viewsI’m trying to understand these codes, but it’s not making sense to me. Can anyone help me? I’m a beginner
The idea is that the Javascript code communicates with the Python code calling a function and providing arguments, but exactly how it works does not understand very well. Javascript code: set_wheels…
-
0
votes0
answers26
viewsdo the Switch with windows print and only print footer
windows print only sends the end of the screen I can’t understand why Proof of Registration Simplified Selection Process of Health Notice - 01/2021 Date: 2021-02-01 15:26:18 <hr> <div…
-
0
votes0
answers24
viewsChanging TD Data from a Table
Hello. I have a table where td has an ID with the Cod of a product, for example: How can I get this ID and change the info without updating the page? I’m using Ajax to do the database searches, and…
-
0
votes1
answer92
viewsHow do I use Ajax to send form data in JSON format to REST API in PHP?
I need to send data from a form in JSON format to insert into the database through an API made with PHP. I researched a little and saw that it is possible to solve with Ajax but I am not getting.…
-
0
votes1
answer36
viewsError using . length in AJAX response
I have the following ajax. var ajax = new XMLHttpRequest(); ajax.open("GET", 'http://localhost/erp/api/v1/itens.php'); ajax.responseType = "json"; ajax.send();…
-
0
votes0
answers42
viewsSend an Ajax form without updating the page, just open a modal on the screen
Hello, I have a form that uses Phpmailer to send the data, but whenever I send it changes the page going to a white screen, I wanted instead to go to this white screen only open a modal on the…
-
0
votes0
answers38
viewsAjax does not recognize new values returned
I am using the following function to change the status of the Active to Inactive registration and vice versa, the first click works perfectly, but when the data is returned to the button the code…
-
0
votes0
answers30
viewsHow to pick variables with repeated names in the ajax method
Come on, I have an AJAX method that takes values from a form and saves them in the session. There are several forms with the same fields, they are generated automatically according to a database, so…
-
0
votes1
answer23
viewsHow to get information from an option with Jquery/Javascript
This select is an ajax, which I then receive and put into a modal. I needed to pass some values by select and then use them in addAtributo function activated by a button click <select…
-
0
votes0
answers47
viewsI cannot return the response of a post request with Xios from a function passed to child component
I’m using the Google Translation Api, basically the function makes a request for their Api sending as parameters "q" (the text that needs to be translated) and "target" (a string containing the iso…
-
0
votes2
answers61
viewsPOST via AJAX is safe?
I’m studying a little bit about web programming, and trying to create a virtual store to train, but some things are still not very clear to me. I am trying to assemble the part of user registration/…
-
0
votes1
answer29
viewsSend JS variable value to PHP
So, I have a table where I display the database data. On each row there is a button where I added an event onClick , which calls a JS function and opens a modal. In this function, it passes the…