Questions tagged [jquery-1.3]

jQuery 1.3 introduced new CSS selector engine, live events, jQuery event object, HTML injection rewrite and removed browser sniffing

jQuery 1.3 was released on January 14th, 2009. The main features introduced with this version are:

  • New CSS selector engine – nicknamed Sizzle.
  • Live Events: jQuery now supports “live events” – events that can be bound to all current – and future – elements.
  • jQuery Event Object: this object completely encapsulates all of the functionality normally found in a W3C-compliant event object implementation and makes it work smoothly across all browsers.
  • HTML Injection Rewrite: all of the code related to injecting HTML into a document (such as the append, prepend, before, and after methods) has been overhauled.
  • No More Browser Sniffing: jQuery no longer uses any form of browser/userAgent sniffing internally. Instead a technique called feature detection is used where a particular browser feature or bug is simulated to verify its existence.

Resources

39 questions
48
votes
4 answers

JQuery is waiting for images to load before executing document.ready

Update: This bug has been confirmed by at least two others. Even if you dont read my full post - if you're reading this and using JQuery 1.3.1 then stop using it if you're relying on any handlers that you want to execute when the DOM is complete but…
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
7
votes
6 answers

Selecting all empty text fields in Jquery

How can I find all text fields that have an empty value? $(":text[value='']") gives a JavaScript error I know I can do $(":text"), iterate through and return all fields with $(this).val()=='' I am looking for a cleaner method and using JQuery…
questioner
  • 775
  • 4
  • 9
  • 15
6
votes
3 answers

jQuery event handlers not firing in IE

I have a list of items on a page with a set of controls to MoveUp, MoveDown and Delete. The controls sit at the top of list hidden by default. As you mouseover an item row, I select the controls with jquery //doc ready function: .. var tools =…
misteraidan
  • 1,984
  • 4
  • 23
  • 31
5
votes
3 answers

How can I assign a property to a jQuery object?

It is in my understanding that referencing any DOM element in jQuery via the dollar sign (like this: $("#mydiv")), returns an object. I am looking to add an additional property to an object as such: $("#mydiv").myprop = "some value"; but this does…
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175
4
votes
3 answers

strange behavior when using jQuery fadeOut function on element with floated element and absolutely positioned element

I am trying to use jQuery to fade out a div, using the fadeOut function. In most cases, it seems to work fine, but in certain cases, not all of the content fades out. If I have an absolutely positioned element and a floated element within the div,…
Elias Zamaria
  • 96,623
  • 33
  • 114
  • 148
4
votes
3 answers

Finding all classes that match a pattern in an HTML document?

I got to thinking today: what is the best way of getting a distinct (ie no repeats) list of classes used in a document that (preferably) match a pattern (regular expression) pattern or (alternatively) start with a certain character sequence? JQuery…
cletus
  • 616,129
  • 168
  • 910
  • 942
4
votes
1 answer

Modifying jQuery ajax request Connection header

I'm trying to modify the Connection header with the following code with no success jQuery.ajax({ url: URL, async: boolVariable, beforeSend: function(xhr) { xhr.setRequestHeader("Connection", "close"); } }) The…
Pat
  • 5,263
  • 1
  • 36
  • 53
4
votes
2 answers

How do you select more than one element by id?

I have two identical click events for two different elements that do not share a class, as such: $("#element_1").click(function(){ alert("hello world"); }); $("#element_2").click(function(){ alert("hello world"); }); I am looking for a way to…
Yuval Karmi
  • 26,277
  • 39
  • 124
  • 175
3
votes
1 answer

Memory leak JQuery - all browsers

I am using jquery in my web page. I see a lot of memory leak happening and after a while the whole browser grinds to a halt. I used the sieve tool and noticed that there is a contsant increase in the no. of DOM elements, everytime by a no. of 4. Am…
3
votes
3 answers

JQuery event.target error

I've a box from divs (price_item) with several child divs (date, price etc.). I'm using it as a caroussel for showing prices. If one clicks on any child, the parent's background color must be changed to red. I wrote it…
balint
  • 3,391
  • 7
  • 41
  • 50
3
votes
1 answer

jQuery 1.3 only selecting the first element

I'm not sure if this is a bug or just some crazy new thing in jQuery 1.3 that I'm unaware of, or if I've just gone crazy. I have a table with 11 checkboxes in it, and I can't select them all using jQuery 1.3: // jQuery…
nickf
  • 537,072
  • 198
  • 649
  • 721
3
votes
3 answers

Add jQuery.parseJSON to jQuery 1.3

Is it possible to extend jQuery 1.3 to include the parseJSON function from 1.4.1+, and have it function the same way as it does in jQuery 1.4.1+? How would I go about that? I have some sites where I have to use jQuery 1.3, but I have a tool that…
Yahel
  • 37,023
  • 22
  • 103
  • 153
2
votes
3 answers

Is there an automatic jQuery plugin updater?

Is there some sort of utility available that will check my jQuery plugins and see if they are the latest version? I understand that there is not an easy way to check the version numbers automatically; but I wonder if anyone has taken a look at this.…
patricksweeney
  • 3,939
  • 7
  • 41
  • 54
2
votes
2 answers

jQuery dialog that darkens the screen like the link dialog does here

I like the look of the link dialog here. It darkens the screen and is probably modal (although I haven't tested that I just assume it is). What's a quick and easy way of darkening the screen like that witha jQuery UI Dialog?
cletus
  • 616,129
  • 168
  • 910
  • 942
2
votes
4 answers

jQuery selector problem

I have this selector: $("table.details tbody tr:not(.details)") But I'm wondering why this inner table gets selected too: …
Kordonme
  • 2,314
  • 3
  • 20
  • 32
1
2 3
Test application