Questions tagged [jquery-1.9]

jQuery is a fast, small, and feature-rich JavaScript library. Version 1.9 was released on January 15th, 2013.

jQuery is a fast, small, and feature-rich JavaScript library. Version 1.9 was released on January 15th, 2013.

It removes or modifies several APIs that behaved inconsistently or inefficiently in the past. The majority of these changes have been foreshadowed by their deprecation in previous versions of jQuery, particularly 1.7 and 1.8.

See also the official homepage and the release notes.

113 questions
61
votes
1 answer

$.browser is undefined error

Possible Duplicate: Is jQuery $.browser Deprecated? jQuery latest $.browser In a code I am using JQuery is loading. I have gone through all the files that should be loaded, but I can't find where JQuery is loaded. I need to include a second…
Anders Branderud
  • 1,878
  • 6
  • 29
  • 45
47
votes
4 answers

Angularjs ng-click: how to get `this` data?

Let say I have this item in the list with angular ng-click event. Delete How can I get the data/ info if this then? $scope.delete = function() { var id = $(this).attr('data-id'); …
Run
  • 54,938
  • 169
  • 450
  • 748
33
votes
3 answers

What changed in jQuery 1.9 to cause a $.ajax call to fail with syntax error

I'm making a REST DELETE call, which returns a 204. In jQuery 1.8.3 this works, and hits the request.done callback. But if I use 1.9 it goes to request.fail with a parsererror in the textStatus and a 'SyntaxError: Unexpected end of input' in the…
Gene Reddick
  • 4,655
  • 4
  • 34
  • 35
19
votes
4 answers

How to access jQuery serialized data?

How can I access the data that has been 'serialized' using the jQuery function? var test = $("form").serialize(); I have this data... url=hello+1&title=hello+1&content=abc How can I get the value of 'url'? - I tried this... console.log(test.url);…
Run
  • 54,938
  • 169
  • 450
  • 748
17
votes
2 answers

Syntax error with parseJSON during unobtrusive validation

My MVC app is generating the following HTML which causes a Javascript syntax error upon submission (I'm not typing anything into the two text boxes). Here's the generated HTML and the submit handler:
16
votes
3 answers

jQuery 1.9.1 property selector

Background As of jQuery 1.9 the .attr(..) method no longer returns property values, instead we now have to use .prop(..). Unfortunately this also applies to attributes specified via an attributes selector i.e.…
Walter
  • 295
  • 3
  • 11
14
votes
2 answers

Knockout 2.2.0 error with jQuery 1.9

I copied one of examples of knockoutjs:
happyZZR1400
  • 2,387
  • 3
  • 25
  • 43
8
votes
4 answers

jquery filter: get the first match only?

I want to find a match in the link's url and then do something about that link, such as changing it colour, etc. $("a").filter("[href*='id=10']").css({color: 'red'}); html, 0
Run
  • 54,938
  • 169
  • 450
  • 748
8
votes
2 answers

Angular.js/jQuery html string parsing in 1.9.1 vs. 1.8.3

Trying to do angular.element(stringWithHtmlStructure); causes Error: Syntax error, unrecognized expression:
bar
in jquery 1.9.1, however it works in jquery 1.8.3 Is it an issue or a feature? Security one perhaps? How do I deal…
fxck
  • 4,898
  • 8
  • 56
  • 94
8
votes
3 answers

How to replace "live" from jQuery 1.8.3 to jQuery 1.9?

My web framework automatically updated my jQuery script to the current last version, the 1.9. Now all my: $(".myclass").live("click", function() {... don't work anymore. I mostly used it with some ajax called which filled html in my page. I would…
Polopollo
  • 377
  • 1
  • 5
  • 13
7
votes
3 answers

How to find the highest z-index within a document no matter what tags they are?

How can I find the highest z-index within a document no matter what tags they are? I found this code but I tested it and it does not work, //include jQuery.js -- visit: http://jquery.com/ $(function(){ var maxZ =…
Run
  • 54,938
  • 169
  • 450
  • 748
7
votes
1 answer

ajaxComplete, XMLHttpRequest is undefined

I have a global ajaxComplete handler: $('body').ajaxComplete(function (event, request, settings) { if (request.getResponseHeader('REQUIRES_AUTH') === '1') { alert("unauthorized"); }; …
user348173
  • 8,818
  • 18
  • 66
  • 102
6
votes
3 answers

jquery: remove the pointer cursor?

Why can't I change the CSS of an a tag with jquery? For instance, html, 1 2 3 4 link 1 and 2 are not clickable so I want to…
Run
  • 54,938
  • 169
  • 450
  • 748
6
votes
3 answers

Alternative to .selector property now that it is removed in jQuery 1.9

As of jQuery 1.9 the .selector property of jQuery objects has been removed. (I'm a little confused as to why, exactly). I actually use it in a few unique scenarios, and I know that I could do other things to prevent this. Just wondering if anyone…
5
votes
1 answer

jsrender/ jsviews: how to loop a selected object list?

How can I loop a selected group/ object list only from my json data? For instance, I just want to loop "ID2" in the example below, json, { "ID1": { "items":{ "0": "VALUE1", "1": "VALUE2", "2": "VALUE3", …
Run
  • 54,938
  • 169
  • 450
  • 748
1
2 3 4 5 6 7 8