jquery

IE8 button gets "stuck down" when mouseup event is set

I have a <button> with a nested image and I'm using jQuery to toggle the image src attribute on mousedown and mouseup. When the button is clicked in IE8 the image moves down and right 1 pixel, as buttons do in IE, but then it sticks there and won't return to its original position. If I remove the mouseup event the button functions normal...

[validate plugin] check exact value for radiobutton or checkbox

hi how can i check that the value of my checked radiobutton / checkbox (between two or more) is exactly the one i want? at the moment if i check a radiogroup the validation returns always the value of the first radiobutton / checkbox. If it's not clear i'll put up an example page. Thanx Vitto ...

Making Facebox wait until FLV player has loaded.

Not entirely sure how to do this, but I noticed that Facebox works perfectly, but when I use it to load a movie, the FLV Player, JWplayer isn't fully loaded yet, and errors out. So I want to load JWplayer ( the FLV player ), before Facebox. Facebox gives this as their embed code. And they explain that you can pass an argument in it as w...

JQuery serialize & unserialize

Anyone provide me with an example to serialize and unserialize a form in jquery? ...

problem with jquery lightbox plug-in

I love this plug-in. I am having an issue and cannot find a solution to it. The site in question is: http://www.fuzzysiberians.com/index.cfm My problem is if you click on Katja's picture (she is the flying kitty), and click on the next button, there is nothing coming up. I am not sure what lightbox is trying to load in there. I tripl...

OnBlur and OnFocus event not working properly

Hi I'm trying to get my onblur and onfocus functions to work but they don't seem to be doing the right thing - i'm trying to say if the field "fullname" is empty then place "Full Name" in the field and if someone has entered something leave it as it is. At the moment it clears the field if it says "Full Name" and if its empty it puts "Fu...

Find all elements based on ids using regex on jquery selector

Hi, I've got several elements with unique ids like so: <div id='item-1-top'></div> <div id='item-2-top'></div> <div id='item-3-top'></div> I was hoping that the following would work using jquery: $("#item-[.]+-top").each(function() { $(this).hide(); }); I've not got a good grasp of regex and would appreciate some input please as...

How to store all editable values in an array using jquery

$("#fieldset").closest("fieldset").find("input, select,textarea").change(function() { return ($(this).val()); }).get().join(','); I am getting all editable field values on change.. I need to store all editable values in an array to pass to the controller? how to store the values in an array thanks ...

how to hide textareas if checkboxes not checked - JQuery

Hi, I'm trying to use jQuery to look at a form and for each of the checkboxes 'if checked' then show a div containing a textarea. Each div for checkbox id 'checkbiox_foo' is id 'checkbox_foo_reasons' I'm a total noob at jquery so I've got this far but I can't select the div to hide or show it. $(document).ready(function() { $('#stor...

how to change div background image in mouse over ?

I have some set of list items like- <div class="smenu"> <ul> <li ><a href="index.html"><img src="images/solution1.jpg" border="0"></a></li> <li ><a href="#"><img src="images/solution2.jpg" border="0"></a></li> <li ><a href="#"><img src="images/solution3.jpg" border="0...

issue to send text using jquery's $.ajax() and ASP.Net

Hello everybody, i use to work with the animation on jquery but never ajax, so it's my first experience with $.ajax() function of jquery: i am trying to make my web application only using jquert library, i checked over the web for a good tutorial to make asp.net and jquery work, and i found an walkthrought, in this article they send a i...

accordian + and - symbol help

<script type='text/javascript'> $(document).ready(function() { $('div.Syb> div').hide(); $('div.Syb> h4').click(function() { var span = $(this).children('span:first').attr('class'); // span.text(span.text()=='+'?'-':'+'); span = (span == 'plus')?'minus':'plus'; $(this).children('span:first').attr('class',span); ...

Timeago + DateJS = NaN

I'm trying to use timeago (source), with datejs, and it's not working. Here's some sample code I'd expect to work (given that timeago and datejs are loaded): >>> d = new Date() Mon Jun 21 2010 13:24:37 GMT-0400 (EST) { _orient=1, more...} >>> d.toISOString() // datejs.toISOString "2010-06-21T17:24:37.501Z" // this is a valid ...

How to detect a web dropdown menu is going to display off screen

I have a CSS based simple drop down menu with multi-levels. The second or third level might go outside the visible window, with certain combinations of resolution and window size. Some pre-built menu controls just open the dropdown to the left instead of the right, if they detect this situation. How can I test (with JS/jQuery) for this...

jquery custom tabs not working

Hey all, I have a real simple script, where the user clicks on a link, a div displays and all other divs in the container are hidden. Yet, when I click, it does not hide anything in the below code and firebug does not report any errors either: javascript: $(document).ready(function() { var linksToInt = { "#pple": 0, "#se...

How do I tell jQuery to run a function on one specific web page only?

I have some jQuery code that is on every web page of the site (in the head element). What selector syntax can I use to tell jQuery that a certain function should only run on one page and not all the other pages on the site? Can I specify a page name or URL in the selector somehow? Many Thanks ...

Scrolling Navigation gets stuck in IE?

I have a navigation in the top right corner that will scroll down a page with a user. I am using this jQuery code: var $scrollingDiv = $("#scrollingDiv"); $(window).scroll(function(){ $scrollingDiv .stop() .animate({"marginTop": ($(window).scrollTop() + 30) + "px"}, "fast" ); }); ...

Make input form read-only?

I have a bunch of forms that have a lot of <input type="text"> fields on them. The user now is requiring that I provide a "read-only" version of every single form. I would recode every field into an <xsl:choose> <xsl:when test="/..../permission = 'E'> <input ....> </xsl:when> <xsl:otherwise> ... </xsl:otherwise> </xsl:choose> m...

jQuery - select table cells without selecting from a nested table

I wrote some jQuery to select the cells from a table with a certain class; in this case, "hello". However, the table has nested tables with a column of the same class. How do I select the cells from the outer table but not select the cells from the inner? See below: HTML: <table class="foo"> <!-- this is the outer table <tbody> ...

Prepend/Append don't Work (Opera, Safari, Chrome)

Camarades, I tried using the append and prepend (), but none of the controls work. Could anyone help me? In Internet Explorer and Firefox works. The Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&...