jquery1.4

What real purpose does $.noop() serve in jQuery 1.4?

Pouring over the release notes regarding jQuery 1.4, I came acrosss $.noop() which is: Description: An empty function. (added in 1.4) You can use this empty function when you wish to pass around a function that will do nothing. Perhaps I'm missing something profound here, but what exactly is a practical use of passing around a...

jQuery 1.3 vs 1.4 (Performance)

jQuery 1.4 released recently and the new website shows some performance charts where 1.4 is clearly better, but has someone already done an analysis of overall performance improvement of 1.4 vs 1.3? If not, how do I profile both on my sites/pages, are there any tools? Can't wait to find out how fast is 1.4 compared to the previous versi...

jQuery 1.4 change event bug in IE

I have this simple select: <select name="zlecenia_index_icpp" id="items_per_page"> <option value="10">10</option> <option value="25" selected="selected">25</option> <option value="50">50</option> </select> and on it there's: $('#items_per_page').change(function(){ var controller_action = this.name.replace(/_...

jQuery. Different performance on local and through the internet

I use jQuery 1.4 for AJAX, MVC on the server side. Everything works fast on the local computer. Tables with data are compiled and sent as HTML documents (I’m testing the system with large tables, over 100KB). When I download the same page through the internet, everything works 5-10 times slower or is simply pending. I checked Forefox...

live change handlers in jQuery 1.4 don't work for select elements in IE

I recently decided to try jQuery 1.4, excited that I would finally have support for live event handlers that work for change events in IE. However, it seems like they don't always work. If I try to assign a live change handler on a select element, it doesn't work when I change it in IE. I tried this in IE 6, 7, and 8. In every other bro...

jqDnR plugin doesn't work with jQuery 1.4

I am using jqModal plugin which relies on jqDnR for drag and resize support. After I upgraded jQuery to 1.4, modal boxes stopped responding to "drag" event. Does anyone know why this is happening? Thanks.. ...

jQuery/JS, removing/trimming trailing html line breaks?

I'm looking for some ideas for the most efficient way to remove trailing html <br/> tags using javascript or jquery. RULES: The br, at the front and end must be removed. It must remove non-closing and self-closing br tags. All br within the textual content must remain untouched. THE HTML: <div class="generatedContent...

jQuery 1.4 Dynamically created images aspect ratio incorrect in IE8 and max-width

After upgrading to jQuery 1.4, when I try to add an image to a page dynamically using jQuery 1.4 in IE8, the image will lose the correct aspect ratio. This appears to affect only IE8 (IE7 and Firefox work fine) with jQuery 1.4 (1.3.2 works fine). Including the jQuery compatability file does not fix the problem. <!DOCTYPE html PUBLIC "-...

onclick event is broken in IE8

I have the following snippet which works as expected: <a href="http://google.com" onclick="return false;">Will go to google</a> Clicking on the href does not take me to google. But... if I include JQuery 1.4 and wire up a live click event to anything on the page (whether it exists or does not) this unrelated event handler stops wor...

live change handlers in jQuery 1.4.1 still don’t always work for select elements in IE

This question is related to my last one about jQuery 1.4. They supposedly fixed the bug causing the change handlers not to work in IE, but it is not fully fixed. I am trying to bind a live change handler to a select element. Most of the time, when I change it, the event handler fires. But if I tab to the element immediately after the pa...

jQuery :visible is true while executing hiding animations

I realize that this is how it's supposed to behave, but it creates a problem when I'm trying to determine the visibility of an element while it's in the process of hiding (or showing if I invert when ':animated' is true). So how can I use jQuery to determine whether an element is visible, with the caveat that elements currently visible ...

How do I change a variable based on a checkbox during validation

I've successfully pulled the checked value from a radio button group with jQuery 1.4 using the following code: var myFirstVar = $("input[name='myFirstVar']:checked").val(); How would I alter this code to find out whether a check-box was checked, and to change the value of the var based on whether it is checked or not. I tried many th...

Feature detection for jquery 1.4

How would I go about doing a detect to see if the browser is either firefox, ie (but not ie6), opera, chrome or safari by using feature detection? ...

jquery 1.4 Live behaviour on .each?

Does jQuery allow us to use .each loops for live elements? I'm creating radio buttons on the fly and need to loop over all of them, but the .each loop doesn't seem to work on live elements. If jquery is not supporting this kind of live looping, is there any other way to accomplish this? ...

jquery live hover

I'm using the following jquery code to show a contextual delete button only for table rows we are hovering with our mouse. This works but not for rows that have been added with js/ajax on the fly... Is there a way to make this work with live events? $("table tr").hover( function() { }, function() ...

jQuery 1.4 vs YUI3, which one to choose?

jQuery 1.4 vs YUI3, which to use and why? ...

How to fix .offset error when upgrading from jQuery 1.3.2 -> 1.4.2

Hey everyone, I just upgraded jQuery to version 1.4.2 and I am now getting an error on this line var offset = $(settings.textBoxObj).offset({padding: true, border: true}); Before I upgraded I was not getting this error. Does anyone know if something changed in 1.4 to affect this line of code? Metropolis ...

Started with jquery 1.4, should I care about previous versions?

I have a fair knowledge about Javascript, I started with jQuery 1.4 a week back and I have gone through some examples. It's very interesting to use it with my application. But my concern is, should I care about previous versions? Should I know what the downsides are of the previous version? ...

How to do custom jquery lives in 1.4.1?

Hi I been sort of using jquery livequery plugin and jquery live together. However now that I am using 1.4 it seems jquery livequery is not working 100%. So I am not sure how to tackle this problem I have this in livequery $('#Description').livequery(function () { $('#Description').htmlarea({ toolbar: [ ["bold"...

Unbind not doing what it should

Hi Guys, I must be missing something fundamental, but for the life of me cant work it out. the idea is when u click that click event is then unbind. Also to note the alert('test') is not firing. $(document).ready(function() { $('#menu .cat-item a').each( function() { $(this).bind('click',hide).unbind('click',hide); }); });...