jquery

JQuery Datepicker only works in IE8 (no Firefox, no chrome for me)

Ok so I'm not very familiar with Jquery as to know the possible cause of this, but I've been assigned to find out why the datepicker doesn't work porperly on a client's computer (it prints out the date without slashes like this: 24112008 So when I test the webform, I see it doesnt even pop up in Firefox (the client's browser too) nor ch...

jQuery events executing code in unexpected order

I'm having an issue with some of my code executing in an unexpected order. I have two buttons each with a function bound to the click event. One button is 'cancel' and it makes some display changes. The second button is 'done' which saves changes by writing them to a hidden input field and then triggers the event handler on 'cancel'. Thi...

jquery slider error... if I use Jquery cookies.

Hi, I am trying to use a Jquery slider something like this (http://jqueryui.com/demos/slider/) and I was able to set up right. But on page load i am getting a "jquery cookie is not a function" error. The problem is the file jquery-1.3.2.min dot js is conflicting with jquery.cookie dot js file. Please suggest me your expert advice. Thank...

JQuery 'Jcarousel' plugin bug, help needed...

I am using JCarousel to display some ads. Everything works fine, except when there is no ads, ie JCarousel has zero content. This will cause the Next Button to be active, as if there where unlimited items inside the carousel. I haven't altered any code at all, just the css for the colors and attributes. Does anybody know what I am talk...

What is the easiest/best way to show that an HTML element is AJAX Loading?

Sometimes in my application there are many elements loading so I want to show the typical AJAX spinner above the control (or DOM node) with it disabled. What is the easiest/best way to do that? Ideally I would like to: $("#myelement").loading(); $("#myelement").finishloading(); Or even better being able to do AJAX requests directly ...

jQuery post options

Hey, I just can't work it out. I need to send a POST request to PHP backend. It should be the following: Array ( [username] => 'username' [password] => 'password' [action] => 'login' ) I have a form as a frontend and i use .serialize() to get the user and password. But how can i add the action key/value? For now i just add the str...

Rendering form from get call using jquery and asp.net mvc

I have an action that returns a partial view. The views is a table and each row if another partial view. Each row contains a form for submitting settings for a piece of hardware. After submitting the form I would like to make sure the forms so the correct state of the hardware so I do a get for the action and replace the HTML with the...

Jumping Onload jQuery

Hello. Basically I have a div at the very top of my site that I want to hide and when you click a button it pushes the whole site down and reveals its contents. Very similar to this nd.edu (click help center or poplar sites on the right side of the header). I am using jquery to accomplish this. This script works but it is jumpy, sinc...

Select element has no 'options' array

This is doing my head in! I have a select element with several options, however I cannot manipulate or access any of the options, as apparently the 'options' array does not exist. I have recreated the problem in a simpler html document: (original project is ASP MVC) <html><head><title>test test test</title> <script type="text/javascri...

JCarousel JQuery plugin, some help needed...

The next button is enabled even though there are no items in the carousel, and it seems as if JCarousel thinks it has infinite items, because when I click the next, it actually scrolls. I want to disable the 'next' when there are no items in the Carousel. The Carousel works perfectly when there are items in the carousel btw! I have abs...

acts_as_tree to nested JSON hashes

My goal is to print a json document with the structure described in the chosen answer on this thread. I only have one level of sub categories (2 total, including root) so it should be a little bit easier than the problem there. The problem I'm having is with efficiency. With only ~20 root categories the recursion is causing my script to ...

Setting Focus to an iFrame in IE

There is a tree menu in my application and on click of the menu items, it loads a url in a iFrame. I like to set the focus in an element of the page loaded in the iFrame. I'm using this code, and it works perfectly in all the browsers except IE: var myIFrame = $("#iframeName"); myIFrame.focus(); myIFrame.contents().find('#inputName').f...

jQuery code working in Safari but not Firefox

Hi, I'm attempting to use a mixture of jQuery and CSS to make the sand in an hourglass appear to flow as you scroll down the page. I basically have two 'sand' images, and use jQuery to change the height of their containers as the user scrolls. <!-- Load jQuery --> <script src="jquery-1.3.2.min.js" type="text/javascript" charset="utf-8...

Really smooth animate effects with jQuery

I have some jQuery set up on my page to swap out some DIVs when a user clicks a link. The DIVs have flash objects, paragraphs and images inside them and when I click the link to swap it out the effects aren't exactly... smooth. This is my code: $('#div').toggle('fast'); $('#anotherdiv').toggle('fast'); It kinda gets stuck on the flas...

jQuery Duplicated object

Hey guys, I'm a little new to jQuery so bare with me! What im trying to do is when im within a div container (#links) I want to be able to hover over the links then perform an action (to be implimented later). When I exit the div box (#links) I want a different action to take place. The problem: Hovering into the div container (#links)...

How do you limit options selected in a html select box?

I'm using a select tag in a form i'm making that allows multiple selections, but i want to make the maximum amount of selections 10. is this possible using javascript or jquery? Thanks in advance! ...

Automatically re-check a checkbox when I decheck another one

As a student, I am trying to learn some JQuery tricks. Here my HTML <div id="EngineGroup" class="OptionGroupStyle"> <div id="GS300"><input id="GS300Check" name="GS300Check" type="checkbox" disabled="disabled" checked="checked"/>V6 250ch</div> <div id="GS300Price">53.000 €</div> <div id="GS430"><input id="GS430Check" name="GS...

Find the position of an element within a list

I'm looking to find the position (i.e. the order) of a clicked element within a list using jQuery. I have: <ul> <li>Element 1</li> <li>Element 2</li> <li>Element 3</li> ... </ul> On click of an <li>, I want to store it's position within a variable. For example, if I clicked on Element 3, then "3" would be stored in a variable. H...

Jquery library/plugin for interactive modal popup?

Wondering if there's any jquery library/plugin that can easily perform the following. At main page Susan Liew (click here to update user profile) When click, will trigger a lightbox type 2.0 style modal popup to show up a user profile modification form. This should be ajax, jeffrey's user profile primary key will pass into the moda...

Loop through an Array of links and dynamically load the contents of each after a set interval

Using jQuery I would like to loop through an array of links and load the contents of each link into a DIV after a set interval. For example, if I have my parent page "parent.html" and an array of links - "test1.html, test2.html and test3.html" I would like to initially load test1.html into a div within parent.html and then after a set in...