jquery-plugins

jQuery Validation PlugIn : Callback for field success validation?

Hi, Im am using errorPlacement to add a class to a label to show a graphic element in addition to the error text ( they are both different elements). Is there a way to use a callback that will fire when the validation of a field is successful? I am already using validClass, that will change the error message, but I need a call back so ...

JQuery set attribute of an element

In the following code <script> $(document).ready(function() { if(load_flag == 0) { var html = ''; html += "<div id ='err_msg' style='display:none;'><b>Preview errors</b> <br></div>"; html += "<div id ='cont' style='display:none;'><input type='button' value='Continue' onclick='javascript:s...

How to display a Dialog on page as Rails JS response ?

I am using jquery colorbox plugin as my popup/modal dialog box solution in my site. When I give a js response to client, I want to open a popup box. I wrote the following code in my response1.js.erb $.colorbox(); I am getting the response correctly from server but while it is getting executed on the browser, firebug reports error like...

How do I implement a special event in jQuery?

I'm using this plugin to replace jQuery's imgload event with one that will fire regardless of whether the image is cached. The (minimal) documentation says to use it thus: Usage: $(images).bind('load', function (e) { // Do stuff on load }); So, two questions. One, do I just link to the plugin into my header next to jQuery? And two,...

jQuery Validation PlugIn : Forcing Validation on empty Field

Hi, I have a form with tho fields. The first one is required. step 1. When I submit the form, I get the error as expected. step 2. Then if I enter a text on the field, the error text is clear, which is perfect. My only concern is that if I remove the text entered, leaving the field empty, the validation don't fire up! Is there a wa...

JQuery dragable/dropable problem

Hello all, I am trying to build a dynamic drag&drop modul for my App. It include a table that holds all the dropable divs and few shapes. As i can't know from advance the type of shape someone will put in a div and i have to save the div or divs which the user chose to drop the shape in i need to allow the app to be very dynamic... I ...

jQuery validator plug-in: validate optional field

Problem I want to validate a field using a custom validator I've created that's essentially a regex for a phone number only IF the field has a value, otherwise it doesn't need to be validated because it's optional. Custom validator: $.validator.addMethod('phone', function (value) { return /^[01]?[- .]?\(?[2-9]\d{2}\)?[- .]?\d...

How to combine localScroll with serialScroll plugins ?

I have correctly implemented the serialScroll plugin, and the "slideshow" works well. However, in my webpage, there are some links in other tags that are linked to parts located in the different items of the slideshow. I cannot manage to make those links to work. I think I should use the localScroll plugin from the same person, however ...

Controls inside Update Panel and JQuery Form Look and Feel Plugin Problem!!! HELP

Hi dears! I have a problem with Updating Form Element Look and Feel under Update Panel Control. I Used Uniform JQuery Plugin to shape form controls such as DropDown. it works very well in a ASP.net form but i used an update panel to generate CheckboxList Items when user selects a dropDownList Item. The picture Below Shows form Look and F...

Using the jQuery spritely plugin's .pan() to skip in between a defined space

OK, sorry for the awkward title! It's kind of a unique situation in my opinion. So basically, with the jQuery plugin Spritely, it's possible to call a .pan() method/action which allows you to (self-explanatory really) pan something across the screen. I currently have three video game scenes panning from left to right and visa versa in...

How can I get Colorbox to appear in a div?

At the moment I've got Colorbox setup so that it starts automatically when the page loads, but I need to place it in a div on the page, instead of hovering in the center of the page. How can I do this? Thanks for reading. ...

JQuery cookie extension will set a cookie with a path but will not read it

First, set a cookie: jQuery.cookie('monster', 'big', { path : '/sesame/'}); Next, try to read it: jQuery.cookie('monster'); Firefox tells me that the cookie has indeed been set. The value is big and the path is /sesame/. And yet when I tried to read the cookie it wouldn't work. Alternate version of the question: How do I specify t...

jnice plugin combobox

I have used jnice plugin for combobox, suppose one of the value in combobox is jordan,so when i type 'j',i should automatically go to jordan,like normal combobox,but its not working with jnice plugin ...

JqGrid's Row selected by default

Hi Friends!! I want to set a jqgrid's row by default and to do something with this event. is it possible ? I'm workin' with asp.net (C#) and Json ...

jQuery dataTables plugin - how to ignore word from column sort

I have a table of books with titles, authors, publishers, and dates in it. Under the title column a lot of the book titles start with the word "The." How can I setup the sort within the jquery datatables plugin to ignore the first word if it is "The" when sorting this column? Thanks. ...

Safari 3 and 4 are not agreeing with me for once, need help with my css and centering plus another weird thing...

Hey I am completely lost with this one. Basically the website i'm working on here: Home page It is acting funny. I'm using the easy slider 1.7 jquery plugin. In safari 4 (browser labs) the slider div isn't centering up. The css is as follows: #slidercontainer{width:800px;padding:0;margin:0px auto;position:relative;} I've tried: #sl...

Jquery included multiple times

Possible Duplicate: Prevent jQuery multiple reference sometimes when having jquery loaded on the page, the client will include jQuery which then breaks the plugins that have been included before. How do I stop the second jquery from loading in the page. ...

Cycle jQuery plugin, can the images slide both ways intuitively?

I'm using the jQuery cycle plugin found here: http://jquery.malsup.com/cycle/ It works well. My client wants a list of <div>s that contain images and text, etc. to slide horizontally on the front page. But she also wants me to use the previous and next options to have arrows on either side that can control the sliding panels. Here is t...

Can't get multiple jQuery gMap on same page

For some reason I can't get gMap to display multiple maps on the same page. My setup is nearly identical to the examples, but just isn't working. I'm sure I'm missing something little. Any thoughts? Demo page here: http://play.artletic.com/jquery/gmaps.html jQuery: $(function(){ $("#map_1").gMap({ controls: false, markers: ...

jQuery Editable / Sortable List

I am looking for a jQuery list that is editable (add, change, delete elements), what is a good starting point code base that does this? I found this one example which is great, but it doesn't add, edit or delete list items: http://jqueryui.com/demos/sortable/default.html ...