jQuery JavaScript Library suite for AJAX requests. A full set of functions that allows to load data from the server using asynchronous HTTP requests, without a browser page refresh.
163
votes
17answers
141k views
jQuery $.ajax(), $.post sending “OPTIONS” as REQUEST_METHOD in Firefox
Having trouble with what I thought was a relatively simple jQuery plugin...
The plugin should fetch data from a php script via ajax to add options to a <select>. The ajax request is pretty ...
79
votes
6answers
106k views
Sending multipart/formdata with jQuery.ajax
I've got a problem sending a file to a serverside PHP-script using jQuery's ajax-function.
It's possible to get the File-List with $('#fileinput').attr('files') but how is it possible to send this ...
70
votes
5answers
35k views
jQuery multiple events to trigger the same function
Is there a way to have keyup, keypress, blur, and change events call the same function in one line or do I have to do them separately?
The problem I have is that I need to validate some data with a ...
66
votes
4answers
40k views
jQuery single quote in JSON response
I'm making requests to my server using jQuery.post() and my server is returning JSON objects (like { "var": "value", ... }. However, if any of the values contains a single quote (properly escaped like ...
63
votes
8answers
51k views
Jquery - How to make $.post() use contentType=application/json?
I've noticed that when using $.post() in jquery that the default contentType is application/x-www-form-urlencoded - when my asp.net mvc code needs to have contentType=application/json
(See this ...
63
votes
1answer
55k views
jquery $.ajax timeout setting
I'm utilizing the magic of jQuery.ajax( settings ).
However, I'm wondering if anyone has played with the timeout setting much?
I know it's basically for dictating the local time for a request, but ...
57
votes
8answers
40k views
WARNING: Can't verify CSRF token authenticity rails
I am sending data from view to controller with ajax and I got this error :
WARNING: Can't verify CSRF token authenticity
So I think I have send this token with data.
Does anyone kno how can I do this ...
56
votes
4answers
22k views
Twitter bootstrap remote modal shows same content everytime
I am using Twitter bootstrap, I have specified a modal
<div class="modal hide" id="modal-item">
<div class="modal-header">
<button type="button" class="close" ...
50
votes
6answers
100k views
AJAX Jquery UI Dialog window loaded within Ajax style Jquery UI Tabs
The ajax tabs work perfectly well. It's pretty straightforward with that part. However, getting the ajax UI Dialog modal window to trigger off of a link has been un-succesful.
Any help in this would ...
48
votes
3answers
10k views
Rails not reloading session on ajax post
I'm experiencing a very strange problem with Rails and ajax using jQuery (although I don't think it's specific to jQuery).
My Rails application uses the cookie session store, and I have a very simple ...
44
votes
3answers
7k views
Can anyone explain what JSONP is, in layman terms?
I known JSONP is JSON with padding.
I understand what JSON is, and how to use it with jQuery.getJSON(). However, I do not understand the concept of the callback when introducing JSONP.
Can anyone ...
43
votes
1answer
20k views
jQuery.ajax handling continue responses: “success:” vs “.done”?
I have been working with jQuery and AJAX for a few weeks now and I saw two different ways to 'continue' the script once the call has been made: success: and .done.
From the synopsis from the jQuery ...
40
votes
1answer
29k views
Easiest way to create a cascade dropdown in ASP.NET MVC 3 with C#
I want to create two dropdown lists in a cascade using MVC3 (preferably Razor) with C#.
I would like to have one dropdown where you can choose the year and another one where you can choose a specific ...
40
votes
4answers
28k views
How to cancel/abort jquery ajax request
I've an ajax request which will happen in every 5 seconds. But the problem is before the ajax request if the previous request is not completed I've to abort that request and make a new request.
My ...
37
votes
2answers
8k views
How do you work with an array of jQuery Deferreds?
I have an application that requires data be loaded in a certain order: the root URL, then the schemas, then finally initialize the application with the schemas and urls for the various data objects. ...