29
votes
6answers
46k views

Problems with jQuery getJSON using local files in Chrome

I have a very simple test page that uses XHR requests with jQuery's $.getJSON and $.ajax methods. The same page works in some situations and not in others. Specificially, it doesn't work in Chrome on ...
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 ...
1
vote
5answers
1k views

Creating jQuery AJAX requests to a PHP function

So far when creating AJAX requests I have been posting to a separate PHP file. Is it possible to create a jQuery AJAX request that calls a PHP function rather than posts to a separate page? If you ...
33
votes
5answers
49k views

jQuery Upload Progress and AJAX file upload

It seems like I have not clearly communicated my problem. I need to send a file (using AJAX) and I need to get the upload progress of the file using the Nginx HttpUploadProgressModule. I need a good ...
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 ...
24
votes
3answers
30k views

Download a file by jQuery.Ajax

I have a Struts2 action in the server side for file downloading. <action name="download" class="com.xxx.DownAction"> <result name="success" type="stream"> <param ...
3
votes
2answers
5k views

$.ajax call working fine in IE8 and Doesn't work in firefox and chrome browsers

here is my code $.ajax( { type: "GET", url: 'http://devserver:7995/stdpart/services/GetAllPartsWithFilter', dataType: 'json', data: jsonPartsData, success: fnGetPartsData, ...
5
votes
6answers
8k views

Cross-Domain Requests with jQuery

For a project I need to get the source code of web page of different other domains. I have tried following code: $('#container').load('http://google.com'); $.ajax({ url: 'http://news.bbc.co.uk', ...
42
votes
1answer
19k 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 ...
10
votes
4answers
28k views

jQuery iframe load() event?

Does anyone know if there is such a thing? I have a iframe that's being inserted with $.ajax() and I want to do some stuff after the contents from the iframe are completely loaded: .... success: ...
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 ...
21
votes
10answers
28k views

Gmail like file upload with jQuery

I would like to upload files just like google mail does. I would want to use jQuery and PHP to do it is there anyway of getting the progressbar etc.? Here I added a video of how google does it. ...
10
votes
1answer
19k views

Upload File With Ajax XmlHttpRequest

Hi i am trying to send file with xmlhttprequest with this code. <script> var url= "http://localhost:80/...."; $(document).ready(function(){ ...
3
votes
2answers
9k views

Passing Javascript Variable to PHP using Ajax

I'm working on an existing script at the moment which uses Ajax, something I've never worked with before. I have a variable set in my javascript file which gets its value from an input field on my ...
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 ...

1 2 3 4 5 24
15 30 50 per page