jqueryui

Call event after sorting in JQuery

Background Let me start off by listing my opinion of jQuery: I've been anti-jQuery for the longest time I think it does have its uses and parts of its code can be reused I feel if you're against something, you should know what you're "against" I've created a number of examples and compared that to ways I've done things in the pa...

JqGrid inline editing confirm box dialog

I'm doing some inline editing on the jqgrid. The client wants a confirmation dialog to appear that the user really wanted to save the changes made (similar to how delete works). In looking at http://github.com/tonytomov/jqGrid/blob/master/js/grid.inlinedit.js I've noticed that the editRow command takes these parameters. table.jqGrid('...

Mod or 33% function regarding jQuery Progressbar update to 100%

How might one handle making a progressbar update to 100% based on having one or more items from all 3 groups? For instance if I have 20 fruits, 0 grains, and 2 vegetables, it should show 66/67%. If I have 1 or more items from each group, show 100%; and having only 1 or more of 1 group should show 33/34% complete. I'm not sure if I sho...

IE7+ Rounded Corners w/ jQueryUI

I'm not really sure how to accomplish this with this theme. The Filament Group has shown some promise in this demo. But not all that glimmers is gold, since the accordion and other plugins won't work correctly (it's a work in progress). Related questions include: Round Corners in IE using ui-corner-all ...

Jquery-ui autocomplete multiple instances

Hi I have multiple jQuery-UI autocomplete instances running on a single page. <div id="div1"> <input name= "city[1]" class= "city" id="city1" /> <select name = "select1" class = "zipcodes" id = "zipcodes1"></select> </div> <div id="div2"> <input name= "city[2]" class= "city" id="city2" /> <select name = "select2" class = "zipcodes" id...

jQuery resizing contained considering container's margin

I don't understand why a resizable containment to the container does not factor in padding and margins. See my jsfiddle Is there anything I'm missing? I think something is off for the maxHeight. If it's retrieving outerHeight(true) then I shouldn't also need to include css('margin-(top|bottom)'), but it looks funky without. Also, fo...

jquery and jqueryUI conflicting

Is jquery 1.3.2 conflicting with jqueryui 1.8.4? I get the error "Too much recursion" (using the code below). When I combine jquery 1.3.2 with jqueryui 1.7.2 I don't get this error, but it breaks my code... Is there somewhere a reference table which jquery version works with which jqueryui code? <html> <head> <title>This is the title<...

Why do images need to be surrounded in div/span elements for effects to work properly?

I don't particularly understand why an image would work in a span, but not by itself. See complete example here. JS $(document).ready( function () { $('#banner').hover( function(event){ $(this).children().hide("slow");} , function(event){ $(this).children().show("slow");} ...

jqueryui datepicker throwing error at code relating to zIndex

I am developing an asp.net page/application. I have created a textbox that i set as a datepicker using the datepicker from jqueryui. in firefox and chrome the datepicker does not render. in IE9 the date picker renders if i ignore the error. the error is at line 644 in jquery.ui.datepicker.js. the code where the error is thrown is ...

jQueryUI DatePicker Customizing the Year

I have a Datepicker using jqueryui DatePicker. The behavior requirement is: A User can store a Birthdate for a friend. The User should be able to store a year if known, or select "N/A". If "N/A" is selected, Store the year 1900 in the database and only display the day and month in an input field to the User. The dropdown should star...

What is the proper way to toggle a switchClass in jQuery?

Consider: <div id="obj" class="foo"><!-- --></div> Expected: What I'd like is to keep switching between class "foo" and "bar" on each mouse click. Toggle class just seems to add and remove "bar", which isn't good enough. I can accomplish the effect I want with using a combination of .hasClass(), a ternary condition, and swi...

jQuery: keep toggled child element open when hovering over it

My question is similar, but different from jquery-hover-menu-when-hovering-over-child-menu-disappears. I originally had the hover event on the li.item, which was a little quirky, but did what i needed it to do. I switched the hover to the span so that the event would fire on the text block, rather than the list block, which expands the...