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
votes3
answers3776
viewsHow to run a jquery/javascript function only in the page load and avoid postback?
Hello. I have a function to "create" a Accordion of jQuery UI in my div. Turns out inside this mine div there are several controls that make post on the page. What I want is that by making a post on…
javascript jquery ajax asp.net ajaxtoolkitasked 9 years, 10 months ago Leonardo Ribeiro de Aguiar 105 -
0
votes1
answer284
viewsHow to make a for inside an Ajax html += ?
Hello guys I’m having a problem and I wanted a help. How can I make one for inside html += ajax? JS: $('.requerAjax').click(function(e) { e.preventDefault(); var mes = $(this).attr('rel'); $.ajax({…
-
0
votes2
answers740
viewsWhy is Ajax only working the first time?
I have a table with some values stored in it. In this table I also have two buttons where I can hide the values, leaving only the table name and another button that filters the information I want.…
-
0
votes1
answer55
views -
0
votes0
answers203
viewsFilter with 2 ajax conditions
Good afternoon guys, I have an ajax filter that filters 1 result only. I need to filter two conditions, like a month and a person’s name in a schedule table. How can I do? <script…
-
0
votes1
answer625
viewsAjax Returning all page HTML
I have an AJAX request on a customer’s website on the product page, which when selecting the available size of the product changes the price, but on the return of AJAX instead of only taking the…
-
0
votes0
answers154
viewsMonitor external HTTP requests within the page
Good morning gentlemen. It is possible to monitor page requests? I say: All the files that are called there, example: css, js, img, video, mp3, iframe... Any request HTTP.…
-
0
votes0
answers214
viewsHelp with Where in Laravel
Hi, guys wanted a little help from you on a Where. In my system is like this, I am in the Development photo gallery page( id=1 ), on this page I can register the photos of the month/year of the…
-
0
votes2
answers215
viewsPHP/Ajax - return Ajax does not bring when if ==
I have the page that returns an Ajax request. When executing it by passing the parameters: grupoCategoria=1&subCat=302 in the expression: if($dados_Subcategorias[codigo_subcategoria] ==…
-
0
votes1
answer811
viewsShopping cart sql, php and ajax
I am making the shopping cart and would like to know if I should save the products that the user is buying in a table or not, which logic to always show the right product to the right user? I know I…
-
0
votes1
answer4718
viewsHow to update an iframe without refreshing the page?
I’m making a system, more precisely, a code editor HTML and CSS online, where I need to send two fields via POST to a php page, which will process the data and save it in a random name html file,…
-
0
votes1
answer2759
viewsReturn database records using jquery ajax, php and mysql
I am beginner in jquery and would like a help to the following situation: In this field: <input type="text" name="colaborador" id="colaborador"> How would you do where, for each typed letter a…
-
0
votes2
answers270
viewsConvert bank date to AJAX
I would like to convert the bank coming date (2012-02-10) to Brazilian standard (10/02/2012) in AJAX Success, example: $.ajax({ type: 'POST', dataType: 'json', url: "crud/consulta.php", data: dados,…
-
0
votes1
answer631
viewsJSF + Primefaces update component when switching pagination
<p:dataList paginator="true" value="{bean.lista}" var="lista"> </:dataList> <h:outputText value="qualquerCoisa" id="teste"/> How do I update outputText 'test' every time the…
-
0
votes1
answer122
viewsCapture ajax datetime with jquery
I have an array containing some objects from an AJAX call. The values are being passed through a date: "res.datatags." In one of the objective answers the following result: 2016-07-15T10:00:00-0300…
-
0
votes1
answer121
viewsHow to avoid the ajaxStop() method function in a single ajax call?
I have the following problem: There is a page where I use $.ajaxStop to give a $.unblockUI (modal plugin), this closes the modal "loading..." whenever the page ajax requests finish loading, the…
-
0
votes0
answers164
viewsGetting a specific tag in file . ofx
I can read the whole . ofx file with javascript / ajax: var ofxReader = new XMLHttpRequest() || new ActiveXObject('MSXML2.XMLHTTP'); function loadFile() { ofxReader.open('get', 'sample.ofx', true);…
-
0
votes1
answer63
viewsHow to upload file via ajax with Rails 4?
I want to transfer a pdf file to process on my controller and then return it while it is being processed on backend, I would like a slider or click circle to appear. However, I am having trouble…
-
0
votes1
answer213
viewsI’m trying to return the name but can only return the ID
I’ve been researching for days and I couldn’t find a solution. The scenario and the following: I have an employee registration screen and an employee editing screen with two classes a pessoa where I…
-
0
votes1
answer81
viewsHow do I make an interaction between two tables (<table>) with AJAX?
I need to make an interaction between two tables in a side tab, where initially an "answer" table is hidden and the "question" table will be available and so on input search above them I type…
-
0
votes0
answers646
viewsField Completion with ZIP in Cakephp 2.x
I’m trying to auto-fill the fields in Cakephp from a zip code, I’m adapting the code found on this site: http://matheuspiscioneri.com.br/blog/preenchimento-automatico-do-endereco-a-partir-do-cep/ I…
-
0
votes1
answer112
viewsHow to update an <h:form> every 30 seconds JAVA WEB
I’m trying to create a panel showing the sales results on a screen in my company. I need to time the panel every 30 seconds so that the results are always up to date. I have no idea how to do, all…
-
0
votes1
answer21
viewsWhen using fnReloadAjax does not remain on the current page
I’m using the fnReloadAjax for when the user does some action in the table that is mounted using the datatables already reload the data again, only it does not remain on the current page. It keeps…
ajaxasked 8 years, 2 months ago Marcelo Diniz 3,356 -
0
votes1
answer178
viewsSending AJAX and PHP array
I am trying to reorder a list of items, which when clicking a button releases the reordering and when clicking again it saves, but if I do more than one reordering it only accepts the first one.…
-
0
votes0
answers168
viewsList files in directory with ajax
Is it possible to list the files of a directory with ajax and php? I did some research but I can’t find that combination! $path = "/home/projetoc/public_html/filemanagerarquiv/files/"; $diretorio =…
-
0
votes1
answer610
viewsPass multidimensional array to php
I’ve been struggling with a problem for days.. Here’s the thing, I have a multidimensional array and I want to pass as a parameter in a request ajax for a php file , however when I’m doing this what…
-
0
votes1
answer27
viewsError returning data from JS array
I need to assign the attributes to the object relatively, without knowing how many parameters will come, so it is not returning results, there is another method? var menu =…
-
0
votes2
answers146
viewsJquery template does not work on HTTPS page
I have an AJAX function that works on several pages, except on a page that uses HTTPS: $.ajax({ url : url, type : "get", async: false, success : function(result) { console.log("Status AJAX: " +…
-
0
votes2
answers87
viewsDiv disabling jquery find next element
Friends, I have the following question: The following code below locates the next element from the select clicked: https://jsfiddle.net/cmftasor/ Works perfectly. The problem is that by including…
-
0
votes0
answers601
viewsphpmailer return message is not received
I am sending a form via AJAX recording the fields of the same in my bank, I expect a reply after sending the information via email by phpmailer, but this message does not occur. The script is fired,…
-
0
votes1
answer60
viewsDo you have a problem with indexing on Google with dynamically loaded content pages?
I have a page today that is already in production and accessible to anyone by Google where your content is fully loaded from Server and rendered. I upgraded it and now your content will be loaded…
-
0
votes1
answer124
viewsSend array to controller via Ajax.Beginform and update Partialview
Good morning guys, I have a search screen where I list several values according to the user filter. I use Ajax.Beginform to update the table, but now I need to send an array, the user will be able…
-
0
votes1
answer209
viewsScroll down when you receive new PHP MYSQL AJAX JAVASCRIPT message
I’ve been searching for about 4 days on how to scroll my chat scroll when I receive new messages and scroll up to see previous messages. I made a script using setInterval, but when I try to roll the…
-
0
votes0
answers225
views'Pause' and 'Return' AJAX
I have a code on my page that uploads files. These files that are sent, have specific fields filled (Ex: name, phone, email) and it is not possible to change this type of document. If one leaves a…
-
0
votes1
answer131
viewsCities with the same name using Geocharts
I’m doing a project, using Geocharts, as I’m working all the municipalities throughout Brazil, there are some cities with the same name, when I show these cities, they appear in the wrong state, has…
-
0
votes1
answer221
viewsForm with Ajax / Json / PHP
all right ? could you help me with the following problem. I see a lot of people talking about creating Formulars with Json / Ajax and all that, but like, I’m pretty much on the outside of it yet.…
-
0
votes1
answer2210
viewsDelete record without page refresh?
I have the following Ajax/Jquery to delete a record as an action of a href. <script type="text/javascript"> function apagarRegistro(idTel) { var baseurl = '<?php echo $sig_url;?>';…
-
0
votes0
answers56
viewsUncaught Syntaxerror in an ajax code
I’m creating a chat, but in the console it gives the following error: Uncaught Syntaxerror: Missing ) after argument list Code: http://www.redepurple.com.br/social/Code/chatjs/chat.js What can it…
-
0
votes1
answer456
viewsImage editor BASE64 + Ajax
I am implementing an image editor with the hack and upload tool via Ajax. Image editor: http://codepen.io/bigaton/pen/NRBKaa Upload via Ajax: https://github.com/rafaelcouto/Post1334 Image conversion…
-
0
votes1
answer42
viewsPHONEGAP AJAX catching ip along with the url
I’m making a simple request using phonegap: $.ajax({ type: "GET", dataType: "json", url: "http://mydomain.com/request", data: params, success: function(result){ }, error: function(e, data, status,…
-
0
votes1
answer140
viewsError 500 $.post Codeigniter on Server
Good afternoon, everyone, I have a problem all day and can not solve, I have a system and it works on the localhost server perfectly, but on the server some ajax functions can not send the post.…
-
0
votes1
answer59
viewsDoubt about music player for website
I wonder if there’s a way I can make a music player for website, with AJAX, PHP or HTML5, using a youtube playlist. How to make it play in random mode this playlist not to keep repeating the same…
-
0
votes1
answer34
viewsRemote error: true using in RAILS, to POST a JS file
I have a problem with my code, I want Rails to do remote: true of "Login" with a class and an id as below, but the server passes a GET, but I want to search the controller for the format.js to send…
-
0
votes1
answer26
viewsSend selected value to an Insert.php file
Good afternoon! I wonder if there is a way to perform an Insert in the database from a selection in a Dropdown. This selection would be sent to a file (example) "Insert.php", in which you would…
-
0
votes0
answers66
viewsIs it possible to capture Ajax-generated html data from an external URL?
Scenario : I am trying to capture the text of certain div of a website, however div seems to be generated with Ajax. When I inspect the element directly on the page through the browser debuger, I…
-
0
votes0
answers552
viewsUpdatepanel does not update
I have the following updatePanel: <asp:ScriptManager ID="ScriptManager1" runat="server" ChildrenAsTriggers="true" > <Scripts> </Scripts> </asp:ScriptManager>…
-
0
votes0
answers94
viewsPerform . append(); of an iframe when the page is loaded
I’m trying to accomplish a .append(); of a iframe which is stored in comic books. Well, this done and accomplished as follows: $(document).ready(function(){…
-
0
votes1
answer652
viewsAjax redirection on ASP.NET MVC
I’m using Ajax to save the form data. The problem is that after saving the data have no way redirect to the "Action Index" where customers are listed registered, because the request was made in…
-
0
votes0
answers36
viewsUndefined index
Hello, I am in a project that works with many forms and I need that when the person arrives in the last form, when clicking on Ubmit it sends the result of a variable javascript to the bank. I’ll…
-
0
votes0
answers70
viewsError while retrieving json information with ajax
I am making a JSON request, which returns the results, but not on the date, but on the ajax error. var url = window.location; var id = url.toString().split("=")[1]; var msg = ''; $.ajax({ type:…