• beforeload event in tab widget

    I have a seemingly common situation where each tab performs an AJAX request to load in data into the tab panel.  I am also using the cookie utility to remember the last selected tab.  I want to display a "Loading..." message in the ui.panel element, which is easily accomplished via the "select" event, but only when a tab is clicked on: select: function(e, ui){     $(ui.panel).html("<p>Loading...</p>"); }​ However, if the selected tab happens to fire an AJAX request when the page first loads, there
  • jQuery UI skeleton theme

    This probably is not a new idea but anyways.. I'm a front-end developer and used jQuery UI components multiple times, I think they are easy to implement and usually they do the job just fine. But, there's always but, most of the time our graphic designers want make changes to colors, backgrounds, icons etc. and that gives me usually headache. I have to overwrite UI's othrewise fine CSS in my own css and it feels like a hack (one element, multiple css). So my proposal is jQuery UI skeleton theme css.
  • Theme URI in Theme download

    When one customizes their own theme using the theme roller, downloads it, implements it, then later decides they want to make small changes to it, for example changing the icon color for default button state.  That person is currently SOL, because even though they have a hard copy of the theme, they can't go back to the theme roller and say, "Remember that theme I was working on last week?  I want that theme, but change the icon color." The URI of the download page holds all the meta data required
  • Firefox Bookmarklet Get Theme

    How feasible would it be to make it so when you use the Firefox bookmarklet on a page that uses a jQuery UI theme to give you a link to the ThemeRoller page with all the elements of that particular theme set? I had created a theme a long time ago and forgot to save it but it's still on my website and can't think of an easy way to get it back other than redoing the whole thing. Just an idea :) Mike
  • jquery.ui.tooltip: flexible width when using ajax

    Hello, I know the tooltip plugin is still under development, but it's unclear to me where I should log suggestions/questions such as this one. If you go to http://flexin.be/site/en/TLD/publicInformation/100007.html?_s=0&, you'll notice a list of extensions we support at the right of the page.  Hover any of the price tags you see, and we are asking the server to return the exact tax calculations from the server to display them in a nicely put tooltip. The issue we have with this is that the tooltip
  • jQuery UI - include the theme URL in the downloaded zip

    Hi, Firstly, many thanks for the wonderful jQuery and UI frameworks! They simply rock! One thing that would be great, is to include the URL of the currently downloaded theme, so it is easy to go back to the themeroller page and modify the theme. At the moment, when I modify a theme, I have to make sure I do not forget to copy/paste the resultant URL, so that, when I want to change it, I can go back to the site and do so. Cheers, Nick
  • Changing behavior of events to use something else than this

    If you use events the this reference is overwritten with the triggering DOM object. In classes this is not very useful because a direct called function looses their this reference. My suggestion is to give the user a method to change the behavior of events in the way that the user can set a new name where the DOM object reference is saved. For Example: var A = {  var1 : 1,  f1 : function() {  alert(this.var1) //will fail when event calling f1 directly  alert(A.var1) //will always work  } }; $(window).ready(A.f1);
  • VCS

    I think it would be wise to change VCS from svn to git for jquery-ui.
  • Why should left and right keys trigger autocomplete search?

    Can we ignore the left and right keys or make it an option to have these keys trigger the search action? It seems strange that moving the cursor left or right would trigger it. Add:                 case keyCode.LEFT:                 case keyCode.RIGHT: just before                 case 16:                 case 17:                 case 18:                     // ignore metakeys (shift, ctrl, alt) in the _create function.
  • Closest work with open child selector

     I'm not sure delegating from non-document elements is not officially supported.  But, I'd like to be able to do something like the following: $(">ul>li>a", el).live("click", func) because: $(el).find(">ul>li>a") works. for this to work, filter would need a context, but this starts going into Sizzle.  Is this something sizzle could support?
  • faster jQuery.trim()

    Here's a patch for a faster version of jQuery.trim based on native String.trim and these improvements: http://blog.stevenlevithan.com/archives/faster-trim-javascript Test case: http://jsbin.com/oquji/2 Patch: (removed) I also just requested a pull request. The native String.trim is ridiculously fast.
  • Button GET\SET Value

    Because the button is a part of a form element and can be used as a checkbox or radio, it should have a get and set value method. Though the values inherited from markup, i would propose to add this feature. For example I'm working with an Ajax form, and i need to change state of button each time i get a response, that kind of  behavior i don't need while submitting the form to a URL.
  • .data( object ) and memory-leak

    For quite some time now I had intention to open this discussion because of increasing tendency of using data/event API on native objects. Why this is a problem? Well, the current $.data implementation is optimized for host objects only, and not for native objects too. In fact, it uses a cache object to store all related data and an expando with numerical values to keep references. The need of such solution is unquestionable and it fits well because elements are normally "eliminated" by using .remove()
  • addDefault

    After talking w/ Yehuda, we came up with the idea of allowing people to provide default actions on triggered events.    I discuss it a little on JMVC's forum. http://groups.google.com/group/javascriptmvc/browse_thread/thread/4d5ae9c61f3817f0 But here's what it looks like essentially: //imagine some plugin wanting to provide default functionality on a "hide" event. $(".tab").bind("hide", function(ev){            var el = this;            ev.addDefault(function(){                    $(el).hide()   
  • $.inObject

    I think it would be convenient to have a method for testing whether or not a value exists in an object (of course you can use the long-hand version of this, but this seems more intuitive, especially when an inArray function exists):     $.inObject = function(object, value) {         return (typeof object[value] === 'undefined' ? false : true);     };
  • proposed fix for #6050

    http://dev.jquery.com/ticket/6050 line 46 in attributes.js: from: elem.className += " " + classNames[c]; to: elem.className += (elem.className === "" ? "" : " ") + classNames[c]; Leon
  • Issue with replaceWith...

    Hi, I recently ran into an issue with the replaceWith function. This function currently does  this.after( value ).remove(); when it tries to insert the value after the current node there are duplicate elements in the DOM (note the old element hasnt been removed yet). If my new content has any inline script elements that are trying to manipulate the content, then it manipulates the old content in the DOM and not the new content since the old content precedes the new content in the DOM. I would like
  • Filters for UNanswered questions and UNsolved problems

    Shouldn't there be filters in the forum for UNanswered questions and UNsolved problems? Are those not the ones needing attention the most? Or are they hiding in here somewhere?
  • Make the forum-select menu bigger

    There is a menu for selecting a sub-forum at the top of overview pages. Its just not big enough to show all entries, so that I have to scroll down to see eg. "About the jQuery forum". There doesn't seem to be any drawback to just making it a little bit bigger, removing the need for the scroll bar.
  • Revert to old $.fn.add() behaviour, but provide a $.fn.sort()

    The backwards incompatible change to $.fn.add() in jQuery 1.4 is bugging me. First of all, it's breaking some old code, and second of all it bugs me because I don't get *why* it was changed to return a source-order sorted collection. Consider this bit of code:    var newElm = elm.prevAll().add( elm.parent() ).eq(0); In 1.3.2 and earlier `newElm == elm.prev()`, whereas as of version 1.4 `newElm == elm.parent()`. Questions: Could someone help me understand why this change to `.add()` was a) beneficial
  • Annoying... $('<div>',{'class':'name'})

    What about adding an alias to map cls to class when constructing fragments with $(html, object). It is starting to strongly annoy me that every single time I want to add classes, I have to quote the 'class'. Can't fight ECMAscript, but I see no reason why we cant do a {class:'name'}. Am I alone? (And I really DO love the $(html, object), in case you suggest to not use it. It just feels retarded to write 'class'.) -- Aivo --
  • .live() types of events, number of events and more

    Hi, I've been away from the discussions for almost an year, and I'm hoping to contribute again. I've serched in the bug tracker for bugs that I could handle and found 2 related live bugs: #5804 - enhancement: .live('focus') proxys through to .live('focusin') #5801 - enhancement: support .live('hover',fn) After some tohgh I noted that live doesn't support binding multiple events at once. So I filled a new enhancement request (5852) and started a proposal to achieve the 3 at the same time. My initial
  • A new jQuery Forum Forum?

    At least initially, it might be nice to have a forum specifically for problems/suggestions/etc for the new forum (and rest of the site?).    "Using jQuery" should really be reserved for actually using the jQuery library. _jason
  • uaMatch function browser order

    Hi there! Congratulations with the 1.4 release! Thank you for giving jQuery to the world of JavaScript lovers! I'm following the 14 days closely, so I don't miss out on anything. During the vidcast of John on Day 3 of the 14 days of jQuery (http://jquery14.com/day-03 ) I noticed the internal 'uaMatch' function for checking out the user agent strings. To my surprise I noticed that they aren't ordered based on the browser 'market share'. I would have expected to test first for IE, second Mozilla, third
  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of