Tag: ajax

63 votes
16 answers
1.9K views
Ajax request returns 200 OK, but an error event is fired instead of success

I have implemented an Ajax request on my website, and I am calling the endpoint from a webpage. It always retu

avatar
Venice
0 1 0 9
asked 07 September, 2021
55 votes
30 answers
351 views
Scroll to bottom of div?

I am creating a chat using Ajax requests and I'm trying to get messages div to scroll to the bottom witho

avatar
Fabian
0 1 0 9
asked 07 September, 2021
59 votes
20 answers
2K views
jQuery AJAX submit form

I have a form with name orderproductForm and an undefined number of inputs. I want to do some kind of jQuery.

avatar
Keith
0 1 0 9
asked 07 September, 2021
56 votes
25 answers
1.8K views
Is Safari on iOS 6 caching $.ajax results?

Since the upgrade to iOS 6, we are seeing Safari's web view take the liberty of caching $.ajax calls. Thi

avatar
Luis
0 1 0 9
asked 07 September, 2021
51 votes
15 answers
1.4K views
How to manually send HTTP POST requests from Firefox or Chrome browser

I want to test some URLs in a web application I'm working on. For that I would like to manually create HT

avatar
Tana
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
780 views
Disable same origin policy in Chrome

Is there any way to disable the Same-origin policy on Google's Chrome browser?

avatar
Thurman
0 1 0 9
asked 07 September, 2021
54 votes
14 answers
1.1K views
How can I get jQuery to perform a synchronous, rather than asynchronous, Ajax request?

I have a JavaScript widget which provides standard extension points. One of them is the beforecreate function.

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021
48 votes
30 answers
2.1K views
How to manage a redirect request after a jQuery Ajax call

I'm using $.post() to call a servlet using Ajax and then using the resulting HTML fragment to replace a d

avatar
Tuan
0 1 0 9
asked 07 September, 2021
61 votes
18 answers
1.3K views
Abort Ajax requests using jQuery

Is it possible that using jQuery, I cancel/abort an Ajax request that I have not yet received the response fro

avatar
Roger
0 1 0 9
asked 07 September, 2021
62 votes
30 answers
2.1K views
How do I format a Microsoft JSON date?

I'm taking my first crack at Ajax with jQuery. I'm getting my data onto my page, but I'm having

avatar
Clarice
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
2.6K views
How can I upload files asynchronously with jQuery?

I would like to upload a file asynchronously with jQuery. $(document).ready(function () { $("#uploa

avatar
Dario
0 1 0 9
asked 07 September, 2021
59 votes
8 answers
1.8K views
Why does Google prepend while(1); to their JSON responses?

Why does Google prepend while(1); to their (private) JSON responses? For example, here's a response whil

avatar
Shantay
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
775 views
How to return the response from an asynchronous call

I have a function foo which makes an asynchronous request. How can I return the response/result from foo? I am

avatar
Lawanda
0 1 0 9
asked 07 September, 2021