Hi
I have a really weird bug and cant figure out why things are not working consistently.
I have two content divs, eaither one of them could be shorter than the other.
I have a script that checks to see which one is taller, and then I make the other equal it.
It works when i click around within the site, so say I click on "Next" or c...
I am using a jquery dialog that uses an iframe to let the user know there session is about to expire. I would like to update this dialog every second with a countdown, thus I would like to cache a reference to the countdown element so we don't have to query the DOM for it each second.
I have tried to do this many different ways and I ca...
Hi,
I need to add some functionality to a web application that allows a user to create an event which will be added to a calendar. I would like to give the user as much flexibility as possible when created events (single events, recurring events, etc) ... bascially as much of the flexibility that iCalendar allows for its Events as possi...
I wrote a Jquery function that blacks out the screen after a certain amount of inactivity, creates a pop-up that allows the user to click a button to stay logged in, and logs them out (closing the application window) if they do not respond in time.
The environment is ASP.NET (VB). We don't technically use master pages, but we do have a ...
I am following the jqquery docs on loading content via ajax.
My tabs looks like following and the content returned from my rails app via the ajax calls are inserted correctly, with the exception of the third tab where I try to load the content into an existing div "ediv". When I click on this tab I basically see the raw html, if I copy ...
It's sort of been 'against my religion' to poll a condition using a timeOut or similar technique. I'd so much rather handle an event than continuously search for evidence that an event occurred.
But, due to spotty support for the onHashChange event, it was suggested I use a plugin that polls the window.location property every 50ms.
Are...
The following line of code doesnt seem to be doing anything in chrome but works perfectly fine in other browsers
$('#slides').stop().animate({marginLeft:-positions[pos]+'px'},450);
Can anyone tell me a fix? The actual site can be viewed here
http://eyantra.akshar.frihost.net/ci/
...
I have a page where I want to animate the sorting of a list of block elements.
<div class="container">
<div class="content-block">
....
</div>
<div class="content-block">
....
</div>
<div>
I want something similar to the sortable elements provided by jquery ui but it will animate based on an event not based o...
My goal is:
When for is submitted:
a validation on form is made : OK
an ajax is called to see that username and password do match : OK
if they don't match, display an error: OK
if they match, then REALLY SUBMIT the form: NOT OK.
Infact the trouble is, I cannot submit the form since there is a jquery submit event on it!
function fo...
I link to a lot of remote images on my service. The issue is that sometimes, retrieving the images takes very long, and the whole page stalls as a result. What can i do to get the images to load at the end?
...
Hi guys,
I have problems with jquery accordion. It seems quite tricky.
The first accordion, project1, is working great (thanks to Nick Craver) but 2nd & 3rd an so on does not work. I do not really know if I should use .filter.
Here is the code & example page: http://jsfiddle.net/THjgV/2/
Thank you.
...
I think i'm mainly having a brain fart. I just want to fast forward a Date() until a specific day of the week and then get the Month, Day, Year for that.
E.g. today is 09/03/10 but i want a function (nextSession()) to return 09/08/10 (next wednesday).
How would I do this? The best thing I can think of is add a day to setDate() until ge...
Hey again all :)
I created my own jQuery plugin in 1.4 and now I need a small amount of help.
$.etrade = function()
{
}
I need so I can build code like this
$.etrade = function()
{
this.var = 'setting';
this.subfunction = function()
{
};
}
when I take function from my plugin I need to use it like this:
$.etrade....
hi folksI have this following code but it gives me "invalid argument" error when I click on the 'a tag'. what is my mistake ?
<script type="text/javascript">
$(function () {
$('#click').click(function () {
$get('log').style.top = (screen.y / 2).toString();
$get('log').style.left = (screen.x / 2).toSt...
With help from the community last week, I successfully implemented this code here
Now i need to do something similar but now compare html text with [title]. My code so far is below:
$(document).ready(function() {
$(".views-field-field-success-stories-image-data .field-content").click(function() {
var sharedata = $(this).text();
...
How can I control where uploadify displays queue items and progress indicators?
I would like to move them away from the upload button.
Uploadify generates html-items with this the class "uploadifyQueueItem" for items in the queue, but they are just put right after the uploadify object, as far as I can tell.
...
I'm using jQuery.scrollTop() to get the position of a scroll bar. I'm trying to create an animation which will indicate to a user where they are in a list of content. It's a list of names, and I want to have a big "Q" hovering over the list as the user scrolls over the Q's, etc.
It seems that scrollTop() gives accurate information only...
<script type="text/javascript">
var fixed = 1;
var sizew = 122;
var sizeh = 160;
/*
* function crop()
* ajax function which returns the cropped image
*/
function crop() {
$.ajax({
type: "POST",
dataType: 'json',
url:"functions.php?action=crop",
data: {x:...
CSS3 introduces text-overflow so you can hide overflowing text and even add ellipses.
If the text is overflowing and hidden, I would like to show it as a tooltip when hovered.
The easiest way to do this is to add the text to the title attribute of the element. However that will make the text show whether it is overflowing or not.
I o...
CSS
#acc-close-all, #to-top {
position: relative;
left: 951px;
width: 29px;
height: 42px;
margin-bottom: 2px;
display:none;
}
#acc-close-all a, #to-top a {
position: absolute;
float: right;
display: block;
height: 42px;
width: 29px;
overflow: hidden;
display:none;
cursor: pointer;...