jquery-plugins

Help with jQuery BBQ Plugin

Hi I´m working with a form and want to use jQuery BBQ Plugin for saving history records for the user. The form is divided in two divs like this: <div id="step-1"> <form> some inputs... <input type="button" id="next" value="Next &raquo;"/> </form> </div> <div id="step-2"> <form> some more inputs... <input type="submit" id="submit" value=...

jquery: how to include other .js-files into .js

Is there any jquery plugin (instead of incldeMany) or simple function to include js-files on demand ? for example: $.include('myscript.js'); ? ...

Adding value to an Input field on click

I have this structure on form, <input type="test" value="" id="username" /> <span class="input-value">John Smith</span> <a href="#" class="fill-input">Fill Input</a> when user click on the Fill Input , the data from span which has class input-value will be added to value, after clicking a tag the code should be look like this, <...

jQuery - Change jqueryvalidate to add class to parent li

I'm currently trying to edit GeekTantra's jQuery Validate plugin to make it apply a class to the parent list item containing the input field if an error message is displayed. Here is the code with my addition of jQuery(id).addClass(redhighlight); I'm fairly new to jQuery so I'm probably making a bloody obvious mistake. /** * @author G...

KeyTable and jEditable (server submission working, interface updating not)

I have a table. KeyTable is used for navigation jEditable is used to submit to the server The problem is that the value gets submitted to the server (and is saved in the database) but the actual table does not update The server string returns: Parameters: {"row_id"=>"3", "action"=>"post", "col_id"=>"1", "value"=>"text entered into ...

jQuery Selectors: how to access an a tag, whose span has a specific class?

I'm messing around with FullCalendar jQuery calendar, and qTips, so that I can display more information about the event upon mouseover. I've added a summary element to the FullCalendar js, and also my server code. I then added a new qTip in the eventMouseover method, based on the span class, which works prefectly. However, if the even...

JQuery Tool tips

I want to create a tool tip for an image with a link now I had it working one but it doesn't work with the 2nd image. Here is my Sample Code: <!-- trigger element. a regular workable link --> <a id="test" title="Name - Title">Name</a> <!-- tooltip element --> <div class="tooltip"> <div><span class="name">Name</span><br /> Title <...

JSON from jQuery to PHP

I need to pass a JSON object from $.post() jQuery function to PHP page. I tried this plugin jquery-json, but don't work: //include jquery.js and jquery.json.js $(document).ready(function(){ var data = new Object(); data.hello = "Hello"; data.world = "World"; var datajson = $.toJSON(data); $.post('file.php', {data: d...

How Do I Create Expand All and Collapse All Links Outside of the jQuery Treeview Plugin?

The jQuery Treeview Plugin adds Collapse All, Expand All and Toggle All links to the "treeviewcontrol" div when the control property is defined as follows: $("#black, #gray").treeview({ control: "#treecontrol", persist: "cookie", cookieId: "treeview-black" }); This works great, but I'd like the ability to expand and collapse ...

jEditable - how do I get the edited textfield variable?

I have a table that I use jEditable with. Saving to the server works, but the callback for refreshing my table element (that I just edited and saved to the server) does not work. /* Apply the jEditable handlers to the table */ $('#example tbody td').editable( '<%= url_for :controller => 'impact_matrix', :action => 'post', :scenario...

jQuery validationEngine plugin - custom callback for datepicker input fields

Hi, I'm using this jQuery validationEngine but I'm having a problem validating input fields which are transformed using Jonathan Leighton's datepicker. I need to validate that two dates are the same, so i have a custom callback (validateDOB) to check this. When I run this callback in the firebug console it correctly tests the values agai...

Stoping jCarousel on click of image

I am using jCarousel Lite in a web site im making. Im trying to get the carousel to stop scrolling when an image inside it is clicked here is the code im using. $(‘.gallery a’).lightBox(); $(“.gallery”).jCarouselLite({ auto: 3000, speed: 1000, visible: 4 }); $(‘.gallery a’).click(function () { $(this).jCarouselLite({ a...

jQuery fn.extend ({bla: function(){}} vs. jQuery.fn.bla

OK I think I get http://stackoverflow.com/questions/1991126/difference-jquery-extend-and-jquery-fn-extend in that the general extend can extend any object, and that fn.extend is for plugin functions that can be invoked straight off the jquery object with some internal jquery voodoo. So it appears one would invoke them differently. ...

jQuery .attr() crashing Internet Explorer

Hello everyone, This is my first time posting a question here, as I usually try to find solutions myself. This one, though, being an IE issue, just drives me crazy. I use jQuery cycle plug-in on a website I made and, to populate a caption div, I use a little function that is called after the image is loaded, which uses the "alt" attrib...

jQuery validation of controls

I am looking at validation of some text boxes for things like required, minlength, max length, email etc... I am able to get examples that work fine on submit button on page. I want to do this validation on a button click which will only raise a Ajax request and not submit of page. On the Internet all the samples found was with a submi...

Make a div fall off the page

Hey, So I have been playing with jQuery for a good time now and I'm trying to get an effect to work properly. I have a main square div in the middle of the page and when someone clicks a link I want the box to look like its falling off the page and disappear, revealing a new page behind it. I'v been playing with the easing plugin but I ...

jQuery Equal Height Divs

If i have the following markup; <div id="container"> <div id="box"> <div id='sameHeight'>One<br>two<br>three</div> <div id='sameHeight'>four</div> <div id='sameHeight'>five</div> <div> <div id="box"> <div id='sameHeight'>four</div> <div id='sameHeight'>six</div> <div id='sameHeight'>seven<br>eight</...

Is there any plug-in or library to validate a set of form elements?

Hi guys: I am a noivce at JQuery. I'm curious about if there is any plug-in or libraries to help developers validate whether any input value over a set of form elements is not entered (empty string). I can just think of using a function to achieve this feature. Any better idea? Thanks. ...

N-son tabbed/JsScrollbar, trying to force gif play from click of link using jquery

Hello everyone, Let me start off by stating the obvious; I am new here. That said I hope I am not violating some standard I missed by posting this. xD For several days now I've been trying to update a rather old site of mine, to which I wont link to given that the update is so drastic that the current product on which I seek your help...

jquery plugin with multiple functions

According to the developer documentation jquery plugins are supposed to have only one namespace for all functions they make available. Which is straight forward as long as you only expose a single function per context (static/element). (function($){ var state_a = 0, $.myplugin = function(in_options) { // static ...