jquery-plugins

jQuery Grid Recommendations

What are the most recommended jQuery grid plugins out there? I've been messing around with Flexigrid which seems to be fairly decent. Are there any other noteworthy ones out there I should be looking at? ...

jQuery tabs - getting newly selected index

I've previously used jquery's tabs extension to load page fragments via ajax, and to conceal or reveal hidden divs within a page. Both of these methods are well documented, and I've had no problems there. Now, however, I want to do something different with tabs. When the user selects a tab, it should reload the page entirely - the re...

Where does jQuery UI fit in MVC?

I need to develop a generic jQuery-based search plugin for the ASP.NET MVC application I'm building, but I can't figure out how it's supposed to fit, or what the best practice is. I want to do the following: $().ready(function() { $('#searchHolder').customSearch('MyApp.Models.User'); }); As long as I have implemented a specific i...

Get radio value inside iframe

How do I go about doing this with jQuery? Basically the structure: <form id="myForm"> <iframe> <!-- Normal HTML headers omitted --> <input type=radio name="myRadio" value=1>First <input type=radio name="myRadio" value=2>Second <input type=radio name="myRadio" value=3>Third </iframe> <input type=button value="Submi...

Best jQuery Status Message Plugin?

What is the best jQuery status message plugin? I like jGrowl and Purr, but jGrowl doesn't have the feature to remain sticky (not close automatially) and Purr doesn't seem to work right in IE 6. I would like to show messages like... the site is about to go down for maintenance, your such and such job has completed, and stuff like that. ...

jQuery Validation plugin: disable validation for specified submit buttons

I have a form with multiple fields that I'm validating (some with methods added for custom validation) with Jörn Zaeffere's excellent jQuery Validation plugin. How do you circumvent validation with specified submit controls (in other words, fire validation with some submit inputs, but do not fire validation with others)? This would be si...

jQuery plugin for pre-populating form text inputs

I know this plugin exists because I've seen it some time ago. It has the functionality to pre-populate given form text fields with text if they are empty when they lose focus, but the text disappears if focus enters the field or the form get submitted. This functionality can be seen on www.pownce.com. Does anyone have an idea where I can...

Using jQuery, Restricting File Size Before Uploading

On PHP, they have a way to restrict file size AFTER uploading, but not BEFORE uploading. I use the Malsup jQuery Form Plugin for my form posting, and it supports image file posting. I was wondering if perhaps there's a restriction where I can set how many bytes can pass through that AJAX stream up to the server? That could permit me to ...

jQuery Plugin: Handling Events

I'm currently working on a jQuery plugin and I'm wondering if it would be possible to have the plugin listen for events rather than being triggered by events. So instead of this: $('#element_id').mouseover(function() { $(this).plugin(); }); $('#element_id').mouseout(function() { $(this).pluginHide(); }); I want to try to do ...

JQuery datepicker- 2 inputs/textboxes and restricting range

I am using the Jquery datepicker plugin with two input boxes, one for the "From" date and the second with the "To" date. I am using the JQuery datepicker functional demo as a basis for getting the two input boxes to work with each other, but I need to be able to add these additional restrictions: Date range can be no earlier than 01 De...

Using the jQuery validatation plugin to send multiple values to an ASP.NET MVC controller action?

Hi, Using the jQuery Validation plugin and AJAX, how can I validate the contents of say an input (textbox) but pass more than one parameter to a controller action? A brilliant example of passing a single value via AJAX using the plugin can be found here. ...

Building jQuery UI Plugins

Beyond the official documentation, are there any recommended resources for learning to build jQuery plugins. I'm particularly interested in building plugins for the UI libary. I've been looking at the source for some of the official ones, but I've found they all look quite different from each other. Many are not well commented and it i...

How to clone a jQuery Listen plugin event?

I have some <tr> elements on my page with a click() event attached to an image that sits inside each one. I use this code $(this).clone(true).appendTo("table#foo"); to do the following: copy those <tr>s into a different table preserve the click events on the images inside the <tr>s (because of the true argument) All of that works ...

Nice way to show html <DIV> elements like gallery, mooflow, lightbox etc..

Hi, We have number of plugins to display images in a nice manner. For eg: mooflow(http://www.outcut.de/MooFlow/example-milkbox-bridge.html) with which we can display images in mac itunes manner. But i am wondering whether we have any plugins with which we can display html DIV elements like that. I don't have any image to display, but i ...

Submit with JQuery in firefox 3 & opera in a modal dialog box from SimpleModal

I'm trying to submit a form who is rendered in a SimpleModal dialog, but my submit is never called when I'm using FF3 & Opera (Chrome, Safari and IE works). I use the following code: function ShowModal(rendercontainerid, modalcontainerid, url) { if (url == '') return; $.get(url, function(data) { $(rendercontainer...

How many lines of code is in your custom jQuery script on your site? And how much is too much?

For our site, Im using a lot of jQuery - right now Im looking at 340 lines of jQuery code on top of the base library. How much is too much? I will be adding more, when do I start trying to condense the code and eventually move to OOP? ...

New jQuery plugin - What is the best way to get input and feedback?

I had a need for a certain functionality on my web apps and I use jQuery a lot, so I thought I would write a jQuery plugin. Since this is my first attempt to write a jQuery plugin, I would really like to get feedback from people, or maybe even get collaboration so others could work with me to modify/enhance my code. I thought the first...

Jquery Accordion Close then Open

Hi Everyone, I've set up a number of accordions on a page using the jquery accordion plugin so I can implement expand all and collapse all functionality. Each ID element is it's own accordion and the code below works to close them all no matter which ones are already open: $("#contact, #address, #email, #sales, #equipment, #notes, #ma...

Best way to ship external stylesheet for my new JQuery Plugin? Strategy needed.

I've written my first JQuery plugin and one of it's dependancies is an external css stylesheet. Do you think this is an acceptable strategy to include this in the distributable or should I embed style information in the plugin itself? Should I ship with no style information at all? The visual elements of the plugin make no sense without ...

jCarousel with unknown content width

Hi, I am trying to use jCarousel plugin for jQuery in order to provide my website users with scrollable (horizontal) content. The content I am mentioning is basically user defined <li> elements, styled so that they have a feel and look of a tab. so basically I am trying to achieve the same effect of the tabs in pageflakes.com. As you ma...