jquery

Combine Click with hover

I need to get this code to work so when the item is clicked the mouseout doesn't fade out the element. $('.link1').hover(function(){ $('#image1').fadeIn(); },function(){ $('#image1').fadeOut(); }).click(function(){ $('#image1').css('display','block'); }); Thanks in advance. ...

Submit form via AJAX with loading progress ?

Hello guys, just need tips on how to make forms where request are submitted via AJAX with a loading progress image. I am using update panels with AJAX framework. I would like to know about the recommended approach. Through JQuery or AJAX toolkit ? Please advice, examples would be an added bonus for me. ...

Jcoverflip calling the Next method from jquery

Tryin to call the next method: http://www.jcoverflip.com/documentation/advance-customization#section-methods <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#flip').jcoverflip(); $('#right').click(function() { var i = jQuery('#flip').jcoverflip(); i.next(); ...

limit dragging property of a div inside inside another div?

please help me to limit dragging property of a div inside inside another div example http://galtech.org/testing/drag.php i need dragg the red div only inside the blue div pls help me i am using jQuery draggble <script> $(document).ready(function() { $("#draggable").draggable(); }); </script> ...

Jquery remove selected div

<div id="a_all"> <div>&nbsp;&nbsp;&nbsp;&nbsp<input type="checkbox" name="m_a">1</input<br></div> <div>&nbsp;&nbsp;&nbsp;&nbsp<input type="checkbox" name="m_a">2</input<br></div> <div>&nbsp;&nbsp;&nbsp;&nbsp<input type="checkbox" name="m_a">3</input<br></div> <div>&nbsp;&nbsp;&nbsp;&nbsp<input type="checkbox" name="m_a">4</inpu...

jQuery conditional problem

I am trying to create a conditional statement on my dynamic product pages on my website, to aid the setting of the height of my columns (both left and right) and the center part (the #detail <div>). I have this bit of code now: $(window).load(function() { detailHeight = $('#detail').height(); columnHeight = detailHeight + 20; $...

Using jQuery slideToggle() without display:none?

I'm trying to use jQuery's slideToggle function to show or hide a panel which has been hidden using CSS position, rather than display:none (as this causes issues with a Google Map in one of my panels). At the moment I'm just hiding and showing the panels like so, but some animation would be nice: $('.panel').addClass('hidden'); $('.hea...

jQuery: I'm trying to bind a click action to multiple elements with the same class...

<script type="text/javascript"> $(document).ready(function() { $(".slider_link").each(function(i, elem){ elem.click(function(){ $("div#"+elem.attr("tag")).slideUp(300); }); }); }); </script> but after the first one (checked with alert) it breaks saying index.html has no method click... whats up with...

How to clear contents of an element on radio button change

I am having two radio buttons of label 'Text Mode' and 'Html Mode'. If Text Mode is selected only <h:inputTextarea/> should be displayed and the contents of HTML editor must be empty. If Html Mode is selected <rich:editor/> should be displayed and the Text textarea must be empty. The default selection is Text mode. (i.e. if the user adds...

Jquery ui-sortable - unable to drop tr in empty tbody

I have two connected tbody elements allowing me to drag rows between two tables. Everything works fine until all rows are removed from either table. When all rows have been dragged to the other table the tbody height decreases making it (near)impossible to drop rows back inside. Is there a known workaround for this problem? (min-heigh...

Add row in jqgrid

Hi, i am using jqgrid its working fine. I have scenario where i have to add the blank row in jgrid instead of popup to add the row. how can i do it. Please Help. Thanks. ...

How to generate sequence of numbers/chars in javascript?

Hi, Is there a way to generate sequence of characters or numbers in javascript? For example, I want to create array that contains eight 1s. I can do it with for loop, but wondering whether there is a jQuery library or javascript function that can do it for me? Thank you ...

Jquery modal for form posting

Greetings I would like to use a jquery based modal library for dynamicly generating ajax based and forms as a modal to display and submit. I already use jquery ui for other purposes however I am not sure if jquery ui dialog is a good way of displaying such data by fetching lists of items via ajax and generating forms to post. If not,...

issues with getting multiple select param values from jquery, javascript back to perl cgi page

Hi, I have been working on this for 1 hour with no such luck. Any help would be appreciated. I have a cgi script with which creates these select param values: print "Please select a dkversion to compare : <br><br>"; print "<select name='dkversion' id='dkversion' size='6' multiple='multiple'>"; foreach my $values ('ASDF123GS v0.01 mod...

Where to add jquery "this"?

$(window).load(function() { var paircount = 0; var $thisSprite = $("#%id% img.imageStyle"); if ($.browser.msie) { // I need this only if desaturate png with aplha channel $thisSprite = $thisSprite.desaturateImgFix(); } // modified not to desaturate the clone $thi...

Is that possible to set the active color in jPicker programatically ?

I'm using jPicker, and I would like to change the active color in my code (I create one instance of jPicker at the beginning, with some default active color). Is that possible ? Also, is that possible to make the jPicker window drag-able ? Sometimes, I would like to move the window to other location... ...

button function with ternary operator

I have the following code that is applied to a forward and next button. I also have the submit button that starts the process. It is desired that after you hit submit button (#lookup) it shows the forward and next to paginate through the results. The problem is that after the initial submit/#lookup and you hit forward and submit another...

Passing a self object in jquery

In the below code how to pass the div object inside validate function <div><input type="text"></input>&nbsp;&nbsp;&nbsp&nbsp;<a href="#" onclick="validate("Hot to pass the div objevt here")"</input> <script> function validate() { ..... ..... Finally remove the div } </script> ...

Adobe Reader plugin eating certain keydown events only in Firefox 3.6

I seem to have exactly the same problem as this person: http://forums.adobe.com/thread/618752 He also has example code that purports to demonstrate the problem. Basically, I have a webpage consisting of 2 frames: in the right hand frame, a PDF, which my users all view in Adobe Reader (generally 9.3), and a left hand frame which contains...

Change inline JS to click function in jQuery

Trying to clean up some code. I have a button that has the following inline JS <input id="lookup" type="submit" name="lookup" value="Search" onclick="changestart('1')" /> I would like to change the onclick to a jQuery click funnction but am getting no success. Here is the "changestart" function function changestart(direction) { v...