Questions tagged [jquery-1.8]

For issues relating to using jQuery, version 1.8

jQuery 1.8 was relesed on August 9th, 2012.

Key features:

  • Sizzle re-architected: jQuery’s selector engine is faster than ever
  • Animations re-imagined: varius improvments
  • Automatic CSS prefixing: selects the correct prefixed css-property for the user's browser
  • More flexibility with $(html, props)
  • Smaller code size
  • Modularity

See also the official homepage and the release notes.

45 questions
29
votes
6 answers

jQuery 1.8 outer Height/Width not working

I have used outerHeight and outerWidth on many places. Now, after jQuery 1.8 was released I have met a lot of issues caused by object return instead of its size. For example: $('#stackoverflowdiv').Height() // returns 100…
gotqn
  • 42,737
  • 46
  • 157
  • 243
21
votes
2 answers

jQuery 1.8 find event handlers

How to find event handlers on an object in jQuery 1.8+? var func = function(){ alert(1); }; var obj = $('#obj'); obj.on("click", func); // obj.data('events') is undefined
Eddie
  • 1,436
  • 5
  • 24
  • 42
11
votes
7 answers

Why does Firefox return 0 as the value of $(window).height()

It seems to me that Firefox ought to be better equipped to return the proper value when using $(window).height(). I am using jQuery 1.8.2. Is this a bug in that particular build? Every other browser I have tested returns an appropriate value when…
killtheliterate
  • 195
  • 1
  • 2
  • 9
10
votes
2 answers

jQuery .toggle event deprecated, What to use?

Since the jQuery .toggle event method is deprecated. What are we suppose to use to simulate this event (alternate clicks)?
user1834464
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

Avoid resize event to be fired on page load in Chrome

I've noticed the $.resize() event of jQuery is fired on page load without any actual "resize" of the window depending on the browser. It is not only fired once, but even twice sometimes. (on load in Chrome 30.0.1599.101 m, on resize in Opera...) Is…
Alvaro
  • 40,778
  • 30
  • 164
  • 336
6
votes
3 answers

jQuery 1.8: unsupported pseudo: hover

The following code raises the error unsupported pseudo: hover on jQuery 1.8, while it works perfect on jQuery 1.7.2: if(!$(this).parent().find('ul').first().is(':hover')) { $(this).parent().parent().removeClass('open'); } Does anyone know what's…
Gelin Luo
  • 14,035
  • 27
  • 86
  • 139
5
votes
2 answers

copy / clone script tag with jquery

I have a