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
votes0
answers62
viewsRecover variable via ajax requests
I have the following fields: <div class="container"> <div class="form-group"> <label for="nomefiltrar" style="color:#E4CDAC; font-size: 17px; font- family:Arial">Nome</label>…
-
0
votes2
answers2260
viewsFill div with ajax result
I have an ajax request with the following code: <script type="text/javascript"> function AddVoto() { $.ajax({ type: "POST", url: "{{url('votos/adicionar/')}}/{{{$postagem->id_postagem}}}",…
-
0
votes0
answers64
viewsajax always returns blank
My problem is the following I have a search field that brings data in a table via ajax, in this table has buttons so that the user can get more information about the data that are searched, in these…
-
0
votes2
answers2105
viewsHow to save return in Ajax request in a variable
I tried the next code, but it doesn’t work function getCategoria(id){ var categoria; $.ajax({ url: "../control/anuncio/index.php", data:{ method: 'get_categoria', id_categoria: id }, method: "post",…
-
0
votes0
answers91
viewsHow to update database in form with Select input?
in the file cadFilhote.php I have the function: function atualizarFilhote(str){ var id_filhote = str; var filhote = $('#filhote-'+str).val(); var raca = $('#raca-'+str).val(); var opcao =…
-
0
votes0
answers93
viewsJquery Ajax - Problems when rendering graphics using jquery request
I am developing a web application that aims to generate monthly reports of some information coming from the mobile application. As I have little experience with Jquery I am having difficulty loading…
-
0
votes2
answers198
viewsJquery removes all the least selected Divs and the ones from the other menu
This code removes all the least selected Ivs, but also the ones from the motherboard menu what I was trying to do was to make the bottom ones independent of the top ones. I’m sorry to show you the…
-
0
votes1
answer133
viewsAjax request back Undefined
I am studying a little Ajax and testing your requisitions. My doubt is on account of the return, he is returning Undefined. That is the function: function recarregar() { var jsonData = $.ajax({ url:…
-
0
votes2
answers78
viewsVariable does not go to PHP with Ajax
I have this code that makes the request with Ajax for a PHP file. The problem is that it is only taking the value of input type="file", the other fields are not being passed to PHP. I’m doing so to…
-
0
votes2
answers765
viewsUpdate PHP function every second
I am using a function to get the server load: function get_server_cpu_usage(){ $load = sys_getloadavg(); return $load[1]; } I call her with: <div id="load"><?= get_server_cpu_usage();…
-
0
votes2
answers939
viewsExternal Ajax URL Request
I am with following problem,I implemented the code,to get information from RSS blog,however I am not able to access url criticizing error 401,when I place local file works normally. var ajax = new…
-
0
votes0
answers902
viewsIncrease SESSION life in PHP
I built an API using PHP to use it with Applications. When I exit the application (without closing it or logging out) after a while the session expires disabling the activity in the application and…
-
0
votes1
answer357
viewsRequest ajax with Slim
I have a form and the following requisition: jQuery('#cadastro').submit(function() { var dados = jQuery(this).serialize(); jQuery.ajax({ type: "POST", url: "/cadastrar", data: dados, beforeSend(xhr)…
-
0
votes1
answer6395
viewsAjax - Error 500 (Internal Server Error)
GET http://localhost/Ultraweb_20150629_adriano/Ultraweb/index.php/supervisaocontroller/stateMaquinaMobAjax/37/37/100/500 500 (Internal Server Error) My job function estadoDinamico(indice, key,…
-
0
votes0
answers39
viewsRotate image 360º in 3D
I work in a company that sells machines and parts for mills that produce rice, and I’m developing a system for selling parts for these machines... my boss wants each piece the customer can see from…
-
0
votes0
answers70
viewsUpload and show on-screen at runtime loop with PHP, Jquery, AJAX, javascript
I want to upload an array and at the same time I want to show each file that was "uploaded" in a loop, at the time of execution of the loop, (for this the page can not refresh), avoiding to do all…
-
0
votes2
answers329
viewsBrowsing history with history.pushState
Hey there, guys. Next, I made a code for uploading content in Ajax and used history.pushState to change the browser URL, but when I click Back, it doesn’t load the previous address, it just changes…
-
0
votes1
answer30
viewsEdit group and real-time file
I want to develop for a client where he will select a group of employees and everyone can edit a file via web. He wants style as it occurs in Google Drive Documents, where the person types and the…
-
0
votes0
answers61
viewsAjax function repeats on the page depending on the number of results returned from the query, what can it be?
Good morning the/ I am working on a Grails project that uses Javascript to perform the search (both by category and by text) and item pagination. However, after a few searches per category, the…
-
0
votes2
answers139
viewsAjax with clean url how to use browser back
Hello, Does anyone know how I can use the back of the browser with some ajax/jquery feature, considering that the url is clean? For example, when browsing a php session is created, so when I…
-
0
votes2
answers1417
viewsJquery and PHP POST method
Dear colleagues. I have a button on the bootstrap: <button class="btn btn-xs btn-primary active" name="Botao" value="Ativar" id="ativar">Ativar</button> I would like that by clicking…
-
0
votes1
answer197
viewsRetrieve server data without refresh
I have a script with a list of friends users and next to a box chat. When the user clicks on one of his friends in the list his data ID & NOME are sent to a function openWidChat(de,para,nome)…
-
0
votes2
answers114
viewsJquery - include variables in ajax
Before you ask I’ll leave my script: Html </form> <input type="text" id="email"> <input type="password id="senha"> <button>Entrar</button> </form> Jquery var form…
-
0
votes2
answers86
viewsHow do <?php echo $i ? > be random between Y and X?
I’m developing a layout, I need your class in div, be randomized between two names, I need a javascript to do this, someone can help me? Ex.: <div class="left"><div> <div…
-
0
votes2
answers217
viewsIn AJAX only "Fail" is executed, how to solve this problem?
Contextualization When the user presses the button Authorize Documentation the modal will be displayed Authorization that will ask to select the user and enter the password, as shown in the…
-
0
votes0
answers145
viewsRefresh without updating the page with window.history.pushState javascript and PHP
I need to create a menu that calls inside a div contents of files in php youtube style without refresh in the page but changing the url, if anyone can help me thank.
-
0
votes1
answer69
viewsMultilingual page without formatting
I have a multilingual website using Ajax, but when I put to change the language, the page does not overwrite formatted. www.csvet.com.br By clicking on the US flag on header the error appears.…
-
0
votes1
answer311
viewsSend form without reloading page being from different domains
I need to do a method that does not reload the page and send the data to a server on another domain. However I am having problems with the XMLHttpRequest. Does anyone know any method to do this and…
-
0
votes2
answers72
viewsHow do I stream a file from my server?
People would like to know how I can make a file type shareable, for example: I have a file called bots.txt on my server, I wish my clients could edit it through the web getting saved on my server.…
-
0
votes1
answer37
viewsIs it possible to fire a file inside a server through a web page?
I wonder if it is possible to run a command inside a server through a web page, what I need is that through this page I can open a VBS script that I have saved or even open an application. No matter…
-
0
votes1
answer112
viewsCalendar Primefaces losing style with ajax update
The first faces Component is losing style after updating with ajax in the view. What do I do to solve?
-
0
votes0
answers234
viewsRendering HTML with AJAX call using PHP and MVC concept
Good night. I usually use the MVC (Model-View-Controller) standard in projects, independent of the programming language. In PHP the directory structure looks like this: - assets - css - js - img -…
-
0
votes0
answers42
viewsLoading page elements, including text and not only images as in lazyload
It may sound like a stupid question, but how do I load this type? Does it have a specific name? Load the texts together.…
-
0
votes0
answers54
viewsAjax request does not reach the server when the body is too large
In an ajax call I make to the server in a report generation function I am finding a situation. When in the request body I send a small array, with 20 positions everything happens normally, but when…
-
0
votes0
answers37
viewsCall complete() within Success()
Consider my code ajax below function update(){ $.ajax({ url : 'my.hrl', type : 'get', dataType : 'json', success : funcion(data){ if(data.id == null){ //chamar. complete ou error } }, complete :…
-
0
votes1
answer33
viewsHow to refresh the page and stop updating?
I’m making the following code: if(xhr.status == 200){ console.log(xhr.responseText); window.location.reload(); } only when I do this, it feels like it enters an eternal loop and crashes my server.…
-
0
votes3
answers734
viewsShow image after loading via ajax
Hello, I’m setting up a site with no refresh. When the user clicks on the tab clients are loaded slides of the same, however as the embedded images have a 2mb and end up loading by part. I wonder if…
-
0
votes1
answer59
viewsHow to take values from an array without array.push
Guys, I’m trying to get a user’s location and it keeps updating from time to time, searching, I found this method, however, I can not only do this with the current value of the array, it…
-
0
votes2
answers94
viewsVariable value is not changed inside ajax
I am trying to assign a value to a variable inside the sucess of an ajax, however, when checking the value of this variable, this value is with the variable creation value, follows: var emailPessoa…
-
0
votes0
answers51
viewsProblem with Ajax script
I have an Ajax search script without reloading the page, I select the taxonomy’s to filter the content, and I click "Search", in which the search form disappears, a load bar appears. The load bar…
-
0
votes0
answers178
viewsNo refresh search by select
Good evening... I would like to know how to do a search through a select and of checkbox, as on the website of the webmotors... I looked on the Internet but found nothing like it... Someone knows…
-
0
votes1
answer75
viewssend request at the first button click
I have to fill some combobox at the click of a button. When I click on this button it first loads a modal and the second time I click it creates the modal loading the data I need, making the request…
-
0
votes1
answer590
viewsDoubt about ajax url
I am developing a simple crud with ajax and jquery and came across the following question... $('#btnDelete').unbid().click(function(){ $.ajax({ type: 'ajax', method: 'post', async: false, url: url,…
-
0
votes1
answer457
viewsRedeem ID in Ajax return modal
I’ve searched a lot more I could not get anything like that. I have a registration that returns lastInsertId() and this registration is done with Ajax. No Success (Ajax) after completing the…
-
0
votes1
answer74
viewsGraph that feeds on database data
I have a system that shows a table that prints each record with a button on the side responsible for opening a modal. I would like inside this modal to have a graph that compares the data of the…
-
0
votes0
answers32
viewsBootstrap 4 jquery (not slim version) bugs
I am with a web project that have made the front using BT4. In the Docs of BT4 is presented the CDN of jquery.slim as necessary. I would like to use the $.ajax function of jquery, but it is not…
-
0
votes1
answer96
viewsData returning with space
I’m making a call ajax with jQuery in a controller on CodeIgniter. The problem is that when the jQuery returns me the data, it is coming with some spaces in front of the result, getting for example:…
-
0
votes0
answers58
viewsWhat is the best way to save data in real time?
Guys, can you tell me how to best save data in real time? For example, I have a news portal and need to save every access I receive and show on a private panel, but in case my site has 30,000…
-
0
votes2
answers25
viewsCheckbox selected in function
I have a function and I’m trying to set the checkbox as true, in function, this way: $("#cbpre").checked = true; But he’s not checking, I’ve debugged, and he enters this part, just doesn’t check the…
-
0
votes0
answers145
viewsSave canvas image with filters
I add image filters to the canvas, but have to save the image in the database and when I do the image saved without the filters, save the original. My database is connecting through Ajax and I do…