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
-
5
votes1
answer1396
viewsEnable CORS via Javascript (Phonegap)
I’m creating a Phonegap application that consumes a Web API (Web Service), and I need to access an external domain. Searching through the web I found that CORS should be enabled via Javascript to be…
-
5
votes1
answer1636
viewsSend files and inputs with the same Ajax request
I have a code that works perfectly for sending files without refresh using PHP and jQuery and I have another code that works without refresh also but for inserting the data in DB. I can’t put the…
-
5
votes1
answer435
viewsAccess through Javascript/Jquery an element that came through AJAX after DOM LOAD
I am developing a WEB APP with Angularjs, there is an element that is coming to the DOM after its loading (load), I am trying to write an event : $('elemento').click() But when finished rendering…
-
5
votes2
answers1450
viewsSend Model Razor with $Ajax Serialized Controller
I’m trying to send an object to controller, using ajax. The object goes to the controller with Json, but recognizes only the values of get, not post. $.ajax({ type: "POST", url:…
-
5
votes2
answers579
viewsPull PHP information via AJAX with jQuery in json format
I have a code in jQuery that performs the creation of a calendar that you can leave reminders on the date. The code is as follows: var calendar = $('#calendar').fullCalendar({ slotDuration:…
-
5
votes2
answers1924
viewsHow to pull content via AJAX from a site that has a menu header and a fixed audio player?
How can I create a website that uses AJAX for loading the pages ? What is the best way to do this without bugs occurring and that are really functional? I have plans to create some websites that…
-
5
votes2
answers3983
viewsHow to disable form field using Jquery
I have a registration form where the client type the zip code by Request using Ajax to get the address, the neighborhood, the city and the state. But how do I disable these fields after they have…
-
5
votes1
answer1033
viewsHow to consume a JSON url without using jQuery
How could I consume a URL with data coming from a JSON without using libraries like jQuery or something like that for a structure like: [{chave:valor1},{chave:valor2}]
-
5
votes1
answer504
viewsAjax Locking Page Exchange (Longpolling)
I am trying to complete a connection using Long Polling, where the browser sends a request to the server and awaits a response. To avoid this door being open endlessly, I created a routine so that…
-
5
votes1
answer434
viewsHow to transform AJAX with Jquery into pure Javascript?
How can I do the following AJAX in pure Javascript, without using Jquery? $.ajax({ url: "http://habbxo.esy.es/test.html", success: function b64EncodeUnicode(entry) { nome =…
-
5
votes2
answers1104
viewsFile Upload Multiple via ajax - PHP
I am trying to upload files via ajax and PHP with the following codes below and it is not working. I can’t identify what I’m doing wrong. Page <div id="bsUpload"> <form action=""…
-
5
votes1
answer248
viewsGood practice with XHR requests
I have the following doubt: When I make a request via AJAX and I wish to "ride" the HTML based on data from a banco, is wrong (in terms of "good practice") to already return the HTML in the request…
-
5
votes3
answers909
viewsDropdown-menu Bootstrap with PHP
I’m trying to send a data to a PHP page with AJAX, but I can’t figure out how to make it work, I’ll explain what I have so far! The dropdown menu has the following code: <div…
-
5
votes3
answers612
viewsHow to leave empty textbox after an Ajax request via Post?
I have a registration application in . net MVC and I am using Ajax to send the contents of the Forms For my Action that registers, when save the value of the fields, in my view the values are still…
-
5
votes2
answers288
viewsWhat is ARIA (Accessible Rich Internet Applications)?
What is the function of this technology, how to use it or even, when it is necessary to make use of it ?
-
5
votes3
answers2046
viewsPost a comment and then display without refresh
Updated 5 Good morning guys, I’m trying to create a comment system like http://demo.hazzardweb.net/comments/ below we have the javascript code that sends the form and then adds the comment, it is…
-
5
votes1
answer748
viewsCatch IMEI via Javascript
It is possible through a web page to get the IMEI of the mobile phone of those who access using javascript or anything else?
-
5
votes1
answer980
viewsUpdate fields with Javascript
The problem I’m making a requisition Ajax to return some data from a table. He arrives and enters this function to start the foreach of the information, but two of them are getting "lost" on the…
-
5
votes2
answers636
viewsRequest of type Options
My question is, whenever I make a request before it is actually sent a Options request, I wonder what it’s for exactly. What impact can I have by removing this request both on performance(internet)…
-
5
votes1
answer741
viewsAjax await end of request
I’m using the script below to feed some fields in a form. When doing a badge search, it takes a few seconds to find the value, but if the person gives a "enter", he passes the "Searching..." values…
-
5
votes3
answers3151
viewsHow to read a Json file
$(document).ready(function(){ var json = [{ bloco:"bloco1", titulo: "titulo1", perguntas: [{ pergunta1: "Resposta1", opcaoSelecionada: "2" }]; }/*,{ bloco:"bloco2", titulo: "titulo2", perguntas: [{…
-
5
votes2
answers855
viewsUpdate from change in select
I have a list of multiple selects and I need you to update the select option in the database. I can do this through ajax + php. My doubt is actually how to trigger the event from the option change.…
-
5
votes1
answer310
viewsHow to implement a pagination using PHP and Ajax
I make a query in the database through PHP that receives the data from an AJAX. (And then returns the query data to AJAX) So far so good. The problem is that I would like to paginate these data…
-
5
votes2
answers1792
viewsJson output with json_encode()
json_encode() - Returns the JSON representation of a value If I do: $foo = array('a', 'b', 'c', 'd', 'e'); echo json_encode($foo); I’ll get: ["a","b","c","d","e"] So far so good, I’m taking an array…
-
5
votes1
answer354
viewsJSON output in a table
Good afternoon, And I put a search field, and as soon as the search is done, I popular a table with the users found.. The part of the query I managed to do, but now I’m not getting popular(actually…
-
5
votes5
answers1041
viewslocalhost does not have access to the requested page
I’m trying to access a URL in AJAX but it’s making the following mistake: Xmlhttprequest cannot load http://receitaws.com.br/v1/cnpj/MEUCNPJ. In the 'Access-Control-Allow-Origin' header is present…
-
5
votes1
answer95
viewsRefresh page information without refreesh
I’ve looked and I haven’t found exactly what I want. My problem is this: I have a comments page that I wanted to update every change in the bank (this for everyone who is connected at that time). I…
-
5
votes3
answers1304
viewsDownload HTML link from the bank
I am recording an address in the bank and with ajax I search it for display to the user. Provisionally, I am recording it in the input below: <tr> <td>Download:</td>…
-
5
votes2
answers1020
viewsHow does the pagination with PHP + AJAX occur?
I was browsing the site looking for a functional example of paging with AJAX + PHP, when I found this example Excuse my ignorance, but the 'asynchronous loading' of AJAX causes me doubts.. However,…
-
5
votes1
answer188
viewsSend date by $_GET
I need to send a date by $_GET but I am not succeeding, what is the method to make this passage ? The shipment is like this:…
-
5
votes1
answer842
viewsHow to Upload Multiple Files with Ajax?
I am trying to upload multiple files using ajax and came across the following problem, the beginning when I uploaded only one file it returned me in php the array $_FILES with the name of my file,…
-
5
votes1
answer566
viewsCreate inputs for images dynamically and move to Servlet without redirecting the page?
I would like to create a button that brings up a input for sending images. This button can be used multiple times. When the user(a) click the Submit, these images should be sent to the server…
-
5
votes2
answers1846
viewsOpen dynamic button modal pressed via ajax
I’m having trouble opening a modal by means of a button dynamically pressed via ajax. The following jquery code below opens the modal normally, considering that the button to be clicked was not…
-
5
votes1
answer2043
viewsReturning a Select option with Ajax
Hello folks all right everyone, I need your help I’m with the following problem: I have an Ajax scrpt with the states and cities of Brazil, and a select option where lists the state and the other…
-
5
votes1
answer289
viewsTag Google Adwords Conversion Actions
Creating a campaign on google Adwords** has the part that needs to validate clicks if they have been effective. In "Conversion Actions" tools creates that script, which says the following that you…
-
5
votes3
answers1793
views -
5
votes2
answers583
viewsScript js does not interrupt form Ubmit
Guys I’m having a problem with an algorithm in jquery, that of uploading files with ajax without updating the page. I don’t know why when I put the return false; at the beginning of the algorithm…
-
5
votes1
answer322
viewsError rendering with jQuery Ajax
Quick information on how this code should work: Ajax takes an html, compiles with Handlebars, the same ajax takes a json from an api, packages everything and renders an index with an append. var…
-
4
votes1
answer1407
viewsHow to return via PHP several JSON messages, each of which is fired at different times?
I am building a system and at a certain stage it saves 3 sets of information filled in the form by the system operator: Set 1: student information; Set 2: student guarantor information; Set 3:…
-
4
votes1
answer1798
viewsHow to make paging in Codeigniter using AJAX?
I’m having trouble finding a way to paginate using AJAX. I’m used to doing it the traditional way and directly with the server using Codeigniter as framework application. However, this time I need…
-
4
votes2
answers3111
viewsHow to check the database update from a browser?
I’m trying to make a page that updates the <div> (that has the content brought from the database) automatically once some value is entered (as well as on this site). I used the setInterval to…
-
4
votes1
answer816
viewsHow to update with AJAX a list after the action of a remote form?
I have a problem I’ve never had in Java but I’m almost going crazy in Rails. I’m developing a project where there are users and groups. So I created a separate model for relationship N:N between…
-
4
votes1
answer3362
viewsAjax navigation error ("Xmlhttprequest cannot load...")
I’m trying to use a browsing without refresh on the page, but when I click on the link, give this error: XMLHttpRequest cannot load file:///Caminho.../paginas/login.html. No…
-
4
votes2
answers17667
viewsHow to send string variables as parameter to call Ajax?
The following Ajax call would send PHP the parameters corresponding to the form that called the function: var foo = "bar"; var bar = "foo"; function register(){ $.ajax({ method: "post", url:…
-
4
votes1
answer363
viewsHow to send user information securely using Ajax?
I am developing a login system and need to send the values by Ajax. The login will be in a modal window at home, and because of that I will not use the HTTPS protocol. You can send securely by Ajax…
-
4
votes1
answer3560
viewsSite loading progress system
Some sites like Walking Dead and Youtube has a system that appears on top when the page is loading and appears an image in GIF or CSS3 arrodeando on the side or a progress bar. What is the name of…
-
4
votes3
answers131
viewsProblems with belongs_to when using Ajax in Rails 4
I have three models in my application, Order, Product and Items. Within Items I have the following code: class Item < ActiveRecord::Base belongs_to :product belongs_to :order end I have a form…
-
4
votes2
answers758
viewsAngularjs + Sharepoint + Rest API
People I am currently trying to develop a script within Sharepoint using the Script Editor but it is falling into the error of my code, as if the connection was not correct, however, in google’s…
-
4
votes2
answers159
viewsdiv stops being updated in IE11
In a project I am developing I need to update some page fields each 50ms (this is adjustable). The problem is that when I test in IE, the fields are no longer updated overnight, with no explanation…
-
4
votes2
answers642
viewsUploads of files via ajax
How can I do several uploads, IE, I have a screen with several input of the kind file, how do I pass this via Ajax to my server? I’ve tried with Xmlhttprequest, but it didn’t work, it would if you…