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
votes2
answers814
viewsLoad jQuery Multiselect options via Ajax
Talk, you guys, baby? I’m having a hard time. I have a modal, and wanted when making a select change, to press via ajax, to feed a jQuery multiselect. In a console.log I can see the output of…
-
0
votes0
answers46
viewsPick up data via POST
Hello, I need help to continue a project, I believe that for people who already have an advanced knowledge is something very simple, but as I am layman is very complex. I have an index page where…
-
0
votes1
answer48
viewsHow do I insert a new row between two other rows of a table with jquery?
Good morning! I have a page with a table, which is generated by the database. I need to insert a new row through a button, however, I’m having difficulty inserting this new row enters two other rows…
-
0
votes2
answers35
viewsPass Form + Variable by AJAX
People I’m trying to pass my FORM + the OFFSET variable, but I’m not getting it.. Can someone give me an example? $("#btn-pass").click(function() { offset = offset + 5; pagina++; var data =…
ajaxasked 5 years, 4 months ago Marcos Vinicius Leão 273 -
0
votes2
answers243
viewsProblem with accents and special characters, called Ajax
I have a function that makes an ajax call, and sends the data to be saved in the database, the problem is that whenever you save a word that has some special character or accent, it does not encode…
-
0
votes1
answer122
viewsHow to copy the contents of one <td> to another <td> in another table row?
Hello, I have a question.I have a table in which each row has a button that inserts a new row just below, but I would like to upload some information from the line above to the newly created row,…
-
0
votes1
answer31
viewsOptgroup JSON + JS
I am trying to group the result of a json into 2 optgroups. Follows the JS: //AJAX CARREGA LOJAS $(function(){ $('#estado').change(function(){ if( $(this).val() ) { //$('#lojas').hide();…
-
0
votes1
answer58
viewsProblem with catching javascript page size
My script works normal, when it arrives at the end of the main page it calls another in which it will return a text, adding a text at the end of the main page. The problem is q, after adding the…
-
0
votes1
answer161
viewsPass array parameter by HTTPGET in ajax to Actionresult
Hello. I have an Ajax Httpget function that would need to take an array to an Actionresult. How do I do this? $.ajax({ url: 'AtualizarTabelaDeRelatorio', data: { arrayDeInstalacao:…
-
0
votes2
answers118
viewsCreate data loop received by post and insert into mysql
good morning. I’m trying to make a shopping ordering system. I would like to know how to receive $_POST values and send them to a bank. The problem is that this $_POST information is dynamic. I…
-
0
votes1
answer254
viewsTake data from a dynamic table and save to mysql
good night. I haven’t programmed in a long time! I’m rusty, rsrs I need help. I’m making a system to control budgets. my problem is that I need to take this product information and play in a mysql…
-
0
votes1
answer31
viewsError with jquery array syntax
I didn’t put all the code to not pollute the text and the doubt is about the syntax below: I have 2 table html (tblPerguntas e tblRespostas) e preciso percorrer estas duas Tables e enviar para a…
-
0
votes1
answer181
viewsPass Javascript variable to Global Scope variable in PHP
How do I pass a Javascript/Jquery variable to a Global Scope variable in PHP? recently I needed a global scope variable in PHP to receive a javascript value, this variable would be used later on…
-
0
votes1
answer1590
viewsERROR: POST.... 500 (Internal Server Error) - LARAVEL and AJAX
I am facing a problem when returning a View to another View using Ajax. I am presented with the following error on the Google Chrome console: jquery.min.js:2 POST http://localhost:8000/tbody 500…
-
0
votes1
answer82
viewsShow Ajax request progress before completion (redo)
I have the code below, in which I get an ajax query for a file .php. The problem is that this way, I can only return at the end of the process, with the method success:, but I need to inform the…
-
0
votes1
answer88
viewsWhy does my Ajax return an HTML code instead of just returning the value? Codeigniter
Good morning Everybody, everything’s fine? I have been days trying to return a value from my view to my controller using codeigniter. But I don’t want refresh to happen on the page. So decide to use…
-
0
votes1
answer183
viewsMy ajax in safari browser does not work
well, it enters the requisicao, returns the data correctly, but the moment I use the . appendchild it does not fill... OBS: in Chrome it works...... and on the console it gives the following error:…
-
0
votes1
answer1001
viewsKeep updating select in the page div without refresh mysql php
Good afternoon, I have a div that I do a simple select bringing only the amount of database records, and I play the result on an H3 inside that div, all I need is for that div to be automatically…
-
0
votes1
answer798
viewsHow to read values from an html table with js
I have a table tbLista html with some values filled and wanted to read it by JS, my Js code is of the second way: var rowIndex = -1; var beneficiarios = []; $(document).ready(function () {…
-
0
votes1
answer146
viewsAjax request with data from another Ajax
I have an Ajax. that seeks information from receitaws this ajax brings the address and tbm the zip code. And I have another Ajax, who relays address information, through the zip code, one in…
-
0
votes1
answer378
viewsHow to pass javascript values to C#
I have a Client class, where a customer can have several benefits as you can see in the last property. public class Cliente { /// <summary> /// Id /// </summary> public long Id { get;…
-
0
votes1
answer1403
viewsRefresh without losing data, is it possible?
The code below allows the user to enter a comment that is returned by the ajax callback to the same page. There is a way via javascript or php that to upgrade the page the inserted comments are not…
-
0
votes1
answer54
viewsSend button id by ajax to update database
Good night, you guys, I’m a beginner in the area, and I ask you to help me, I have a table with php database results, in one of the fields has a button that stores the id (primary key) and clicking…
-
0
votes1
answer66
viewsConsulting input data in the database - ASP + SQL
Good guys, I’m more than a beginner in ASP and JS and I’m hitting here to do something that should be simple. I have an input which will be filled with a value "xxAMSxxxx/xx" and needed to validate…
-
0
votes1
answer58
viewsFunctions with ajax
I use this code to work with ajax. It works perfectly. However it is a fixed code, but I would like to put ALL the codes I do via ajax and put in a single file and then call via functions. Example:…
-
0
votes0
answers44
viewsTake form <option> values from ajax
I’m generating the selects form by PHP from the database, thus: $sql = "SELECT atributos.id AS id_atributos, atributos.nome AS nome_atributos, atributos.id_produto AS id_produto_atributos,…
-
0
votes0
answers201
viewsValidate Cpf with ajax puchando from mysql
Guys I’m trying to validate a Cpf with ajax I look for Cpf in the bank to see if it already exists it gives an alert and does not submit the form if there is no it has to submit, but in my case it…
-
0
votes0
answers224
viewsPopular selects with php, jquery and mysql
Good afternoon, colleagues I am with a doubt that for a long time I have been trying to solve and I can not get that is popular 4 selects using php, mysql, ajax and jquery. Searching for answers on…
-
0
votes0
answers21
viewsSelect Loading without AJAX data
I have ajax, which is coming with the blank data, as you can see in the images below, this arriving the data, except that at the time of loading in select, the value, and text, are empty…
ajaxasked 5 years, 2 months ago Rafael Passos 527 -
0
votes0
answers68
viewsSending email by button
At the stage I need to maintain and develop the system they use, however, I am the only one in the IT sector and I do not have information exchange, as well. This function below when changing a…
-
0
votes0
answers32
viewsEncrypt data between Controller Asp.Net Mvc and Jquery Ajax
I communicate between Back and Front End with Ajax, but I don’t know how to encrypt the data transported, this is a method of my controller that returns a Json I call through the Ajax: [HttpGet]…
-
0
votes1
answer45
viewsList Null Post Ajax Asp.NET MVC 5
I’m trying to post a LIST via ajax, only the controller is always getting null. Requisition code: var Componentes = [{ Nome: "Teste1" }, {Nome: "Teste2"}]; $.ajax({ type: "post", url:…
-
0
votes2
answers41
viewsHow to make an AJAX call through the post
Hello I have a field on the site called search service, and would like to make an ajax call to redirect to another page. <li> <form class="navbar-form full-width"> <div…
-
0
votes0
answers21
viewserror in ajax request
Dear friends, good morning! I have a mistake I can’t fix, log on: index.html:1 Access to XMLHttpRequest at 'http://meusite.com/testmail.php' from origin 'null' has been blocked by CORS policy: No…
-
0
votes1
answer1578
viewsHow to resolve CORB even by adding Access-Control-Allow-Origin
I added the instruction header('Access-Control-Allow-Origin: *'); in my php, but I keep seeing the error jquery.min.js:2 Cross-Origin Read Blocking (CORB) blocked cross-origin sponse…
-
0
votes0
answers92
viewsPHP and Ajax: Remove quotation marks from ajax
The result is coming with quotes and do not know how to remove. In PHP: if ($finalImage) { echo json_encode(sucesso); exit; } if (!$finalImage) { echo json_encode('erro'); exit; } In ajax: success:…
-
0
votes2
answers141
viewsOnfocus function in Select2 input
I have a form where each field has a save action, is a "form". For this, each time I select a field, a save and cancel button appears to it. Meanwhile, with a field select2, these buttons do not…
-
0
votes1
answer49
viewsI need to stop an AJAX processing and later redirect the page
Hello, I have the following problem: I upload my homepage, and on this page is brought a select in the very heavy bd, so I made the page load, and then made an AJAX request to bring and display that…
-
0
votes2
answers102
viewsAjax POST using a variable and an object
Hello, I’m having trouble sending a POST, using Ajax, only that the content has to be in this format: name: 'Nome Candidato', contents = { 'email': '[email protected], 'formacao': 'superior…
-
0
votes1
answer98
viewsConfirmation butao and only after ajax sends the request
I am using jquerry-confirm before deleting a BD record. To delete the record I am using ajax. My problem is that when I click the delete button appears the confirmation message, and before I even…
-
0
votes1
answer2839
viewsAjax request with Node.js and express
I’m completely new working with nodejs, I’ve seen some questions similar to mine but I couldn’t, and I didn’t understand straight would have as someone give me a help? In case I am trying to send an…
-
0
votes1
answer236
viewsSort via javascript function
I have this function, in various parts of my code, that performs the filter of what was selected and as it was typed. function myFunction() { var input, filter, table, tr, td, i, filtro; input =…
-
0
votes1
answer20
viewsError with prechimento and Submit of fields via ajax
$('#grupo_prod').blur(function(){ var grupo = $('#grupo_prod').val(); var filial = $('#filialAtual').val(); $.ajax({ method: "POST", url: base_url+"pdv2/selecionarProduto/", dataType: "html", data:…
-
0
votes1
answer460
viewsDefine attributes in columns <td> in html table, with javascript
I have the following code below that receives some data via ajax and assigns the received values in a table that is defined with the "Datatable". I’d like to know how I set attribute to my "td" tags…
-
0
votes1
answer80
viewsAJAX files post returning null
I have following HTML: <meta name="csrf-token" content="{{ csrf_token() }}" /> <form action="{{route('clinic.picture.add.ajax')}}" method="post" enctype="multipart/form-data"…
-
0
votes1
answer49
viewsSimplify Date Request via json
can I return the value of a variable outside the block "in case it would be the variables serverTime and off", say so I can use in another function or in my html code. var xmlhttp = new…
-
0
votes1
answer705
viewsUncaught Referenceerror: das is not defined at Htmlanchorelement.onclick
I’m having a problem with a function call. A table shows the information of a client, and when clicking it should call a function that would show an Alert on the screen with the client’s CPF.…
-
0
votes2
answers749
viewsDoes anyone know the possible cause of the "Uncaught Error: Syntax error, unrecognized Expression" error?
I have a code in jQuery that I hold an event when I click a certain button. The problem is that when this event runs, the console shows me the following error: That a. stand-by-column is an 'a'…
-
0
votes0
answers37
viewsAccess varialvel after ajax request
I am trying to assign a value to a variable after a request response, but my variable always returns null; function validaItensReceita() { var validRecVec; var ajaxValid =…
-
0
votes0
answers18
viewsProtect ajax code without Session
Hi. I’m having a hard time figuring out how to protect an ajax code on my page. I have a PHP registration with a form and have a field create a username. But when the user leaves the field I check…