jquery

Multiple Forms With Captcha - Error on Ajax Submit

Problem: I have a comment page with each comment box having a 'reply' button. Now the reply buttons have a jquery live click binding on them which when triggered loads the appropriate comment form via ajax. Besides the usual fields, each form contains a captcha input also. After the form submits successfully (or otherwise), i refresh the...

jquery lavalamp focus

Possible Duplicate: Trouble with jquery lavalamp For some reason my background color shoots back to the leftmost link no matter what link I click on. Anyone know how to get it to stay on the clicked link? css #lamp { float:left; margin:25px 0px 0px 90px; clear: both; } .lavaLamp { position: relative; height: 29px; width: 400p...

jQuery slideshow

I'm trying to create my own slideshow. The following code fades from one image to another. I'd like to cycle from img1.jpg to img4.jpg but i'm not sure how to pause after each change. i++; temp = "img"+i+".jpg"; $("#img").fadeOut(function() { $(this).load(function() { $...

IE6 and addClass() in Jquery

This doesn't seem to work in Jquery $(document).ready(function() { $(".navlist li").each(function() { var href = $(this).find("a").attr("href"); if ($(this).find("a").attr("href") == window.location.pathname) { $(this).attr("class", "active"); } }); }); in my html <div id="main-navigati...

jQuery / CSS NOT selector, and stop () question

Here is my site: http://www.raceramps.com/v2 Move your mouse over the menu on the right side. Notice how Car Service, Trailer Hauling, and Show & Display are fully enlarged by default. This is because they are higher selling products, and most people who view this site are looking for those. Currently there is an accordion menu setup...

jQuery Plugins vs UI vs some alternative

I've been building a web app using jQuery as much as possible. Every time I need to add some new feature, I usually search for a jQuery plugin that does what I need, then I integrated it into my web app. Of course after a while this application becomes very cluttered with all these "random" plugins from different authors, each one having...

Controls in UpdatePanel losing JQuery Events.

I have a button that is within an updatepanel control. The button's click event has a function defined for it through JQuery. Once the async postback completes the JQuery event fails to fire when the button is clicked subsequently. What do I need to do to correct this behavior and maintain the JQuery event attachment to the button's c...

Scrollable Div?

Does anyone know of a great jquery scrollable div (scrolls with window.scroll) that will only scroll within a div, i dont want to use position:fixed; as people have small browsers and might have it smaller than my div and cut it off? ...

simple javascript question

I have a 2000 line jquery file, I just broke up the file into smaller ones, If I have a function in the first file, that file # 2 is referring to, it's coming up undefined. Every file is is wrapped in a jquery ready function, What's the best way to do this? ...

jquery Ajax call - data parameters are not being passed to MVC Controller action

I'm passing two string parameters from a jQuery ajax call to an MVC controller method, expecting a json response back. I can see that the parameters are populated on the client side but the matching parameters on the server side are null. Here is the javascript: $.ajax({ type: "POST", contentType: "application/json; charset=utf-8",...

Trouble with Galleria image gallery fade and default image

Using Galleria with frogCMS, but am currentl unable to create fading effects and to display a default image on load (currently only displaying an image on clicking a thumb) $('ul.gallery').galleria( onImage(image) { image.css('display','none').fadeIn(); } // not working. ); // also not working $('ul.gallery').galleria({ history : t...

Execute a javascript function when textbox is populated in jQuery?

How do I execute a function in JavaScript when a text box is populated with text? The text box with be hidden from the user. It will be populated by a USB magnetic card swiper. Pseudo code: <script language="javascript" type="text/javascript"> function MyFunction() { //execute this function when MyTxtBox is populated ...

Dynamic Loading of external javascript file.

How do I accomplish this? Every time I try to load an external javascript file from google maps, it crashes the webpage and it becomes blank. I used the $JQuery.get(); function. I am using JQuery to load the file into the head. ...

execute clientside javascript function using codebehind function in asp.net

I have been using Anthem.NET in ASP.NET 2.0 projects for a few side projects and have a question regarding a slick piece of functionality that appears unique to this framework. I have worked with Telerik and Microsoft ASP.NET AJAX Frameworks and the ability to execute a JavaScript function from within an "ajaxified" control in a code be...

jQuery .animate/.each chaining.

I'm trying to combine matching something like: $(".item").each(function(i) { //animation here }); with jQuery's inherent chaining functionality that forces the animation to wait until the previous animation has completed, e.g.: $(".item").each(function(i) { $(this).animate({marginLeft:"0"}, 60); }); And then trigger a .load...

Animating opacity doesn't work in IE or Opera

I'm experimenting with jQuery plugins. I have this code to fade in a "lightbox": $('#cleverbox') .css({ opacity:0, visibility:'visible' }) .animate( {opacity:1}, 2000 ); It works fine on Firefox and Chrome, but in IE (7 and 8) and Opera the element just appears rather than being faded in. There are a bunch of similar questions...

$(document).ready starts after any flash obj. downloaded in IE ?

Hi, I've noticed something weird at IE. When i have a flash object (.swf) inside a page, then any action/function inside $(document).ready starts after the swf object has been fully loaded. (While in firefox, it doesn't need the swf to be fully loaded) Why is this happening, and how can i prevent it? ...

How can I use jQuery to make a group of radiobuttons inactive?

I want to have a group of radiobuttons that are inactive until a checkbox is clicked. In other words, when the user checks a checkbox, it will allow the user to use the radiobuttons. If the user unchecks a checkbox, it will make the radiobuttons inactive, so the user cannot select them anymore. Is there a solution using jQuery that I c...

JavaScript Form Submit() Completion

Is there a way to call the javascript form submit() function or the JQuery $.submit() function and make sure that it completes the submit process? Specifically, within a form, I am trying to submit a form within an IFrame. From the parent form, I am submitting the IFrame with the following code... document.frames.IFRAME_Items.documen...

JQuery - Form Reset - Exclude "Select" box

All, I can reset all my form elements using the following JQuery Syntax: ('#myform')[0].reset(); How can I modify this to exclude the reset of "select box" values? Thanks ...