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
-
1
votes1
answer3575
viewsUncaught Typeerror: $.ajax is not a Function?
What problem with my code, on the console shows this error: home:85 Uncaught TypeError: $.ajax is not a function at HTMLFormElement.<anonymous> (home:85) at HTMLFormElement.dispatch…
-
1
votes2
answers654
viewsChange the table row icon when you click dynamically?
I have a table structure as follows: <table id="example" class="table table-striped table-bordered table-hover"> <thead> <tr> <th></th> <th>Razão…
-
1
votes4
answers559
viewsFunction has screen in real time, hangs the screen with time!
I am studying ajax, jquery and php. And in order to make a screen that loads automatically, for future chat. What I want to understand is the screen loading function. I have index.php code…
-
1
votes1
answer376
viewsAccent words don’t work
I have Ajax that loads database data and json type: $.ajax({ type:'post', dataType: 'json', url: '../model/dao/CursoDao.php?acao=1', success: function(dados){ for(var i=0; dados.length > i; i++){…
-
1
votes2
answers288
viewsChanging button function via jQuery
I have some buttons that at the click of it directs to a request in ajax to an external file that adds a product, however this does not matter much in this case. I manipulate these buttons, being…
-
1
votes2
answers5148
viewsRemoving . append() jQuery
I have several buttons where at the click of it directs to an Ajax request passing as parameter the id of a product and through an external file, according to it is added to the cart but this is not…
-
1
votes2
answers420
viewsUncaught Typeerror: Cannot read Property 'split' of Undefined at Xmlhttprequest.alertContents
I am making an AJAX request, via GET and putting in variable httpRequest and I’m trying to use a .split(';') in the text response this is an excerpt from the code I’m using: var prof1 = 0, prof2 =…
-
1
votes1
answer2098
viewsneed to make the form fill the info from the search by cnpj
Below is an excerpt of the code. I have doubts about how to make, when clicking SEARCH, the CNPJ is found on the site receitasws and the fields below are filled:…
-
1
votes1
answer24
viewsField validation problem with ajax
personal made a validation via ajax on my form of website that when the user does not fill in the field and tries to submit the form it takes the inputs and adds a red border until then ta right but…
-
1
votes1
answer62
viewsChanging the logic - jQuery
I have several buttons from which you add and remove products from an external file, but that’s just a detail. Every time the buy button is clicked, the product is added, the button is "changed" to…
-
1
votes2
answers614
viewshow to pass a php string through a java script parameter
I’m creating a click counter on the link this way: <a href="#" onclick="return chamarPhpAjax();"></a> That by clicking on the link calls the function: function chamarPhpAjax() { var so =…
-
1
votes1
answer87
viewsSend and Remove from database with Jquery
Hello! I recently did another post here but it was poorly explained. I was wanting to make a form that makes an Insert in the bank and also remove. I created a small system of titles, so users can…
-
1
votes1
answer183
viewsAjax Success - actions at the time of Ajax’s response
Let’s go: During AJAX communication with my PHP I need to test a condition and if the condition is satisfied I want the page to go back to index.html $('#tabela').empty(); $retorno=0; $.ajax({ data:…
-
1
votes1
answer916
viewsUpdate content of the HTML page with Javascript using SQL queried data
People have the following page, which works as follows: The user type the name of the city, click on the search button where he brings the results corresponding to the search in a table. By clicking…
-
1
votes0
answers162
viewsHow to pick up inputs with jquery and ajax
I am with the following doubt I have a web application I want when logging into the homepage "index.html" take the 'name' and 'email' and put with jquery in another page 'paginaprincipal.html' . for…
-
1
votes0
answers790
viewsAssigning value to an input - jQuery
I have two input type="hidden" from which I make an Ajax request to an external file in order to assign values to it. The request is returning me the value correctly, everything is right in it, but…
-
1
votes1
answer599
viewsHow to recover PHP array for javascript comparison?
I have a code in javascript that sends some elements of the page to another in PHP via ajax and there are made some comparisons. Then it returns me this array with the function print_r() : However,…
-
1
votes2
answers2270
viewsRequest blocked by CORS Policy
I’m making an API with Slim Framework and when I test the answer with Postman everything works very well, but when I put it on the server and tried to make an ajax call to test I got the error…
-
1
votes0
answers55
viewsphonegap pass conate list to mysql
I’m trying to get the contact list from mobile phone and send through ajax and php to mysql. This is the code I’m using: document.addEventListener("deviceready", onDeviceReady, false); function…
-
1
votes1
answer110
viewsPass files by ajax
I am creating the product registration form of a website, and in it, all forms are submitted by ajax to an api. The problem is that in this particular form I need to send images to the server. I am…
-
1
votes3
answers197
viewsPress button and appear "CURSOR/ or ANYTHING" until operation is finished
I have the following code in javascript and ajax: function marcar_consulta(id_paciente,id_horario, data_consulta ) { $.ajax ({ type:'post', url:'insert_consulta.php',…
-
1
votes0
answers59
viewsProblem with $_POST
Well I’m learning to program php and I have a lot of difficulties in making the junction of it with other language, right now I’m doing a job and I have a problem: When I click on one div the image…
-
1
votes1
answer1020
viewsThe parameter dictionary contains a null entry
I am with the problem that is the following, I am consuming a service where it receives a parameter as input, in the frontend I send this parameter via ajax, but it returns as error and says that I…
-
1
votes1
answer1584
viewsUncaught Domexception: Failed to execute 'send' on 'Xmlhttprequest': The Object’s state must be OPENED
I’ve been needing to make a synchronous request and the result has given me this error. Uncaught Domexception: Failed to execute 'send' on 'Xmlhttprequest': The Object’s state must be OPENED. The…
-
1
votes2
answers658
viewsPass button value to modal
I need help with the javascript code, I’m new and I’m not really sure what the syntax is. What I need is to take the value of this button and play on the id_usuario label, as I do? <button…
-
1
votes0
answers937
viewsSuccess : Function ajax call another javascript function
function paginacao_tabela_clientes_status(idpessoa){ $.ajax ({ type: 'POST', dataType: 'json', url: BASE_URL + '/clients/tabela_clientes_pedido_entregue', data: {idpessoa: idpessoa}, success:…
-
1
votes1
answer486
viewsGrab Object in JSON
How can I take only the property "name":"josimara" in that code ajax, I’m new in this area, thank you for your help. <script src="http://www.habbid.com.br/assets/js/jquery-1.9.1.js"…
-
1
votes1
answer1289
viewsAccess variable in and out of a javascript function?
I am trying to update some questions on a page, going through an _for with the number of steps equal to the total of questions, to inject in each passage a question via $.post(), and wait for the…
-
1
votes0
answers54
viewsBlock Maps External Query Api
In this code below I perform a query at the address and it returns me some data so far everything ok. What I wanted to know is ? If there’s a way, if a customer enters an address in the United…
javascript jquery ajax google-maps google-maps-api-3asked 7 years, 1 month ago Fabio Henrique 2,156 -
1
votes0
answers276
viewsHow to debug an ajax request for a route?
I am making an AJAX request on a route, using the Aravel, as follows: $.ajax( { url: "../controle/pendentes/concluirVarias", type: "POST", data: { ids: arrayIds , _token: '{!! csrf_token() !!}' },…
-
1
votes1
answer455
viewsjson_encode returning empty
I am performing a basic query in the bank, using the following code: public function searchAllProducts(){ $array = array(); $select = $this->connection->prepare("Select * from tb_produto");…
-
1
votes1
answer334
viewsAjax does not send the data to another php page
I am unable to send the value of an input to another php page. On my products.php page I do a database search and upload the page show_itemswithin a div. When loading the data into this div, I mount…
-
1
votes1
answer43
viewsIs it possible to monitor all of the page’s Responses and Headers to use as a function trigger?
I have a script that needs to be executed only after the return of a page request, because the request returns HTML content, and the function I want to execute soon after, implements that received…
-
1
votes1
answer112
viewsUpdate of DIV
Hello, I have a small project just for Hobbie, and I have some Datatables on my web page, to facilitate the search of registered data, but when I register any data in a Brownser tab, the other one…
-
1
votes1
answer110
viewsLoad page inside a div with Ajax
Good afternoon! I’m trying to use Ajax to load a page inside a div I have, but it’s giving error 403 (Forbidden). In case I can’t do it? There’s no way I could do it any other way? NOTE: The page I…
-
1
votes2
answers658
viewsCheck return ajax, works only the first time
Good morning friends, I have this code: $(document).ready(function(){ $('button').on('click',function(e){ e.preventDefault(); var codigo = $(this).attr('id'); $.ajax({ type: 'post', url: '<?=…
-
1
votes2
answers207
viewsError when picking up JSON elements
Speak guys, blz? I have a problem when it comes to receiving the answer in JSON from Ajax, I can not popular all states in select. Although it is inside of a being it takes only the last element, ie…
-
1
votes1
answer2632
viewsFill in INPUTS with ajax
I have some fields that I need to fill with AJAX of a SELECT in php. I am already able to fill in the ID field, and CLIENT, now I have to fill in the rest of the items, such as ENDERECO, CPF,…
-
1
votes2
answers228
views -
1
votes1
answer63
viewsPHP is not returning data to AJAX to Validate Captcha
JAVASCRIPT function validateCaptcha(){ var responsec = grecaptcha.getResponse(); if(responsec.length == 0){ }else{ $.ajax({ type: "POST", url: "kingSecure/server.php", async: false, data: {…
-
1
votes0
answers267
viewsSlim API returns error only with AJAX request
Hello, I developed an API using the Slim Framework and testing one of the endpoints that with Postman works perfectly but when I request with AJAX, although it is sending exactly the same data that…
-
1
votes1
answer36
viewsHelp with ajax to send new variable value in emsma page without refresh via radio button
I’m trying to make a table with radio that when I click, changes the order that is displayed the table content, I saw that the way to do this is with ajax, but I do not have much time left, and from…
-
1
votes0
answers468
viewsSave data to a file and recover them with jquery
I want to simulate a blog article and save a comment purely by Javascript then I have 3 files to accomplish this task: $("#enviar-comentario").click(function(){ var nome = $("#nome").val(); var…
-
1
votes0
answers19
viewsHow to put Collapsible List Group in ajax?
I’m willing to put tabs for when the person touches the category open a list of products, but I’m not getting[![ $(document).on("click","btnMesa1",function(evt) { $.ajax({ type:"get",…
-
1
votes3
answers1435
viewsCall functions for ajax request inside callback
Within a function callback() one click required to make at least 3 requests. I’ve separated that into three functions: (func1(), func2() e func3()) and each of them makes a request ajax ($.get)…
-
1
votes1
answer118
viewsRedirect with jQuery and PHP
I have two pages where one is the .js calling via ajax a PHP routine to validate a user: https://pastebin.com/37RQtjUY Another page in PHP that is the call of this previous routine where I will…
-
1
votes1
answer615
viewsUse AJAX return in other functions
I have 2 functions: A function 1 returns a JSON via AJAX and lists the data in an HTML table dynamically, until then everything works. The function 2 need to manipulate the same data, however, I did…
-
1
votes2
answers229
viewsAs per Javascript Variable within an html value?
I have the following code: console.log(ArmazenaIds); console.log(ArmazenaEmails); contaQuantidadeDeEmails = ArmazenaEmails.length; //listando emails selecionados na div .top for( c=0;…
-
1
votes1
answer532
viewsfocus on input loaded via ajax
0 vote against favorite I have a page where I am refreshing with ajax only on div content. It is configured like this: div1: I load 2 selects where the user will choose these 2 data (class and…
-
1
votes1
answer368
viewsUser-friendly URL with Jquery
Hello, everybody! My system is developed in Jquery, so I make changes to pages without loading, only with $.get(). The big question is: even without loading, I need the URL to be changed, making the…