jquery-plugins

How to launch jQuery Fancybox on page load?

I would like to launch a Fancybox (e.g. Fancybox's version of a modal or light box) on page load. I could bind it to a hidden anchor tag and fire the click event of that anchor tag via JavaScript, but I would rather just launch the Fancybox directly and avoid the extra anchor tag. ...

How do you re-populate dynamically generated options for a select field?

Background I have two select form fields chained together: duration and frequency. When the user selects a frequency, the duration options are dynamically inserted. There are default options, but those are just so that the field isn't empty when the user expands it. For example, the frequency options are "day", "other day", and "week"....

jQuery idTabs plugin hover feature problem

I am using jQuery idTabs pluging. I want to give hover feature and use divs with this feature. Default settings are working with click event. How can I change this feature. Best Regards. ...

How to use jquery to decode the return json object?

Hi, I trid to use an upload plugin for jQuery. http://valums.com/ajax-upload/ When I set the returning respond type to json, firefox will popup a dialog asking how I like to handle the returning json object. People have asked the same question at the upload script's author's page but no answer so far. Hopefully javascript guys here can...

help modding jquery plugin : jsRepeater

jsRepeater (a template engine for jquery) has output formatting that let's you pass the template engine a function that will execute before the engine renders the final value. when I'm looping through an array of values I'd like the formatting function to receive the whole array in addition to just the one value. how can I modify the ...

Are there any Ajax(Prototype or JQuery Plugin) sample for stackoverflow-like voting?

any good ajax samples for implementing voting similar to the up and down buttons of stackoverflow.com ...

Is there a good jQuery plugin or JS code for time durations?

I basically want to produce the following: from int 67 to 1 minute 7 seconds from int 953 to 15 minutes 53 seconds from int 3869 to 1 hour 4 minutes 29 seconds pseudo code: // original <span class="time">67</span> //output <span class="time">1 minute 7 seconds</span> // js $('.time').format_duration(); ...

Jquery Jqmodal window IE position

I fixed the way the content was being pushed down with using the +position:absolute !important; hack that i've found. But now my question is no matter how i style the top (in the jqmWindow in IE it still seems to popup the window in the middle of the page. In FF however i've gotten the page to be more towards the top. The reason why i ne...

Why is jQuery deleting my <img> element?

I'm using jQuery with the BlockUI plugin to block a page after a link is clicked. I'm also using a DOM element to display a message when the page is blocked. Here's a simple example of the code used: <a id="testme" href="#">Click Me</a> <script type="text/javascript"> $(document).ready(function() { $('#testme').click(function...

use flexbox jquery based combobox with asp.net

Hi - I have a asp:dropdownlist populated by a storedproc which i want to replace with a flexbox. I see that flex box expects a json based content to it. Any pointers how to replace my code for that ? <asp:DropDownList ID="StepDropDown" runat="server" AutoPostBack="True" DataSourceID="SteppingDataSource" DataTextField="Name" DataValu...

jQuery Form Plugin - How To Change 'target' (for response) Value

This is in reference to jQuery 1.3 and jQuery Form Plug 2.25. Hopefully this is a cakewalk for even an amateur, but I am clueless. var x; $('div#response').fadeOut(300,function() { // do something x = this; } $('#myForm').ajaxForm({ target: x, success: function() { // do something } }); What I'd l...

jQuery form validation: standard windows dialog box when field is invalid

I need a very basic client-side form validation: whenever an invalid field is encountered display a standard windows dialog box, stop checking the remaining fields, and cancel submission. What is the easiest way to do the above with jQuery? ...

Problems re-populating select options in Rails when form returned with errors

I have a form with 2 select options in it -- frequency and duration. When there are errors with the form, and it is returned to the browser, the select options are not re-populated with the selections the user made even though the returned values for those fields match the values of options in the selects. Also, when the form is returned...

jQuery plugin that accepts and returns value using val() method

Does anyone knows how to create a jQuery plugin that will react to the call to val() method? Here's the scenario: Take a set of DIVs using jQuery selector and apply a plugin on them (let's say the plugin is called "mytest". Using the val() method on the same set of DIVs I'd like to set them some properties. What's the proper way to ...

jQuery Star Rating Plugin is not recognizing {split:4}

I'm using the jQuery Star Rating plugin on an ASP.NET MVC site, and I can't get it to work with split stars. As best I can tell, I'm creating the proper radio buttons. I've tried using both the RadioButton helper method and pure HTML, and I've also tried with and without disabled inputs (on this particular page, I intend to use disabled)...

How can I re-initialize Superfish everytime the page post back?

I just found out about superfish and currently using it on an asp.net. The problem is every time the page post back superfish plugin disappear. The site needs to run on IE6 so the javascript part is very important I was thinking of creating a javascript function that contains tha initialization of the plugin and called it at the page Pag...

jquery form validation with two validation messages.

Client side form validation becomes easiest by using jQuery. I tried all validators and they are so simple! But in date, number and range validators; I need to add two validators in sequence 1) Required 2) Date so is it possible. Another common requirement is to reset the Form Fiels. Is is possible using jQuery without writing too ...

How can I prevent a later binding on a jQuery autocompleter from firing?

The below code is very simple. I have a jQuery autocomplete bound to an html text input referenced by #search. When the user types something into it, a drop-out list shows suggestions from the server. If the user clicks on one of the suggestions, or presses Enter with it selected, a popup (facebox) appears showing the called page within ...

JQuery TableSorter Comma-Digit Parser not working

Here's my problem, I am currently using the JQuery Table Sorter and I found a Comma-Digit parser on the web. The problem I am having is it doesn't seem to be working. So here is what the column is sorted as: 4,666 141,666 293 341,666 346 461,676 This should be sorted as 293 346 4,666 141,666 341,666 461,676 The parser I am usi...

Has the community for the jQuery HighlightFade plugin died?

I'm currently using the jQuery HighlightFade plugin and can't seem to find if anyone is working on the next version (beyond 0.7 that is). I only went out looking for a new version because after I updated my jQuery.UI from 1.5.x to 1.7.x - the plugin doesn't work for IE 6/7/8 anymore (not sure if this plugin depends on jQuery UI, but I w...