jquery

jQuery Slider - How do I make a group of sliders having max value depending on another Slider?

Here is a hard one I have been trying to get it work. It does work half way however I think the logic is the problem. I will explain the situation and the problem below. Situation: Want to use a slider controller to select number of Adult,Child,Infant that can occupy inside a room. For example, a Room which can accommodate 3 person, whe...

How to get rid of margins in jquery layout

I am using jquery layout and I have a very hard time getting rid of the margins on the panes. There is always a margin and no amount of css will get rid of them. I am implementing the simple demo.simple demo So basically I want the same thing but without any margins/padding on the inner panes. Ill ajust these my self. The objective is to...

Sequentially Load DIV using Jquery

Is it possible to load a series of DIVS using Jquery using a preloader. For instance, I have a page with 4 divs nested within 1 main div. I'd like to load content1, then content2, and so on. Plus, only 1 div will load at a time in the sequence. Is this possible with jquery, or anything else? ...

What's the purpose of creating jQuery code inside this elements like this...

(function ($) { ... } ) (jQuery); ...

Newbie query: how do I match combined selectors with jQuery?

Hello, I've sussed how to use YQL and jquery to pull in and inject HTML into a div element. However, I want to filter out a div with the class in the HTML "region and-channel cl". I've been able to understand how to pick up single selectors, and multiple selectors using commas. What about compounded selectors like this? Here's an exa...

Jquery all my functions work except the following

(function($) { var selectIds = new Array(); var sortOnSelect = false; var nameModifier = "tsms"; function removeFormField() { $(id).remove(); } All the other functions after this work. This function says it undefined using firebug. removeFormField is not defined Another function creates this field and the top function i...

Form element added using jQuery is not sent on POST

I have a zend_form where I'm allowing the user to add form elements dynamically. Elements are added dynamically using jQuery : something like... $(function(){ $('#more_answers').click(function(){ var elemNum = $('.dummy-element').size(); $("<dd class='dummy-element' id='dummyanswer_"+elemNum+"-element'><input type='text' valu...

jQuery slideToggle "flicker" on page load

I know there are many questions about jQuery slideToggle "flickering" but I haven't seen any that specifically address this flicker upon page load. Click here for the working example. If you click Refresh or click on another datasheet page (under the Datasheets & Product Info section), when the page loads, the hidden div "flashes" the...

Loading new scripts with Ajax-powered web-site.

Hi guys, I've done the usual searches for previous answers... None found. Basically I'm creating a website that loads each page into a content Div using jQuery. Here's the site in progress http://www.websitesbyshane.co.uk/chris Everything is working ok so far, my problem is that when the user clicks through to the 'portfolio' section,...

Passing Alphanumeric variables to JQuery Ajax

I've got the following JQuery code, which works fine if the VendorDropDown.ClientID is an integer, or a string that can be converted to an integer, but breaks if I try to use a string value like "Microsoft". The PopulateSoftware function is an Asp.Net WebMethod that takes a string parameter named vendorId. var pageUrl = '<%=ResolveUrl...

JQuery Change Event for InnerHTML

In my case i'm writing a Chrome Extension, I don't have access to the other JS that is happening on the page. So I need to make sure that whenever certain elements update their content I rerun a function from the extension. Basically a Change event that can be triggered from innerHTML changing. ...

Replacing image extensions in jQuery, go from .png to .gif on the fly

So, I'm using CSS3 in order to create sidebar boxes in my site design, this works nice and dandy. Using http://css3pie.com in order to create the effect in IE. Again, nice and dandy. Now, comes my issue - For each relatively positioned module, there is an absolutely positioned icon within it, that is set to being top: -20px in order t...

How can I tell the value of of a class attribute via jquery?

Hello, I have an element with a class, the class has a set width. Later I change the width with $('#elm').width(100); now, even later, I want to go back to the original value. Is there a way to get what the original value is from the class definition itself rather than store a bunch of globals with the values I need. Thanks, Justin ...

ajax problem (jquery)

I'm just reposting to make this clearer & because I've uploaded a sample of the problem... Simply... This fancy box plugin works great on this page http://www.websitesbyshane.co.uk/chris/portfolio.php but NOT if the portfolio #content is pulled into the index.php via ajax. You can see for your self by going to the homepage here www.w...

How to detect a redirect to login when using AJAX with ASP.NET MVC 2.

Hi Is there a way of detecting when an AJAX request (using jQuery) to an ASP.NET MVC application redirects me to the login page? I'm getting partial views rendered using an ajax call, but when the user has been signed out (for whatever reason), instead of returning a 302 or some other indication (that I can see) I get the login form re...

jQuery Selector + SVG Incompatible?

I've been working with an HTML5 document with inline SVG and javascript animation. I'd like to have a box pop up when the user clicks anywhere, and I'd like the box to go away when the user clicks somewhere that isn't the box. This means I can't use $(window).click(), which works. I've tried selecting the SVGs on top by giving them cla...

How to force IE to show page content before finishing all Javascript execution?

On a Ruby on Rails development environment, a page will be shown after 30 seconds on Firefox, but takes 90 seconds on IE 8 (with IE 7 Compatibility Mode). Further investigation shows that it should be Javascript that slowed down the page, because if Javascript is turned off, then the page content will also show in 30 seconds. Because t...

Form submit doesn't work

Hello, I’ve spent the past hour search the web for possible solution, maybe I’m not using the right terms. I hope someone would be able to help me here. I have a form used inside the fancyBox iframe, after adding this ”if statement” below my submit button doesn’t work any more. However if I select more then 5 days I get the error alert ...

If Javascript code block is not at end of HTML file, but is using jQuery's $(document).ready(function() {...}), will it slow down the page display?

It is said that Javascript code should be all placed at the end of HTML file, so that the page content is shown first, for the user to see something (so that the user is satisfied to see something instead of waiting another 12 seconds, for example). But to better encapsulation of the HTML and match Javascript code, such as an "Image Car...

jQuery's ready queue $(foo) and $(bar) will run in sequence or run in parallel?

If there are 2 or 3 or 20 statements using jQuery's $(function() { ... }) to add functions to be executed when the DOM is ready, will all those functions run in parallel or run in sequence? ...