jquery

Clearing <input type='file' /> using jQuery

Hi, Is it possible to clear an <input type='file' /> control value with jQuery? I've tried the following: $('#control).attr({ value: '' }); But its not working. Need help. TIA. ...

jQuery lightbox Gallery

Does a jQuery plug-in exist with standard lightbox functionality? In the "lightbox" window I'd like to show the current image and the rest as thumbnails somewhere (left, bottom, etc.) in the same "lightbox" window. ...

String length and jQuery

How do you get the length of a string in jQuery? ...

jQuery shadows for rounded corners

I'm using the CurvyCorners for my rounded corners at the moment. I'm also using the shadow plugin from http://eyebulb.com/dropshadow/. The problem is the dropped shadow is a box, whereas the element above it has rounded corners. Any suggestions on getting a rounded corner shadow? ...

Removing unwanted characters from textbox with JQuery

Hey all! What I would like to get some input on is how to remove certain characters from a textbox (or textarea) with JQuery. I have the code in C# but I can´t seem to translate that to JQuery javascript. My problem is that I don´t know how to get the value from a textbox as a character array which I then can loop through and compare ag...

Looking for a jQuery Carousel plug-in with in place AJAX refresh

I'm looking for a similar plug-in to what you see on Amazon's homepage. Scroll to the bottom and check out how the carousel actually works. Notice that when you click right or left, you get an AJAX refresh (not an entire slide of pictures which is what most carousel plug-ins do). So I've been looking for a jQuery based plugin to do t...

django jquery ready event not firing

I have a django project, but for some reason basic jquery isn't working. <html> <head> <link href="/site_media/css/poll.css" rel="stylesheet" type="text/css"> <script type="text/javascript" src="/site_media/js/jquery-1.3.2.js" /> <script type="text/javascript"> $(document).ready(function(){ ...

jQuery not updating div

I have an element like this: <div id="foo_<?php echo $id;?>" class="hidden"></div> I'm trying if ($("#foo_ " + id).is(':hidden')) { //stuff $("#foo_ " + id).html(html).slideDown('fast'); } I've checked repeatedly, the div foo_233 is being found in firebug and is being shown as hidden. The id is passed on to the javascript f...

What are the pitfalls of executing jQuery without $(document).ready();?

Self-explanatory, I hope. ...

Getting absolute 'top' position from a mouse event (Javascript/jQuery)

On a mouseenter/mouseleave event, I would like to capture the absolute 'top' position of the cell of a table. So far, the event is attached like so: $('td[someAttr]').mouseenter(function(mouse) { // how do we get the td's top absolute position? //FYI: mouse.pageX and mouse.pageY would give the mouse position }); ...

Is my jQuery syntax wrong here?

Hey everyone, I am learning jQuery and I'm finding that this code is not working: <script type="text/javascript"> $(document).ready( /* Navigtion Stuff */ function(){ $('.menu ul').hover( function(){ $(this).parent().addClass("active"); }, function(){ $(this).par...

jQuery selector for every row except the first on every table except first

I want to apply right alignment on the last cell of every table row, skipping the first table on the page and skipping the first row of every table. I wrote the following: $("table:gt(0) tr:gt(0) td:last-child").css("text-align", "right"); The tables after the first are selected. GOOD. The last cell in each row is aligned right. GOOD...

JavaScriptSerializer.MaxJsonLength exceeded. What's the best practice for handling this?

I've got a large amound of data I'm sending down to the client using jQuery's $.ajax() function. I'm calling a method in a ASP.NET web service that returns the JSON data. Everything is great for most searches, but when I've got a large data set to return I run into a issue with the JavaScriptSerializer MaxJsonLength property. What's the ...

jquery autocomplete: Get "new" values when they're done

I've got a jquery autocomplete text box (multiple: true) used to set categories on an item, pretty much exactly like the stackoverflow tags. The autocomplete source is a list of objects, with formatItem overriden to do the correct display. What I'm trying to do is pull two lists out of it: one list of selected category IDs (array of in...

Javascript closure scoping issue

I'm trying to get a reference to cell and it appears null. If I'm understanding it correctly, I should be able to reference the variable. Correct? $('td[someAttr]').mouseenter(function(cell) { var timeoutId = setTimeout(function() { // what should variable cell be? }, 1000); }); OR $('td[someAttr]').mouseenter(functi...

Intergrate Galleriffic with Lightbox, how?

Hello, Anybody has a idea how to intergrate Lightbox 0.5 with Galleriffic? (http://www.twospy.com/galleriffic/) When you click on the download button/text I want the image to open in a lightbox. Greatings, Bas ...

jQuery Fancybox & Image Frame Size Control

I know that I can use the frameWidth and frameHeight options to control the frame size for inline and iframe content, but what can I do for manually controlling the frame size when displaying images? My problem is that I have images that I want to display in a fancybox that are extremely horizontal and not much vertically; fancybox scal...

jQuery validator plugin without using form

I have multiple section is asp.net that submits data in chunk and i want to use jquery validation plugin, but issue is that asp.net wraps everything in form and child forms not wokring right and technically incorrect. So only alternative is forget about form and implement validation for divs. But all sames i see are using form. As not b...

copying session values to input fields

I dont understand why the following code is not working. I save some inputs values to sessions. In the next page, I want users be able to copy these values to input fields. $(function() { $("input#copyshipping").click(function(){ if ($("input#copyshipping").is(':checked')) { // Checked, copy values ...

How can jQuery show different items based on a variable

I want to create a navigation bar that cna be used on every page. Most nav items have the same styling, however the nav item that relates to the current page has differen tstyleing. I want to be able to use jQuery to read a meta tag and display the correct styling. I have pasted my code below - this doesn't seem to work: <!DOCTYPE htm...