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
-
2
votes1
answer68
viewsAJAX request failed to use the file:/// protocol at source. How to resolve?
I am making a very simple program where I need to read a . txt file with Javascript. I am not using any IDE, I just created . html files, . js and . txt in a folder. To simplify the question, I…
-
1
votes1
answer671
viewsKendo UI Grid Export Excel
I have the following Grid in *.cshtml: $.ajax({ url: '@Url.Action("RetornaJsonGrid", "PacoteLicencas")', type: "post", cache: false }).success(function (json) { $("#gridPacoteLicencas").kendoGrid({…
-
1
votes2
answers191
viewsDisable part of the form by Jquery
I don’t have much experience with Jquery and Ajax. I am developing a form that when selecting the Radio Button to send anonymous information, it should make invisible the part of the form that…
-
1
votes1
answer480
viewsLoad part of the page in AJAX
I’m doing an app. The application has a top, side menu and contents according to the selected menu. In the content the user can add, remove, change and my question is: for example, when adding a new…
-
1
votes1
answer1360
viewsHow to create fade-in effect in div?
I have a div which receives data from the Mysql database and lists the images. I placed a lightbox to make more interesting the visualization of images and an effect of fade-in so that whenever you…
-
1
votes1
answer58
viewsHow to detect if a Wordpress article has been loaded into a lightbox?
I am creating a news site, I am using Wordpress as CMS and I am using a plugin Jquery (Magnific Popup) to open the articles in a lightbox. I did the single.php without the headline and without the…
-
1
votes2
answers722
viewsHow to update a table by ID?
I have a table and in it I have a icon with the event onClick, the script until then is doing his job which is to change the state of true for false, if this is clicked. My job is to update this…
-
1
votes0
answers107
viewsProblem when closing Lightbox when I call AJAX
I’m in trouble when on this site http://santins.com.br/_z/holcim session access PROJETO and click on RELEASES. While I do not click on any titles that loads via AJAX the content of the post, the…
-
1
votes2
answers980
viewsEnable fields from the completion of a previous field
I need to make a form that, to enable a field is required to fill in a previous field. Since there will be a pagination between a question and another (next or previous). You can do it in Ajax? I’m…
-
1
votes1
answer667
viewsUpdate image with timer using AJAX
I have this function: if ($files_count == 0) { ?> <img src="img/upload.gif"> <?php } And I needed this to update every five seconds refresh on the page. I have tested several AJAX…
-
1
votes1
answer342
viewsRequest Ajax Codeigniter
I am receiving the following error when sending json data via ajax using codeigniter: Disallowed Key Characters. When sending only one object works smoothly, but when sending more of an object…
-
1
votes2
answers2504
viewsHow to run a JS or jQuery function after an update, Reload in JSF and Primefaces?
I need to run this function after a button gives an update="@form" on the page <script type="text/javascript"> function carregaCss(){ $(".ui-icon-calendar").addClass("glyphicon…
-
1
votes2
answers946
viewsQuery the return of an Ajax
I have a field select and need to query and load the result dynamically with Ajax. I currently have the following code (which does not appear to work or to be incomplete): $('#formProd…
-
1
votes2
answers470
viewsAnalysis on AJAX code
I found this code, which is like a Long Polling, and wanted to know if I might have trouble using it. And I also wanted to know the cons of that code if I were to use it. pagina.html => page that…
-
1
votes1
answer110
viewsproblem with page complete in ajax
I have a code that is working relatively well but has a small problem that I do not know how to solve... On one page I have several combos that when clicking launch orders ajax and will complete…
-
1
votes3
answers6609
viewsPrint without confirmation window in PHP, Javascript or Ajax
I have a non-tax Zebra TLP 2844 thermal printer, and I’m developing a password generation program to print on that printer. I’m using the functions printer_. I tried the following example code:…
-
1
votes1
answer502
viewsHow to add an amount sent from an onclick to Ajax date?
I have a table in HTML and in a table column there is a link that opens a Modal. In this modal I register approvals and show who approved and the date of approval (More than one person can approve,…
-
1
votes1
answer156
viewsremove javascript file from a page header
I have an Asp.net application where I load, according to the will of the user several usercontrols. Each usercontrol loaded, via scriptmanagerproxy loads a javascript file. As it is loaded by…
-
1
votes2
answers1732
views -
1
votes1
answer256
viewsAbas Asp.Net MVC x Asp.Net Webforms Ajax Toolkit
Does anyone know any technique for creating and manipulating server-side tabs using the AJAX with Aps.Net MVC? I’m looking for something very similar Asp.NET Webforms Ajaxtoolkit, that can…
-
1
votes1
answer260
viewsCall in Ajax
I’m implementing a html of a system using the php and I’m also making a call on ajax to open any page, but when it returns to mine url, it does not read the include page. Example: The html page:…
-
1
votes1
answer254
viewsStop Form Action with Ajax
What I desire I add fields dynamically stating how many lines I want to add. I wish that as soon as the user clicks to submit the form, I do a check using Ajax to see if any of the informed data…
-
1
votes1
answer344
viewsTwo models and a controller
Following the reasoning of that other question of mine, where I create two models for manipulations, as if I could use a controller to make the manipulations in the tables ? My intention in doing…
-
1
votes1
answer109
viewsFieupload with Ajax.Beginform
I’m having a problem, I need to update an image in the bank, I’m sending this image with a fileUpload, and I have an Ajax.Beginform ( because I use the ajax call to create tabs on my page.), as far…
-
1
votes1
answer1041
viewsLoad and read XML via AJAX Cross-Domain
I have an AJAX Cross-Domain request that receives an XML. After a lot of work, I was able to download the XML but I don’t know if I did it the right way because it never arrives in Success. Follow…
-
1
votes1
answer1437
viewsLearning to use AJAX in ASP.Net MVC 4
In my project, I have two models different, generating with this, their controllers and your views. Only what happens is that I don’t know how to use AJAX and urgently needed a help from you. What…
-
1
votes2
answers395
viewsIt is possible to return a vector to a javascript
I’m developing customizable graphics by users where it can select the options they want, parameters to the php searching in the database sql and give me back what I want. For the charts I’m using…
-
1
votes1
answer174
viewsUse of callback to work with asynchronous javascript
Following the code below, is there another better way to call the outgoing methodEmail() after receiving "Success" in the ajax called by the Video() method? Notice that I used callback as a solution…
-
1
votes2
answers1599
viewsUpdate Mysql data with Ajax
I have an ads table with a field called highlight, by default its value is 0. I list all the ads on a table in HTML. I wanted to make when the user click on "Enable highlight" it send an update in…
-
1
votes1
answer7085
views"Provisional headers are Shown" slow request
When I make an AJAX request with $.post jQuery, while the request is made Chrome displays me a message Provisional headers are Shown and I feel that he stops the request while displaying this…
-
1
votes0
answers65
viewsHow to debug (show errors) on a system that uses Mootools?
all right? I don’t know JS in depth, but I need to debug a chunk of code that uses Mootools. When I tell my code to write an array with print_r or debug (from cakephp), I don’t see anything and the…
-
1
votes1
answer547
viewsdataType AJAX attribute - Jquery
I know that with dataType set to XML, he understands that the return is XML and I can navigate the returned object as if I navigated by DOM, so I set it to HTML(dataType:"html"), and I hoped that…
-
1
votes1
answer587
viewsResponse time from Ajax
Guys I’m doing my first AJAX and I’m having a problem which is this. It calls a PHP routine that downloads and uploads via FTP one or more files. And this may take a while. How do I keep AJAX…
-
1
votes0
answers38
viewsHTTP header authentication error
I’m trying to set up a Zopim Reseller API, only I’m facing a problem: Key API authentication and Secret API. I have the following Javascript code: <link…
-
1
votes1
answer309
viewsI need script to delete mysql data with php
people need a php script where I log in and grab the user id and where you can change user properties for example: I have a table in mysql with: USER: TEST, POSICAOX: 10, POSICAOY: 10. the script…
-
1
votes1
answer60
viewsProblems with . load accentuation
The Site is all right, database, files and put everything in utf-8, but when I will use the $("#aviso").load("inc/aviso.php");},1000); It results in these characters , when I access the warning.php…
-
1
votes1
answer43
viewsJson with problem, does not continue execution after request
Code of the contorller public JsonResult InsertComment(string description, int postID) { try { Comment comment = new Comment { Content = description, DataCommented = DateTime.Now, PostID = postID,…
-
1
votes1
answer751
viewsRequest AJAX Wordpress with problems
I am developing a form template within a wordpress theme. I need the form data to be sent via e-mail to a certain address via AJAX. Here is the processing of the form in JS: var FormData =…
-
1
votes2
answers444
viewsStreaming data over HTTP in Javascript
There is some way to send data over Http, but instead of all the information at once, send one part at a time? For example: I make an HTTP request to GET /produtos. This will return all my products…
-
1
votes1
answer918
viewsReturn Exception Java to Ajax
all right? I’m working on a project, and the back-end (java), is totally separated from the front-end, and they communicate through REST. I have a big question about the exceptions. For example, an…
-
1
votes1
answer1747
viewsAJAX request gives error and status "canceled"
I have that code: $("#go").click(function(){ var email = $("#email").val(); var password = $("#password").val(); $.ajax({ dataType:'html', type: 'post', data: 'email=' + email + '&password=' +…
-
1
votes4
answers685
viewsError in JSON PHP return to AJAX
I cannot return the Success, it is always falling into error. The server-side part appears to be ok, the email is sent correctly, I just can’t display the Success and I don’t understand why. PHP…
-
1
votes1
answer605
viewsHow to get back data from a Angularjs post request
I have the following code: $http.post('data.php').success(function(data) { return data; }).error(function(data) { console.log(data); }); How to handle data from this request? I’m doing it this way:…
-
1
votes1
answer1227
viewsmanipulate another web page via javascript
The following is, I need to access a website and do a search on it through my page. I am trying as follows: <html> <script type="text/javascript" src="js/jquery.js"> </script>…
-
1
votes1
answer1134
viewsManipulating links with accents
I am capturing news links posted on a particular site using the following code: function academia(){ function makeNews(res){ var soup = $(res.responseText).find('div [class~="tileImage"] h2');…
-
1
votes1
answer160
viewsChange label text while running a loop on the server
I have a screen that does a lengthy processing, and there’s a for that each next, I want to set a label for the user to see the process. I know it can be done by ajax, but I haven’t found anything…
-
1
votes2
answers40
views -
1
votes1
answer342
viewsProblem when making AJAX DELETE request by sending JSON
When making a request DELETE a url that does not support OPTIONS browser returns me: 405 Method Not Allowed Is there any way to prevent, in my Javascript code, the browser to send a pre-request…
-
1
votes1
answer3348
viewsSend and request form via Ajax - (pure Javascript)
I’m a beginner in Javascript and I started to see Ajax. I made an example where I have a form that sends a name to a php file. This php receives via post and writes the information in a txt. I am…
-
1
votes1
answer416
viewsCreate a dynamic checkbox value (value) using ajax
I have an ajax code http://jsfiddle.net/rubensoul/dcb14q79/ and I need the values that appear to be dynamic, example: In the link I put has 3 inputs and in js I created for only 1, if I put for…