jquery

JQuery Validation

var formValidationRules = { rules: { password: { required: true, remote: '/account/delete' } }, messages: { "password": { required: "Please enter your password", remote: "Invalid password, try again." } } }; I wrote such validation, but I found out the the Validation will check for each event for the remote and the requ...

Jquery - when a link is hovered, switch an image in a seperate DIV

Hi, I am new to Jquery and am having problems getting the following working. I have a web page with two columns. In the left column is an unordered list of links. In the right column is a div. What I want to do is have the div in the right column, change its picture when a user hovers over a link in the left column eg. User hov...

displaying slider value

i am using jquery slider . Is there any default function to display slider value under slider object ...

jQuery .load and links are not clickable anymore?

Hi. I'm updating some data from sidebar when I click one element on mainside. When it's updating data from external file (calling same query what is in original sidebar) those links are not clickable any. Here is clip from my custom.js $(function() { $(".removeItem").click(function() { var commentContainer = $(this).parent(); ...

DIV equal height within floated "row"

Ok, so I have this code: <div class='layout' style='width: 500px;'> <div class='layout_frame' style='width: 300px;'></div> <div class='layout_frame' style='width: 200px;'></div> <div class='layout_frame' style='width: 100px;'></div> <div class='layout_frame' style='width: 300px;'></div> <div class='layout_frame' style='width: ...

Removing HTML tag from string with jQuery

I have a form with several checkboxes and labels, most of the functionality is working correctly, but I'm having trouble getting the label value for the checkbox, while stripping out a span element inside the label: <input type="checkbox" id="list-item-x" /> <label for="list-item-x"><span class="date">Oct 1</span> The checkbox label</la...

Simple jQuery Hover Menu

This looks really bloated, can it be rewritten any better/more compact: $("#cart-summary").hover( function () { $('.flycart').slideDown('fast'); } ); $(".flycart").hover( function () {}, // mousein function not required function () { // hide menu on mouseout $('.flycart').slideUp('fast'); ...

HighRise jQuery parsing

I want to add h323:number style links to HighRise contact numbers, so that users can click a link to dial the IP phone... The html I'm looking at is: <table> <tbody> <tr> <th>Phone</th> <td>+44 (0)1123 1231312<span>Work</span></td> </tr> <tr> <th></th> <td>+44 (0)777 2342342<span>Other</span></td> ...

Adding block via jQuery

We have some block. Ex: <div class="block"></div> and we want to add tag inside it, so, at the end it would seems like this: <div class="block"><i></i></div> How to do it with jQuery? ...

JQuery - divs and styles

Hi, I have menu: <div id="head_menu"> <a href="#order"><div>make order</div></a> <a href="#portfolio"><div>portfolie</div></a> <a href="#contacts"><div>contacts</div></a> <a href="#vacancies"><div>vacancies</div></a> <a href="#about"><div>about company</div></a> </div> I add style for it...

How to give sentence case to sentences through CSS or javascript?

How to give sentence case to sentences through CSS or javascript? I've tried these CSS properties but these are different capitalize Transforms the first character of each word to uppercase uppercase Transforms all characters to uppercase lowercase Transforms all characters to lowercase Edit: 19 FEB 2010 is there any option i...

jQuery + Rails + ajaxForm + js.erb problem

I'm having an issue that is driving me nuts, and according to everything i have seen and read online, it should be working fine. I'm using jQuery with my Rails app instead of prototype and am using the ajaxForm plugin to submit some form data via ajax. The form data gets submitted fine, the corresponding controller action gets called f...

jQuery: Make div clickable to check nested checkbox

<script language="javascript" type="text/javascript"> $(document).ready(function() { $('#myDiv').click(function() { var checkBox = $(this).children("input[type='checkbox']"); checkBox.attr('checked', !checkBox.attr('checked')) }); }); </script> <div id="myDiv" style="background-color:red;h...

jquery - animation

Hello, can I make animation from one class to another? I found animate function, but it takes only css-parameters, not css-styles. For example, I want something like this: $(this).animate( 'StyleTo', 'slow' ); Thanks. ...

Anyone can suggest a jquery lightbox plugin that allow embedded html and is easy to custom CSS?

there are the criteria can style the modal box(round corner, window and background color etc ) allow embedded html and custom its position can custom style for the 'forward' and 'back' buttons, their images and positions have a 'play' button for image slideshow or allow custom JavaScript to do so thanks ...

access a cross domain iframe history.length or get its text in a variable on the parent document

I have a feedback pop up (TickBox) that loads a cross domain iFrame and when submitting the form it loads the "thanks for...." page. I want that when user submits the feedback button it should hide the iFrame wrapper. I know that because of the "same origin policy" security limitations you cant get the actual location of the iFrame wh...

Jquery - Does the ajax/load() method automatically show the content it's loaded?

I'm really stuck here... I've built a small gallery to display images. It consists of an initial front page with 12 thumbnails arranged in a grid. When click on a thumbnail they collapse to the left of the screen and show the appropriate gallery item. When you rollback over the collapse thumbnails they expand and hide the gallery item u...

JQuery and XSLT

Good day, I have stumbled upon a bug or some strange behaviour and I can't find the solution anywhere. I use XSLT to display HTML from a XML document. Inside that stylehsheet, I use javascript/jQuery to add some contents. But apparently you can not append anything but texts to any container. <script type="text/javascript"> <![CDATA[ ...

Need to know if a jQuery ui Widget has been applied to a DOM object

Hi I'm using jQuery and have some interactions with a jQuery UI where I need to get options. However, there's a possibility that the jQuery UI function has not been applied yet to the DOM object. I'm getting a javascript error right now when I access an option. How can I check to see if For example: I have a DOM object that has the...

JQuery Call Function Outside of Ajax on Ajax Success?

Hey all, I currently have created a pagination js class that will automatically paginate comments when you get more than 10 to a page. This works fine, but I'd like to set some css properties only if there are more than 10 comments on the page (add space for the buttons to switch between pages). This COULD be done in the ajax success, bu...