Questions tagged [jquery-1.5]

For issues relating to using jQuery, version 1.5.

jQuery is a cross-browser JavaScript library that provides abstractions for DOM traversal, event handling, animation, and AJAX interactions for rapid web development.

70 questions
278
votes
7 answers

How to get response status code from jQuery.ajax?

In the following code, all I am trying to do is to get the HTTP response code from a jQuery.ajax call. Then, if the code is 301 (Moved Permanently), display the 'Location' response header:
Mahesh
  • 2,933
  • 2
  • 16
  • 8
60
votes
9 answers

parsererror after jQuery.ajax request with jsonp content type

I am using jQuery Version 1.5.1 to do the following ajax call: $.ajax({ dataType: 'jsonp', data: { api_key : apiKey }, url: "http://de.dawanda.com/api/v1/" + resource + ".json", success: function(data) { console.log(data); }, …
Thomas
  • 10,289
  • 13
  • 39
  • 55
38
votes
5 answers

Why is jqXHR.responseText returning a string instead of a JSON object?

I have an $.ajax() request with the dataType set to "json." The server is returning JSON with the correct mime type of "application/json." And yet the responseText in my jqXHR object is always a string. What am I doing wrong? Is this how it's…
user603284
35
votes
7 answers

JQuery Conflicts with Primefaces?

I have included JQuery1.5 in the header of a JSF page. In that page there is a bunch of Primefaces components already coded. After I have included the Jquery.js in the header of the page, some primefaces components like loses their…
Selvin
  • 12,333
  • 17
  • 59
  • 80
23
votes
2 answers

How to use jQuery Deferred with custom events?

I have two abstracted processes (e.g. managed within js objects using the revealing module pattern that do not expose their internals) that fire custom events when they complete. I want to perform an action when both custom events have fired. The…
Adam Flynn
  • 949
  • 2
  • 9
  • 21
15
votes
1 answer

jQuery jqXHR - cancel chained calls, trigger error chain

I am creating a ajax utility for interfacing with my server methods. I would like to leverage jQuery 1.5+ deferred methods from the object returned from the jQuery.ajax() call. The situation is following. The serverside method always returns a JSON…
m0sa
  • 10,712
  • 4
  • 44
  • 91
13
votes
2 answers

jQuery version 1.5 - ajax -