jquery

jQuery animating background color - not working

Anyone see what's wrong with my code? I just can't figure it out!! The file paths are correct, and if i look in the console when i hover the h3 element, it outputs the text in "hover" just as it should. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <t...

jQuery problem: moving a <li> from one <ul> to the top of another

I have two ULs, one above the other: <ul id="one"> <li> <li> <ul> <div id="div_for_second_UL"> <ul> <li> </ul> </div> In the first, each LI has a button that, when clicked, removes the LI and bumps the below LIs up one space to fill in the gap. It works fine. But I want the clicked LI to simultaneously be added to the top o...

jQuery multiple ajax loading animations on calls

Hello, On a page I have different element which I bound yo different Ajax calls. For example one a.click is requesting x.php another one down the same page requests y.php. What I like to do is place an individual loading image for each. ajaxStart and ajaxStop won't do it since they are fired everytime, no matter which one called. So h...

How is this image effect created?

Hi! I have looked at this page for some time now. Amazing, really. But I can't tell how the background image effect that happens on scroll works. Have gone through the code found that they are using Jquery plus a number of scrolling plugins, but nothing about the images that I can see. How would you say that it's done? The site: http...

Problems with JQuery's Droppable Tolerance 'fit' feature when using the same size divs

Hi I'm just wondering if anybody else can manage to get the tolerance:'fit' option to work when using the 'droppable' feature in jQuery's UI? I want to call a function only when the draggable div is dropped perfectly onto a droppable div. Both divs are the same size and I'm using snapMode:outer to help the end user. I simply cannot ge...

Move an item up/down a select

Hi, I'm wondering if it's possible to change the order of things in a select control without having to totally rebuild it? Is there a javascript function where I can change the "index" of a specific option in the select? Thanks ...

jQuery - Get selected element's outer HTML

I'm trying to get the HTML of a selected object with jQuery. I am aware of the .html() function, the issue is that I need the HTML including the selected object (a table row in this case, where .html() only returns the cells inside the row). I've search around and found a few very 'hackish' type methods of cloning an object, adding it ...

Same JQuery click function for numerous links

Good beautiful afternoon everyone, I've been stalking the JQuery fourms trying to get a good clean solution to this problem, however, I can't seem to knock this one out. I have a page that has multiple links with various attributes (these attributes will be pulled in from a database): index.php <html <head> <script type='text/javas...

How to get the current time/timezone of the user visiting my website?

I am working on an application which utilizes PHP (Zend Framework) and JavaScript (jQuery). I'm trying to get the current time of the user visiting the site. Is this possible? How can this be done? ...

Embedding jQuery into your ASP.Net Server Custom Control

Hello ! I am undergraduate student. I had some queries related to embedding jQuery inside your ASP.NET Server side Custom Control. private string GetEmbeddedTextFile(string sTextFile) { // generic function for retrieving the contents // of an embedded text file resource as a string // we'll get ...

Javascript disable button event completely.

Hi I would like to know if its possible to do something similar to the example shown below. // Script A $('.submitButton').click(function() { if (not valid) { $(this).attr("disabled", "disabled"); } }); // Script B $('.submitButton').click(function() { // Do something else here }); I would like to know whether you ca...

Jquery | Adding Events Date Picker

How do I highlight or change the style a date that has an event? ...

JQuery Ajax form submit returns html of the index page

Hey guys I need help. Have an HTML form that I am submitting using JQUERY ajax instead of updating with a server response, it is updating with the index page html. The form <form id="publishimages" action="<?php $_SERVER['PHP_SELF'] ?>" method="post"> <input type="submit" name="publishimages" value="Publish Selected" /> </f...

Static variables a jQuery Plugins; how to create?

Hello, What is the best way to create a static variables for jQuery plugins? I have 2 example use cases to illustrate my thinking so far; each with some ideas. Any other ideas welcomed of course... One example is for a static variable containing: animation settings, layout settings, product details, etc; the other for a static variab...

How to activate thickbox from a query string on the end of a url

Hey All, I'm new to programming, and this website. I have what is hopefully a quick question about using thickbox, and jquery to display an overlayed video on a website. My problem is that I want to have the overlay displayed when someone clicks a link from an email. So the link would be something like: mywebsite.com/landingpage.html#p...

Change a Checkbox for a Radio Button using jQuery

Hi, is this possible, if so how? Thanks ...

Lightbox expose layer (the dark layer behind) not closing

To replicate the error go here: http://racedayworld-com.si-eioswww3.com/ And press the button at the top right for "Post Event" .. then hit the close button at the bottom of the lightbox. The problem: The overlay pops up fine and it has a different colour overlayed to hide the form beneath, but it only goes away when you click the ac...

run function at ready and keyup event

Is there another in jquery to run a function at page load and at a keyup event instead of the way I'm doing it? $(function() { totalQty(); $("#main input").keyup(function() { totalQty(); }); }); ...

Calculating the average

This is a related question to one I posted earlier... I'm trying to sum all the input elements that begin with 'pull' and place that total in the 'totalpull' input field. I have that part working. Now, I'm trying to calculate the average if a user enters something manually in the 'totalpull' input field and set each 'pull' input to tha...

Is it better to swap classes or swap content in jQuery

I was wondering which of these two scenario's works best for swapping between 2 stated. Let's say for temporary disable a button. I think the first and most easy way is just to have both pieces of html already in place. And when clicked the a class of none is swapped, like this: css: .none{display:none;} html init: <div class"somecss ...