jquery-plugins

jquery.validate plugin - how to trim values before form validation

I'm using the excellent jquery.validation plugin by Jörn Zaefferer and I was wondering whether there's a easy way to automatically trim form elements before they are validated? The following is a cut down but working example of a form which validates a email address: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:...

Jquery datetime picker plugin?

Hi, I am using this plugin: http://tedserbinski.com/jcalendar/index.html The plugin is supposed to accept a user defined startdate, but I cant manage to get it to work. This is the header of the js file: var _drawCalendar = function(dateIn, a, day, month, year) { var today = new Date(); if (dateIn == undefined) { // start fr...

jQuery tablesorter plugin styling

I have this page and the jquery function doesn't seem to execute. It should work like the example in this page. Any idea of what go wrong? ...

JQuery Plugin Help

I'm trying to develop a JQuery plug-in that will access an outside XML feed and display the results. Here is what I have so far: HTML Header Include <script language="javascript" src="jquery.rss.js" type="text/javascript"></script> JQuery Ready <script type="text/javascript"> $(document).ready(function() { $("#rss").rss({cou...

How to add a customized method to determine the number of words in an input box with Jquery form validation plugin?

I am developing a website which is similar to stackoverflow.com. A poster is required to enter 1 to 3 tags for his problem or task.If a tag has more than one word, then - is used to combine multiple words into single-words, space is used to separate tags. I use Jquery form validation plugin to validate the form. I need to add a customize...

jQuery - make global variable available to multiple plugins

I have a set of jQuery plugins I'm creating for a website. All of these plugin have the common functionality that they make $.getJSON() calls. The URL passed in these calls varies based on Dev, QA and production environments. I would like to store the URL in a central place so it can be easily changed. Where should the URL be stored?...

HOw to show the tooltip for an image in the jqGrid?

HOw to show the tooltip for an image in the jqGrid? ...

jQuery calender not displaying next and previous buttons in IE8

I am using jQuery calender. When viewed in IE8, the next and previous buttons are not displayed.But i am able to see the buttons when i view the page in IE7. is there anything that i am missing? ...

How to get the number of words in Jquery form validation plugin?

It is tag input box validation.A poster can combine multiple words into single-words, space is used to separate tags. I use Jquery form validation plugin to validate the form. I need to add a customized method to validate the tag input box. This is the code: $.validator.addMethod("tagcheck", function(value, element) { return valu...

How to add new item like "Create New" to the dropdown in Jquery Autocomplete when typed string does not match.

If the item does not match, I want "Create New" appear as an item in the dropdown, or "Create New" can appear everytime when user starts typing. Either way would work. Any ideas? Thanks! ...

Should I place Jquery files on my web server or just refer to them via jquery.com in my PHP files, which is better?

When I use Jquery or its plugin, should I just add <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/validate/jquery.validate.js"&gt;&lt;/script&gt; Or should I download both files and upload both to my web serv...

Help with jQuery Address Plugin on UI-Tabs

I am trying to get the jQuery Address-Depp Linking Plugin to work with YUI tabs, but am having zero luck. The plugin is here: http://www.asual.com/jquery/address/ Even with a tabs example: www.asual.com/jquery/address/samples/tabs/ But I'm stumped. You can see here is basic mockup of my page here: www.lolurdown.com/TabTest/ And cl...

Conditional Function for Start: setting in Ariel Flesler's SerialScroll

Site is Located @ beattrainsoundsystem.com/home I'm using serialScroll to animate a number of divs containing dancing characters, and using LocalScroll to animate the content divs. My issue is that when you try and load a URL with a hash ( for example beattrainsoundsystem.com/home#store) the character divs do not animate to the correct...

Table pagination not work

I use two jQuery plugins: quickSearch and tablePagination When I type text into the input box, pagination doesn't work :( This is my code: <html><head> <script type="text/javascript" src="/js/jquery.js"></script> <script type="text/javascript" src="/js/jquery.quicksearch.pack.js"></script> <script type="text/javascript" s...

How to change the content of "This field is required" in Jquery form validation plugin?

How can I change the general message of "This field is required" in Jquery form validation plugin to "このフィールドは必須です"? The color of the message can be changed by using the following code: <style type="text/css"> label.error {color: red;} </style> But how to change the content? I want to change all "This filed is required" messages. I...

Validator plugin firing with links and on submit

Hi, I have a web form which is split up into several HTML pages. I am using the validation plug-in to check fields on submit and this is working great. The spec says that users should be able to navigate through the form, both linearly (just using the submit buttons to go from page to page) and also to skip to any particular page. I ...

delete jquery cookie from other page on button click asp.net mvc

Hello, How can we delete a cookie [jquery plugin cookie $.cookie()] or set it to null on one page from a diff page? I want to delete a cookie on page 2 from page 1 on button click. I tried so many diff ways and I was unsuccessful. please help. is there any work around? ...

How to Validate numeric, positive and negative input using jQuery

I have tried several methods and keep getting object doesn't support this method error. I am simply trying to validate if the input in my textbox is a valid number Following values are ok: -45 0.45 -0.45 Page <head runat="server"> <title></title> <script type="text/javascript" src="js/jQuery/jquery-1.3.2.min.js"></script> </head> <...

jQuery: is mouse still over the element?

Hello, I would like to be able to detect if the mouse is still over the element in the following scenario: If mouseover then sleep for a few seconds. Once done sleeping check of the mouse is still over the same element. If true then do something. How can I achieve #2? Thank you. ...

Livequery fires click no matter where the user clicks in the document

I have replaced the traditional select/option form elements with a nifty little popup window when a triggering image is clicked. The page is for accounting purposes and so multiple line items are to be expected. I've written the javascript that will dynamically generate new line item select/option elements. When the page loads, the initi...