Hello, I've got a little problem here.
I've got the following rule for one of my fields:
StartDate: {
required: isDelayed,
dateRU: true
}
isDelayed() returns false, so I guess StartDate field should be optional. However if I check it inside my dateRU method:
$.validator.addMethod(
"dateRU",
function(value, element) {
...
I want to add a row whenever the user click on the new button.I want to clone the row "tRow0" and add it to the last row of the table "tblEquipment tbody".I wrote a JavaScript function for adding the row(AddEquipment).The problem is that the row is not getting added in the last row.
clone row : tRow0
last row : tRow1
Actually the new ...
Hi. I am designing a website that has 100% width + height div containing a graphic overlaying the home page. I want to show this once to the user when they first visit the site, a kind of welcome to the site click here to enter then this would never been shown to that user again.
How do I write a cookie with Jquery to do this? Many than...
I use Fullcalendar on my site, but I need all text in different language. There is piece of code in that plugin:
// function for adding/overriding defaults
var setDefaults = fc.setDefaults = function(d) {
$.extend(true, defaults, d);
};
But I have no ideas how I can use it. Please, I need help.
...
I have to copy the text from one text box to another using checkbox through jquery I have applied jquery event in my code, it works partially correct.. code is as follows:
<html>
<head>
<script src="js/jquery.js" ></script>
</head>
<body>
<form>
<input type="text" name="startdate" id="startdate" value=""/>
<input...
hi,
Upon page reload, all the nodes expand and then only the selected node
remain expanded which is the desired behavior. However, I'd like to
prevent all the nodes from expanding upon refresh as it creates a
flicker. Has anyone else experience this behaviour? How can I turn it
off?
Thanks
...
I have a large application and I'm going to enabling short-cut key for it. I'd find 2 JQuery plug-ins (demo plug-in 1 - Demo plug-in 2) that do this for me. you can find both of them in this post in StackOverFlow
My application is a completed one and I'm goining to add some functionality to it so I don't want towrite code again.
So as ...
Hey guys
I have a small question concerning css styles and javascript / jquery. Lets say i define the following css style.
.myStile { padding: 5px }
Now I'd like to access the property of padding while not writing an html element to the document. I came up with the following idea which only works with Firefox (IE and Chrome say NaN)
...
Hello all
I have just started with jQuery. I am trying to implement zebra striping in my jqGrid class. I am having the problem when user clicks on sort column, all rows get rearranged and the zebra striping is blown away.
Zebra Striping code
$("#item_table tbody tr:odd").addClass("alt");
$("#item_table tbody tr").mouseover(function()...
Is there any way with jQuery or javascript to trigger a function when the user ends to resize the browser window ?
In other terms:
1) Can I detect mouse up event when user is resizing the browser window ?
otherwise
2) Can I detect when a window resize operation is finished ?
I'm currently only able to trigger an event when the user ...
I am Using http://tablesorter.com/docs/example-options-headers.html
$("#sort-table").tablesorter(
{headers: {
0: {
sorter: false
},
dynamic_value: {
sorter: false
}
}
});
How Can pass Dynamic_value for example from $...
According to the documentation for the datepicker, the yearRange property determines the range shown in the dropdown (which using the code below is -10 years, +10 years from the currently selected date). Is there a way to change this to 80 years in the past, zero years in the future. Is there something else I need to do to increase the r...
Hi
I would like to insert multible sliders in one page. I have a block of code I would like to reuse but it will insert 2 DIV's with id=slider...
Is it possible to find second element with id=slider and rename to id=slider01?
BR. Anders
...
Hi guys,
I have a problem with IE7 regarding an ajax call that is made by jQuery.load function.
Basically the request works in cases where the URL string is not too long, but as soon as the URL gets very large it fails. Doing some debugging on the Ajax call I found this error:
URL: <blanked out security reasons but it's very long>
Con...
Hey guys,
The website that I'm building includes a section where two users can interact. I think I know how to do most of it, except the actual session sharing part. I'm using Ruby on Rails & Javascript (jquery), and I've got user login and session management all working okay. Would the best way to create a shared session be to have a S...
Hi there,
I am working on a project, which I need a special body-background for. The background-color should cycle through the color spectrum like a mood light. So I found this:
http://buildinternet.com/2009/09/its-a-rainbow-color-changing-text-and-backgrounds/
"But" this snippet is working with the RGB colorspace which has some very l...
Hey guys,
I have a page with an some normal javascript, a swf file and some jquery.
I'm running my jquery code inside the $(document).ready(function() {}) function. But the code is being run before the Flex component (the swf file) has finished loading. Is there something I'm doing wrong?
Thanks for reading!
...
Firebug 1.5.4 JavaScript warning : The 'charCode' property of akeyupevent should not be used. The value is meaningless. To ignore it? Is there any issue?
The warning appears to jQuery 1.4.2 keyupandkeydown, not onkeypress.
I have read that on changingevent.keyCodeandevent.charCodetoevent.whichmust fix it, but it does not work for me.
Fu...
I have a several forms that are output from a database on the same page. It works fine when I don't use ajax. When I use Jquery it will only work for the first form. Could anyone point me in the right direction please?
Jquery.....
$('.updateSubmit').live('click', function() {
var id = $('.id').val();
var hardSoft = $('.hardSoft').v...
Hi there everyone,
I'm trying to place multiple resizable and draggable div's on one page that move (vertically) inside their own parent div.
you can take a look at http://bit.ly/bCutBE
However, these div's act really strange when I want to resize them, especially from the north side, they kind of move out of the screen very fast, whil...