jquery

How to make gallery image fade on hover to reveal details such as title, enlarge, visit site, etc?

Hi, I've seen a nice image gallery hover effect used quite a lot lately and I'm just wondering whether anybody knows of a good way to recreate such an effect. The effect is when you hover over an image, the image fades out or a div fades in showing links etc over the image. It's similar to the one found here: http://cssnack.com/ and he...

How can I open an accordion-styled grid on page load using jQuery?

I’ve got two pages — let’s call them page A and page B. Page A has 4 links going to page B. On page B I’ve got an accordion-styled grid — see http://css-tricks.com/examples/InfoGrid/ I’m trying to get it so if I click on one of the links on page A it will open one of the tabs on page B. Can anyone help me?! Cheers. ...

Is there a reason to prefer jQuery.Ajax to asp.net UpdatePanel ?

Hi, If I am developing an asp.Net application, can there be some cases where I should forget about MS Ajax UpdatePanels and prefer jQuery.Ajax to update some part of my page? Thank you ...

jquery $('body') image swap help

I have the code below: $(document).ready(function() { var bgimages=new Array() bgImages[0]="bg.jpg" bgImages[1]="bg2.jpg" //sloppy preload images var pathToImg=new Array() for (i=0;i<bgImages.length;i++) { pathToImg[i]=new Image() pathToImg[i].src=bgImages[i] } var i = 0; var rotateBg = setInterval( fu...

Inconsistent behaviour in jQuery depending on browser

I have my jquery: $('.category-block').mouseover( function (e) { $(this).find('.b-expand').show(); }); $('.category-block').mouseout( function (e) { $(this).find('.b-expand').hide(); }); And sample html: <div class="category-block" id="category-1"> <a href="#">Mod</a>...

please help me figure out what's wrong in my code

I faced a problem like; I placed a text box beside the calender but when I select the date from the calender it is not showing up in the test box .. Can anyone please help me out from this problem .. I need something like; when I select the date, month or an year in the calender beside it will show in the text box beside it .. UPDATE:...

What events are fired when a user selects from the browsers stored form dropdown?

Hi, I'm using jQuery to alter things when a user enters text into an input. This works fine with .keydown() or .change() when typing. I'm unable to capture an event when the user selects from the browser stored inputs for that field. This is the dropdown that appears when typing or on click when the element already has focus and the br...

jquery bind .load call with .trigger

I feel like I'm just searching for the wrong keywords in google and on here. I just can't seem to find the right answer to this. Or maybe I have and wasn't sure what I was reading. I'm trying to load a div with data via a .load call. Then later on in my script when I click a button, I want to trigger that load again. $j("#adminList")...

jQuery Sortable - Nested UL elements

Consider the following markup..: <dl class="table"> <dt>UL drag/drop</dt> <dd> <ul> <!-- group 1 --> <li>Row 1, column 1</li> <li>Row 1, column 2</li> <li>Row 1, column 3</li> </ul> <ul> <!-- group 2 --> <li>Row 2, colum...

qtip jquery plugin to display text from link

I am trying to use the jQuery qTip plugin to display the text inside the element. I have multiple links in a table like so with different classes. The text in the links is hidden with a negative text indent and a background sprite is used to make them look unique. <a href="#" class="spot_quote">Spot quote</a> <a href="#" class="cont...

DropDownList not firing onbeforeunload when AutoPostBack="True"

I have implemented an "unsaved changes" warning using techniques described on these pages: http://stackoverflow.com/questions/140460 http://kenbrowning.blogspot.com/2009/01/using-jquery-to-standardize.html This works well except for a DropDownList on the page. It does an AutoPostBack, and I want onbeforeunload to fire because unsaved ...

selector returns different values jquery

I've got: j=0; an = $("#thumbSlider" + j + " a").eq(1); ap = $("#thumbSlider" + j + " a").eq(0); jQuery("div#thumbSlider" + j + " a").each(function(z) { jQuery(this).bind("click", function(){ ad = jQuery("#thumbSlider" + j + " a").eq(1); alert(ad.length); . . The first alert returns 1, but the second, on click, returns 0...

Easy way to overwrite basic jQuery-UI css?

Hello, I feel like this is a silly question but I always find that modifying certain CSS attributes to be a hassle when working with jQuery. Let's say I define an element as a jQuery-UI object (like autocomplete or the datepicker) how do I go about modifying the CSS without having to go on the UI site and building my own theme? For exa...

I want to get a specific parent node of an element use jQuery but it's not working for some reason.

I have a span inside a legend tag that I want to use to remove the fieldset tag when clicked. I'm using jQuery and this is the code that I can't seem to get to work: (yes, i'm using latest version of jQuery) jQuery: function removeStep(){ $(this).closest("fieldset").remove(); //Already tried: $(this).parents("fieldset"...

jQuery: how do I make a collapsable tree nav??

I have headers, and each of those headers has sub items. When I click a header, I want it to toggle viewing or showing the headers contents: This is what I have so far: $j('h2').click(function() { if ($j(this).next().is(":hidden")) { $j(this).next().show(); } else { $j(this).next().hide(); } }); And my HTML look like this: ...

$.ajax Working in Firefox but not in IE

I have a checkbox server control called chkboxContact. on check iam populating the Jason data into the textbox its working fine in Firefox but not in IE.Please Suggest .Thanks <script type="text/javascript"> function GetInfo() { var checkboxInfo = $('#ctl00_PlaceHolderCenter1_chkboxContact'); var domcheckboxInfo = checkboxIn...

javascript / jquery code organisation

I would like to get some advice on structuring my javascript code and jquery functions. I like to use JQuery for dom event handling and ajax etc. I have written what seems like poor code in the past where my entire js file consists of a bunch of anonymous Jquery functions. I am wondering - what does a "well structured" javascript file...

.click function in jquery always have to get a nameless function?

Hallo all. I have a little problem. I have a function. Let’s call it : function rowClick () { } Anyway, the question is: How can I bind this function to a click event without it being called? What I mean is, if I do this: $("#holder").click (function(){ rowClick(); }); the rowClick function gets called while registering it to t...

How do I add confirm function to links in jQuery so that the dialog always appears?

I have a HTML table that displays rows of records and has a column on the end with a delete link. Each delete link has a class of confirm-delete. I need to have a confirm dialog popup on click and as it is used in multiple pages, have created a confirm function in an external JS file. I have added the function call to the link's click ...

check textboxes for change in value from default value when page loaded

I have a two forms on a page. The first one has several quantity text boxes that are populated with their respective default values on page load, which can obviously change. Also there may be 1, 2 ,3 or more of these text boxes on the page, so a script would have to account for this. Each text box will have a sequential name of "Quanti...