jquery-plugins

jQuery alternatate rows color - IE problem

Hi, Why is it that this code: $('#tbl tr:odd').css('background-color', '#f6f6f6'); $('#tbl tr:even').css('background-color', '#cccccc'); works fine outside of the plugin in all browsers. While the same code: $('tr:odd', $this).css('background-color', options.tr_odd_bgcolor); $('tr:even', $this).css('background-color', options.tr_eve...

JQuery A-Tools inserts at the end of a textarea when it doesn't have focus

I'm trying to use A-Tools to insert something at the caret position in a TEXTAREA. However, when the TEXTAREA doesn't have focus, the stuff gets thrown at the end (I'd like it to be at the beginning). However, I don't seem to be able to figure out when that focus isn't there to insert at the beginning, as the caret position returned when...

jQuery Facebox: Sends empty input field value.

I have facebox plugin to my jQuery, to make lightbox for me. I made a link that you click on and then a friend request form comes up in it. The form makes an ajaxcall when click on "Send request", but the 2 fields dont send anything of what you have written in it, it just sends empty value. But if its not inside the facebox lightbox th...

Jquery Validate Plugin Concern

Hi All, I am trying my way around on using the jquery validate plugin but I cant seem to make it work on one particular aspect. I have this scenario, my form has limited space so the label error generated by the validate plugin cannot be seen if ever there is a validation error So what I did is, I created a container below my form to ...

jquery plugin problem | the plugin works only for the last span element on the page

here is a little demo of the problem: textAnimation Demo and here is the plugin code: (function($) { $.fn.textAnimation = function(options) { // debug(this); // build main options before element iteration var opts = $.extend({}, $.fn.textAnimation.defaults, options); // iterate and reformat each matc...

transfered img to canvas (with a jquery plugin), how to continue working with the canvas?

hi, i wrote a nice plugin which transforms IMG to canvas jQuery.fn.img2canvas = function() { return this.each(function(){ if($(this).get(0).tagName=='IMG'&&$(this).parent().get(0).tagName!='CANVAS') { //alert($(this).get(0).tagName); $(this).load(function() { v...

Using the jQuery star rating plugin with Rails

Hi, I'm in the process of integrating the jQuery star rating plugin with Rails. I've written the Rails server-side code and have sorted the submission of a new rating, but at the moment I'm struggling to figure out how to display the average rating value as a static series of stars using the plugin. Displaying the rating itself is fine:...

xsl:include and xsl:param at Google Chrome, with jQuery transform plugin

I've been trying to use XSL with Google Chrome, but with no success. I read that Chrome have some bugs with XSLT, and one of them is that it doesn't support xsl:include. Bug can be checked here: http://code.google.com/p/chromium/issues/detail?id=8441. After some research I found a new version of the transform plugin by Daer System, and i...

Unbinding Fancybox on thumbnail fade

Hi, I am using fancybox on a series of gallery images. The user has the option to click a link which fades out certain images of a certain category. I want to unbind the Fancybox method on the images that are faded but also re-bind when they are at full opacity. $("#clientsProjects").delegate("#clientsProjects nav a", "click", functi...

How to implement my validation, through jquery validation plugin? I am not able to validate my form?

This is my HTML page.. <div> <form id="signupForm" method="get" action=""> <table> <tr><td><input type="button" value="New" onclick="clearuserfields()"/></td></tr> <tr><td>USERID:</td><td><input type="text" id="userID"/></td></tr> <tr><td>FNAME:</td><td><input type="text" id="fname" name="fname" /></td></tr> <tr><td>LNAME:</td><td...

dynamic href id tags with Jquery Tipsy plugin

I am trying to get the tipsy plugin working and can't seem to do it with dynamic id's. this is the code I was trying to use. jQuery(document).ready(function(){ jQuery("a#[id^='pro_']").each(function(){ jQuery("a#[id^='pro_']").tipsy({gravity: jQuery.fn.tipsy.autoNS,live: 'true'}); }); }); a link would look someting l...

jquery calculation getting size of calculations...

I used the Jquery calculation plugin successfully to perform two calculations on both subtotals and a grand total much like the last example on the demo page: http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm However I'd like to also get a total count of the number of beds that are selected but can't seem to ...

jQuery calculate plugin using the line name as well as price

Extending the example here: http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm How could I generate the subtotals, and additionally add in the Name of the product selected? Instead of: Qty Product Price Total 1 Learning jQuery $39.99 $39.99 1 jQuery ...

Is there a jQuery plugin with functionality of CSS3 flexible box model?

I want an element organization in my UI equivalent to the results of following CSS: #wall { width: 100%; display: box; box-orient: horizontal; box-align: stretch; box-lines: multiple; } Unfortunately browsers do not seem to support box-lines: multiple;, and some widely used browsers do not yet support flexible box ...

Remove leading zero from jclock

Anyone ever used jclock and know how to remove the leading zero for the 12h setting? ...

Ajax submit makes a full post after first submit

The first submit works as expected, but the next time it's fully posted back. I'm using jQuery.form plugin, specifically the .ajaxSubmit(options) call to submit the form. There are a couple levels of wrapper div's, but I debug the button.click binds and I can't figure out why the second time, even with the same variables, it does a full ...

Can I prevent downloading a JavaScript file?

Hi, Why I want to block a JS file download in HTML? Well, this is my time-chart for the page load: jQuery (1.2) loaded jQuery plugin loaded (extends the current jQuery object) custom JS loaded custom JS uses document.write to add extra scripts the added extra script loads a new jQuery (1.4, but it doesn't matter) -> so my extension is...

jQuery AutoSuggest Plugin

Can somebody post a simple html code on how to implement it,with simple data object. Here is the link http://code.drewwilson.com/entry/autosuggest-jquery-plugin I have tried everything to get it working and i have not succeeded so far, can somebody please help Thanks Mason ...

jQuery tooltip offset

$(document).ready(function() { $("#demo img[title]").tooltip({effect: 'slide'}); }); I want to add an offset to this function, but when i add offset [20, 0], it doesn't work. I would like to know how to code using 2 parameters. ...

Good jQuery Plugin for a Form Field Initial or Default Value?

What is a good jQuery plugin for a showing default value in an input box that disappears when it gets focus or a user starts entering text? ...