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
-
-2
votes1
answer70
viewsAjax does not send data to PHP
I have the following code in Ajax: <script> $('#enviar').click(function() { let dados let filtros = document.getElementsByName('filtro[]'); let filtrosvalidos = [];…
-
-2
votes1
answer55
viewsTake json array in ajax
Good afternoon, I have a problem to display the result in the json, I do an Insert of an array in the database with for, it inserts perfect in the database, but I’m not able to display the…
-
-2
votes1
answer81
viewsModal with Ajax PHP
Hello! I am working with MVC structure and routes and I am trying to open a modal with data from a record to be able to update. For this I created a function in js and put in the update link. This…
-
-2
votes1
answer43
viewsHow to make a raise notification using ajax + php?
I’m just trying to increase the notification of an item. I want every time I add a new item to my cart, I have to see the cart notification increase number. in the javascript console I see that it…
-
-2
votes1
answer185
viewsRefresh table without refreshing page
Good night. I have the following table in my ORDER panel: I am trying to put a function to update only the Status every 5 seconds. I’ve seen several examples on the Internet and I was able to make…
-
-2
votes1
answer428
viewsHow to call a controller method via JS or Ajax in Windows
I’m new with PHP and Laravel, besides I don’t know much about JS. I have the following question, I have a view that displays the information of the service provider of my project, before this guy is…
-
-2
votes1
answer33
viewsSelection-based field options update with Laravel
From of this article I found an interesting way to create dynamic checkboxes. I was able to adapt it to my case by adding to/web.php routes Route::post('select-ajax',…
php ajax laravel laravel-eloquent html-selectasked 3 years, 8 months ago Tiago Martins Peres 李大仁 236 -
-2
votes0
answers21
viewsHow to upload with Jquery - Ajax - Webservice
Good afternoon guys, I’m having a hard time uploading a file to the server. I have tested locally and managed to accomplish successfully both on my machine running by the project and on the server…
-
-2
votes0
answers24
viewsAJAX Datatable - Handle Return
Hello, [I edited my question] How to handle server variables returned via Datatable and Ajax? In the stretch "defaultContent" i need to pass the values of the variables: id_usuario and id_toast that…
-
-2
votes1
answer30
viewsLogin PHP + COOKIE + AJAX
after more than 20 years without programming in PHP, I decided to make a "system" of scheduling clients for my girlfriend. But I am going through a problem that is leaving me with more gray hair.…
-
-2
votes0
answers27
viewsAdd another PHP dynamic field
I am creating a form for the internal registration of telephone sales. Each sale can have more than 1 phone line included, depending on what the customer wants. Telephone options vary according to…
-
-3
votes2
answers79
viewsI’m not being able to assign values to variables
I am trying to assign values to some variables and am not succeeding, in calling a step function a parameter which I am receiving correctly, but try to pass this and another value as parameters I…
-
-3
votes1
answer1196
viewsUpdate button data of a query without refresh on the page
I am creating an application in PHP (Codeigniter) and I came across the following situation. I have a table on my page that brings all the results of a query in the database. I want to create a…
-
-3
votes1
answer368
viewsError using JSON with datatable
I’m trying to implement my json using the tool datatable, follows my json: [ {"Nome":"Felipe","Data":null,"Tipo":"Normal","RG":"123456798"},…
-
-3
votes1
answer50
viewsHow to send an email without finalizing the form
I wanted to know if there’s any way I can fire an email without calling my form’s action, because it has 4 steps, and in the process from step 1 to step 2 I want to email the fields that have been…
-
-3
votes1
answer73
viewsMy form is giving much problem with the part of the register
My site has the login forms, the registration form and the "Recover my password", next to each other, I want to connect the registration form with my database, the login I have already managed, but…
-
-3
votes1
answer1201
viewsupdate list field without refresh ajax
I have the following jsp list where I just want to increment the value of the quantity field without refreshing the page. The way I did, it works, but updates the page. So I searched, it would have…
-
-3
votes1
answer281
viewsUpdate a PHP variable inside Javascript in a time interval
We have a postgresql query within a javascript function which is as follows: function valor(){ <?php $con_string = "host='ip' port=numero dbname='banco' user='usuario' password='***'"; $conn =…
-
-3
votes1
answer221
viewsHow to send multiple files via AJAX and store them in the database?
I have a form in which I can send a single file, by a file field, and store it in the database. However, I need to be able to send more than one file through the form and store them in the database.…
-
-3
votes3
answers89
viewsAJAX error, does not send the data
I do not understand yet why it does not send via POST the data in AJAX, goes straight to error, and opens the Modal saying that there was the error and quickly directs to the page, even this modal…
ajaxasked 4 years, 7 months ago Luccas Alves Gaulia 26 -
-3
votes1
answer45
viewsRetrieve specific part of a javascript object in an AJAX function
I need to retrieve an object attribute by AJAX in a $.each(), and pass it in src of an img tag. AJAX function: $.ajax({ type: 'GET', url: `user/album/recommended/`, context: 'json', success:…
-
-3
votes1
answer95
viewsAPI query blocked by CORS
Expensive, I am calling an API, but it is being blocked by CORS. I have installed an extension in my browser that enables and disables CORS. When enabled the API returns the expected data, but when…
-
-3
votes1
answer59
viewsPagination with ajax and php
People help me please I already looked everything and researched about it but nothing worked i have a table with id, name, phone and display this table through the Ajax request because I use a…
-
-3
votes1
answer64
viewsHow to Store Data from this Code?
/It is to take the data that are appearing there example when you click on the button appears the time and amount of clicks I want to take these two information and store anywhere that of to store…
-
-3
votes1
answer58
viewsAJAX AND XHR FALIED REQUEST PROBLEM
I have an application on Node.js in an Ubuntu VPS 18.4, but when trying to make a login request for testing, I get a Google Chrome error; "net::ERR_CONNECTION_REFUSED". He tells me he had some…
-
-3
votes1
answer43
viewsHow to check if the return Ajax is empty
I’m trying to verify a Json feedback for a decision-making, but I’m not getting it, I have it: if (sender.getFieldName() == 'IdUsuarioIntranet') { var MatriculaPessoa = sender.getValue();…
ajaxasked 3 years, 9 months ago adventistapr 5,498 -
-3
votes0
answers27
viewsSELECT2 is not returning pre-selected item value
When changing a Select2 option, it is returning all the data correctly, but when I go back to the previous option (which was already selected), it is not searching the values correctly. Exemplifying…
-
-3
votes1
answer35
viewsdata return with Jquery (AJAX) and PHP
I’m trying to learn AJAX and I’m beating head here I want to return the data via AJAX and display, but my code is not returning anything const caixabusca = $("#caixabusca"); const form =…
-
-3
votes1
answer33
viewsassync does not work in ajax
I’m trying to use async to return the amount the bank will bring, but it’s not working async function emailExi(email){ const teste = await $.ajax({ url: "../banco/emailexi.php", method: "POST",…
-
-3
votes1
answer47
viewsHow to return data from a Jason, within PHP, via Jquery?
I’m having trouble returning information via Ajax. It has to show the results in a alert(). The problem is that I am trying to return this data from a PHP file that creates a array() and then use…
-
-3
votes1
answer20
viewsSend more than one checkbox value using Jquery.Multiselect
I was able to send the values of a checkbox to the controller using the function below: function InformacoesAdicionais() { var listOfRegiao = []; $.each($("#select-regiao option:selected"), function…
-
-4
votes2
answers367
viewsHow do I use a CSS from the site url?
I wonder if there’s a way I can use a different CSS for a "Java" web system without having to include it in the source code? I have a new CSS file that I resized the buttons and spaces and I need to…
-
-4
votes2
answers205
viewsWhy does my ajax only work when you want?
I have a page that is mixing HTML with php that when I click the button submit, Javascript is triggered, takes all the information and calls a function that activates an ajax to call a php file. It…
-
-4
votes1
answer41
viewsPermission for PHP file using AJAX
I have a system that makes POST requests for. php files on the server by AJAX and they return me database data to work on JS. All. php files are in the same folder on the server. I would like to…
-
-4
votes1
answer64
viewsKeep testing until a variable is created in php
I am sending an ajax to a table, but this table can only be created after receiving the value, but it is being created before in white, as I can make a check for the table to be generated only after…
-
-4
votes2
answers387
viewsSave atomatic in PHP does not work with Success and serialization
A code that performs the autosave of data on a form works so: autosave.php <?php require_once '../multiinjet/web/includes/configuracao.php'; try { /*Pegar valores postados no formulário*/…
-
-4
votes1
answer153
viewsinsert data with ajax and switch in php
I have a php script that I use GET to take a parameter from url and move on to a php switch and perform a certain function. That one script works perfectly without errors but how to use it with…
-
-4
votes1
answer327
viewsCall AJAX / jquery in the middle of PHP code
I have a PHP code structure and, within it, I want to automatically call a $.get AJAX for another PHP page. Example: <?php $cod = 1; $mod = 2; $text = 3; como chamar um ajax automaticamente aqui,…
-
-4
votes1
answer56
viewsAssign ajax query to a variable
$(document).ready(function(){ $('#tabela').empty(); //Limpando a tabela $.ajax({ type:'post', //Definimos o método HTTP usado dataType: 'json', //Definimos o tipo de retorno url:…
-
-4
votes3
answers131
viewsMake a request on the server with 2 parameters
Well, I’m making a person use a "range" and decide a value, as soon as the person modifies the range, a search is being done in the database about a game and its value, use ajax with php for this,…
-
-4
votes2
answers696
viewsHow to upload the contents of a variable to the backend using javascript fetch?
I can’t replace ajax with fetch I’m taking all libraries out of my code, and I’m trying to make the most of the resources pure javascript offers, like fetch. However, I am not able to make a request…
php javascript ajax fetch internal-server-errorasked 4 years, 8 months ago Matheus Ricardo Brunelli 1 -
-4
votes1
answer48
viewsPerform a PHP filter search on multiple tables
I need to do a search with filters for example SPECIALTY > CITY and then show search result follows my code: <?php if ($specialty != null && $city != null) { ?> <?php…
-
-4
votes1
answer84
viewspass a Java script variable to php
Hello I have a Od in js that takes id of a field and with this id(value) I need to use in if Else within php to display posts related that id as the user click down the Cod that picks up the id…
-
-5
votes1
answer679
viewsHow to check if the login exists in the bank by ajax?
I made a login system with ajax and php in it I pass the login and the password that are in the database but I wanted to know what is wrong with my code because whenever I try to log into the site…
-
-5
votes1
answer331
viewsAjax Undefined index
Hello, could someone please help me? I have been to several websites trying to solve this problem. The js code works perfectly, and the $("#links").load( "buscas.php" ); loads, but the PHP code…
-
-6
votes1
answer107
viewsConsult in two tables simultaneously with two different parameters
Hello, good night! I’m creating a schedule of events by time, in different locations. So I need that, even before scheduling the event, show which venues are available, after the available venues, I…
-
-6
votes2
answers415
viewsSearch in the database with select
I am developing a website to display registered videos, for this I did with a select to select the desired discipline of the user. Soon after I put a button to display these registered videos…