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
answer79
viewsSort date on grid chronologically?
$.fn.dataTable.ext.search.push( function( settings, data, dataIndex ) { var min = $('#min-date').val() ? $('#min-date').val().split('/') : null; var max = $('#max-date').val() ?…
-
0
votes1
answer19
viewsSeriealize() Aajax with problem
I have several forms in an html, and I want to send with Ajax each form, I am using serialize(). But it’s not working out where I’m going wrong? <div class="resultado_<?php $i++; echo $i…
ajaxasked 6 years, 6 months ago Wagner Martins Bodyboard 698 -
0
votes1
answer51
viewsajax result in php session
I’m filtering a Cpf/cnpj through imput/datalist and checking the result with ajax. I intend to bring the result in 2 sessions php but I’m not getting it. The page containing the filter: <!doctype…
-
0
votes0
answers87
viewsDatepicker update dates according to return of an ajax
I want to display a calendar with only some dates enabled, I make an ajax request that returns me an array with the dates I want to enable, the function I have today is similar to this example here…
-
0
votes1
answer72
viewsProblem passing some Json messages to Jquery
Guys, I have a form that is passed to my PHP via Ajax in Jquery and returns the result via Json to my console. Follow a snippet of code in PHP. if($tabela == 'setup') { if(isset($_POST['nome'])){…
-
0
votes1
answer204
viewsProperty . length of json object returning number out of reality
I have a json array with two property objects, an id and an email, and it has only three ojets within that array, but the number returned from the length property is 152. Can someone help me?…
-
0
votes1
answer278
viewsAJAX request with different domain
my request url="http://algumip:algumaporta/dowPDFNF?cChave="+chave $.ajax({ url: url, dataType: 'jsonp', success: function (data) { console.log(JSON.stringify(data)); }, type: 'POST' }); error that…
-
0
votes1
answer306
viewsfunction is not defined
This code was working without showing me any errors. Then I put a setTimeOut, it keeps working, but gives a boring error in the browser log, saying that the function is not set. I must be putting…
-
0
votes1
answer99
viewsSend information without finalizing the form (Submit)
I have a form in html and I need to fill the fields and click on the "Next" button to send the form by email without the person noticing, because the form continues in the next steps... <div…
-
0
votes0
answers32
viewsCondition the selection of an ID
I have the following AJAX function: function exibeUltimaAula(){ let montaAula = { idUsuario: document.querySelector('#id').textContent, token: document.querySelector('#token').textContent, id:…
-
0
votes1
answer242
viewsProblems using getJSON to load Json from php page
The intection is to take the result of a select, assign in an array, and place its value in an html element. the value is listed and assigned to the array, however, I cannot insert it into my html…
-
0
votes1
answer966
viewsHow to capture radio input value of an object with ajax?
My doubt is as follows. I have a PHP code that creates card for each record you bring from the bank. I am not able to capture the value of the radio that was selected. I can capture only the value…
-
0
votes1
answer740
viewsHow to capture the return of an AJAX that is inside a function?
I have a screen where lists the Marks registered in the system, as soon as the user opens this screen, the list of brands should happen. I already have AJAX done and it was working, but I wanted to…
-
0
votes0
answers26
views -
0
votes0
answers38
viewspass value to php variable
I have this code: var $login = $("input[name='usuario']"); var dadosajax = { 'cod': elemento.value, 'login': $login.val(), }; pageurl = 'salvar_dados_usuarios.php'; $.ajax({ //url da pagina url:…
-
0
votes0
answers251
viewsCreate Bootstrap Paging Links using Ajax
$.ajax({ type: "POST", url: "php/crud.php", dataType: "json", data: {qtd_registros: 3, pagina: 1}, success:function(dados){ var paginacao = '<nav><ul class="pagination…
-
0
votes1
answer195
viewsHow to make a datatables data be clicked by calling another view?
Good afternoon guys. Follow the code of my view, which is working fine. It turns out that I would like to do the number of the process (2º <td>), be clickable by calling another view. It is…
-
0
votes0
answers122
viewsError AJAX Request - I cannot manipulate the return
I have the following AJAX request: function getJson(link) { var retorno; $.ajax({ type: "POST", url: link, dataType: "json", async: false, success: function (data) { alert(data); retorno = data; }…
-
0
votes1
answer37
views -
0
votes0
answers62
viewsHow do I update the result of a PHP page to each data stream?
I am a beginner in the subject, but I will try to explain in the best way what I intend to do. I would like to update my web page, every time there is a new database Insert. Below I will post my…
-
0
votes0
answers27
viewsTake value from only one variable
I’m having a little problem with my sales system. The system works as follows, when I press the button +, It adds the product to the cart, so far all right, however, it is taking the code of all the…
-
0
votes2
answers200
viewsNothing happens when calling . php file via Ajax call in pure Javascript
I am creating Mysql server persistence for a web application of mine. For this I am using the xampp and phpmyadmin. I created a database in phpMyAdmin and in my application, in a javascript I have…
-
0
votes2
answers247
viewsPost php only with all fields filled
My form is always being sent, even if there is nothing in the input, someone can give me a light? HTML: <form id="ajax" method="post"> <div class="form-group"> <input type="text"…
-
0
votes1
answer49
viewsAJAX function does not pass output to another function
I have this function in AJAX: function SalvarHorario() { //NomeHorario var nome = $("#Nome").val(); var token = $('input[name="__RequestVerificationToken"]').val(); var tokenadr =…
-
0
votes1
answer55
viewsRequest Ajax in Forms
I made an ajax request to send the data from a form to the server, the data is sent and stored perfectly. But when processing the Success creating the condition, should the return of result were the…
-
0
votes1
answer27
viewsSending form per table to the same page without refresh
I am having a small problem starting from the principle of sending form to the same page and displaying the parameters in a modal, however I can not catch them through the post, follows the code:…
-
0
votes1
answer1364
viewsHow to receive data in JSON (REST)
Hello, I am learning to program, I am in the 1 semester of development and I am being charged at work to learn how to do this, and I would like to know if what I did is right or not <!DOCTYPE…
-
0
votes2
answers66
viewsWhat’s wrong with this query?
Okay, I’m trying to select a database through ajax using jQuery. Below are excerpts of the code I’m using and more explanations: Ajax function function carregaRegistros(dia, mes, ano) { dia =…
-
0
votes0
answers112
viewsAjax requests
Speak guys, I have a form and in it a field where the user will be able to select a professional for the desired service, and when selecting such service I have to inform the available schedules,…
-
0
votes1
answer78
viewsShow data from one ajax function, in another ajax function
I have an ajax function that looks for the code of all companies and goes in the other ajax function looking for employees. So that the page does not stop when doing this search I am using the…
-
0
votes0
answers34
viewsEliminating equal data with a for
How do I eliminate in FOR the value that is coming in the result variable. For example if vim 8:00 expose only the hours without 8:00. function buscarHorarios(dataConsu) { medico =…
-
0
votes0
answers33
viewsAjax does not run on Chrome and IE
The code below does not run on IE and Chrome, error in xhttp.send(), but Mozilla works. What happens? <!DOCTYPE html> <html> <body> <div id="demo"> <h2>The…
-
0
votes1
answer232
viewsList Database result in checkbox with AJAX and Jquery
I have a function that searches the bank for an entity list and shows in select. However, I need this same list to be shown at checkbox where the user can check more than one option. How to show…
-
0
votes2
answers719
viewsHow to return ajax errors with jquery in Laravel 5.6
From what I read in the documentation, when using ajax, the answer is always returned in json, but I cannot receive the information to print. The message returned on the console is:…
-
0
votes1
answer135
viewsJavascript onClick event does not work with data-modal - Asp.Net Core MVC
I have a Datatable in my Index where the lines are loaded using Javascript. The Edit, Details, Delete and History buttons are created together. They all open in a modal window (the modal block is…
-
0
votes2
answers588
viewsHow to update <audio> html without having to refresh the entire page?
My web page should play a different audio every 1 minute, without refreshing the entire page. The audio can stay in a div, but it needs to be updated every 1 minute, but the way it is, the browser…
-
0
votes2
answers21
viewsHow to eliminate registration in a modal without closing?
Good afternoon! I make a request via AJAX to open a modal. I list a data set and have the option to delete the record from the table. The problem is that whenever I delete a record the page gives…
-
0
votes1
answer80
viewsMessage with Delay in Jquery
I have the following code: if(oper == 1) { $("#op" + iddoc).html("<input type='button' onClick='AddExcDocCPS(\"" + idcontrato + "\", \"" + iddoc + "\", 0)' value='Excluir'…
-
0
votes1
answer375
viewsConvert PHP functions to Javascript
I need to convert some functions in PHP to JS, because I will need to put all these functions inside a file . js. I currently have the following in PHP: $basicoUS_mensal=processaValor("url_aqui");…
-
0
votes1
answer66
viewsDifficulty with Ajax Jsonp
I’m trying to consume an api through Ajax, but I get error while running it. var data2 = { resource_id: '1d7e45e5-b159-46a2-bdce-90393c7a8a2b', // the resource id limit: 5, // get 5 results q:…
-
0
votes0
answers187
viewsProblem with mobile-only Ajax request
I have a code Ajax that takes the data from a simple message field and sends it to my database without the page being updated, only the problem is that everything works perfectly only by computer,…
-
0
votes1
answer104
viewsAjax does not enter Success
And I’m having a hard time in Ajax. I have the following: beforeSend: function () { $("#btnEvniar") .prop('disabled', true) .click(JaClicouProc(3,this)); }, success: function (resultado) {…
ajaxasked 6 years, 5 months ago Reculos Gerbi Neto 134 -
0
votes0
answers141
viewsRequest problem $.ajax - Receive HTML table
I’m not getting to mount the modal getting a table using the $.ajax. Does anyone have any tips? I’m sending him this way: JS file: $("html").on('click', "#modalHorariosQuadra", function(){ var…
-
0
votes1
answer78
viewsSafari sends $_FILE as empty (NULL) via Ajax
I have an image upload script that works normally with Chrome, EDGE, Firefox and Opera. But it doesn’t work with Safari. The Safari browser opens the windows window for me to choose an image. When…
-
0
votes0
answers27
viewsParameters with Ajax
hello, I’m trying to go through parameters with variables information of two Dropdown fields, but I’m not able to use two variables, when I use only one with you normally. following example:…
-
0
votes1
answer45
views -
0
votes1
answer223
viewsLoad select via ajax
I am trying to load a select via ajax, following as I am doing: HTML: <select id="cbplanos" class="form-control"></select> Controller Code: public async Task<IActionResult> Load()…
-
0
votes1
answer145
viewsLoad input text after select
I have a select that is being populated via ajax, when opening the modal, I call the function that loads the select, and it is working perfectly. But I need a cascade effect, in the first field, and…
-
0
votes0
answers138
viewsSend Email with Ruby
Good night! The scenario I find myself in is this:: I have a canvas that presents an already completed form. At the bottom of the screen, there is a button to send the link from form by email. And…
-
0
votes0
answers23
viewsJQUERY object with dynamic string
I have a for() that adds some elements in the div#chat_box according to the JSON returned in an AJAX. Only that I would like to see how many data-Identity elements equal to those returned in JSON…