jquery

How to launch jQuery Fancybox on page load?

I would like to launch a Fancybox (e.g. Fancybox's version of a modal or light box) on page load. I could bind it to a hidden anchor tag and fire the click event of that anchor tag via JavaScript, but I would rather just launch the Fancybox directly and avoid the extra anchor tag. ...

Showing loading animation in center of page while making a call to Action method in ASP .NET MVC

My application makes several calls to an Action method (ASP .NET MVC) which returns a Json object. When the application is waiting for this method to return its data I want to display a loading animation in the center of the page. How would I accomplish this? I know that I should use JQuery but that's all I know. ...

What is the difference between jQuery's functions val() and text()?

I think the question says it all. Where would you use one over the other? Thanks! ...

How do I implement jQuery Sifr Plugin properly?

I have been trying all afternoon to get the jQuery Sifr Plugin (http://jquery.thewikies.com/sifr/) to work, without success. The plugin's site has limited documentation and for something so apparently easy, I'm sure I must be nearly there. I also found some info at http://www.eona.com/sifr/ but I think it's for an older version of the pl...

How do you re-populate dynamically generated options for a select field?

Background I have two select form fields chained together: duration and frequency. When the user selects a frequency, the duration options are dynamically inserted. There are default options, but those are just so that the field isn't empty when the user expands it. For example, the frequency options are "day", "other day", and "week"....

appending text to matching element attributes within a class in jQuery

I'm trying to append query parameters to links within blocks of text within a class, such as <div class="container"> consectetur <a href="foo.php?q=bar">adipisicing</a> </div> where the ?q=bar is appended. Here's my function: function appendRef(container,reftag) { var Link = $(container).attr("href"); var afterLink = reftag; $(...

Prior jQuery UI Dialogs become nonresponsive after opening a new Dialog

I'm having issues with multiple jQuery dialogs. The first one opens fine - is resizable, draggable, etc. However, when I open a second the first becomes unresponsive to dragging/moving/closing, even after the second one is closed. What is the reason for this and how can it be fixed? According to the jQuery documentation this should...

jQuery + IE Blur Firing on Mouseout

ok, so I have a popup search box that is shown when the user mouses over a hyperlink, when the user mouses out of the search box, the box disappears. this all works fine. When the textbox has focus, the search box is supposed to stay visible until the textbox loses focus, at which time the box will hide if the cursor is not over the b...

Jquery group photo hover effect

I have seen (or thought I saw) a way to use Jquery on a group photo to allow fade out all but one area of a photo and show a caption. The idea is to allow people to mouse-over specific faces in a group photo and see information about them. Any help would be appreciated. ...

Jquery fade background on hover?

There is a link, with no background, and a css rule, which changes background on hover. Parent bg is white, link on hover - blue. How can I do a hover effect slowly, from white to blue? Thanks. li a {} li a:hover { background: blue; } ...

Jquery fade <IMAGE background> on hover?

There is a link, with no background, and a css rule, which changes background on hover. Parent bg is white, link on hover - .png background image. How can I do a hover effect slowly, from white to my background image? Thanks. li a {} li a:hover { background: url(image.png) 0 0 no-repeat; } ...

Any downsides or better alternatives to calling .NET Page Methods with jQuery?

I need to come up with a smarter/simpler way of doing ajax calls in our current .net webforms app. I know jQuery basics and I like it alot. I'm thinking of proposing to my team the use of jQuery to directly call .net Page Methods as described here. Does anyone know of any problems/limitations with this approach? Is there a simpler w...

AJAX Jquery UI Dialog window loaded within Ajax style Jquery UI Tabs

The ajax tabs work perfectly well. It's pretty straightforward with that part. However, getting the ajax UI Dialog modal window to trigger off of a link has been un-succesful. Any help in this would be appreciated. ...

How can I manually fire an event that I wired up using jQuery?

How do I manually fire a click event on a button that I previously wired up using jQuery? ...

table highlights only in tbody

Hi Guys, first post... I have several pages to do with several table on each page. I've got the JQUERY to do zebra stripes on even lines and change colour on hover. but, here it comes, it changes colour on THEAD and TFOOT and i can't apply css to TFOOT to change colour. Thanks very much in advance.... here's the code <script type="te...

Keeping a jQuery .getJSON() connection open and waiting while in body of a page?

I'm writing a basic push messaging system. A small change has caused it to stop workingly properly. Let me explain. In my original version, I was able to put the code in the of a document something like this: <head> ...text/javascript"> $(document).ready(function(){ $(document).ajaxStop(check4Updates); check4Updates(); ...

Populating A Page with XML and Javascript/Jquery, checking if the url is the same as an xml tag

Hi, I need to create a javascript function that will write a page based on the url, so basically I am trying to create a javascript function that will check the url, and find the corresponding xml item from there. The reason behind this is so that the html page can just be duplicated, renamed, and the xml updated, and the page will fill...

jQuery and ajax gallery fade in and fade out effect on thumb clicks!

Need some help, please. I have a line of horizontal thumbnails loaded as ONE image with the different thumbnails images referenced via an imagemap as such: <div id="zoom"> <img src="" /> </div> <div id="collectionindex"> <img src="thumbnail-strip.jpg" alt="" usemap="#Map" /> <map name="Map" id="Map"> <area s...

Has anyone used the Glimmer tool from MIX labs, what is the general opinion?

Mix Labs have released the Glimmer app, an IDE for making fancy effects with jQuery. I downloaded it & I've done a few things with it. I think it's quite nifty, but I'm not sure I'd use it 'in real life'. What's the general opinion on its usefulness & the quality of the code it generates? ...

jQuery ScrollTo Disabling <a>nchors on animation

Hi Everyone! I am using Ariel Flesler's ScrollTo jQuery plugin. Everything is great except when scrolling, the animation drags the cursor over some links which, having :hover triggers, cause a momentary hang up in the animation. Any chance anyone knows how to disable elements :hover functions while the animation is happening? ...