jquery

How can I further optimize javascript table row creation/insertion?

I'm using jQuery. I have website feature that does an ajax search and returns a JSON result. The ajax callback then populates the rows of a table with the results. Generally, there are 100 rows per search that get inserted. Each row has a fair amount of data. The code looks something like this (very much abbreviated): function sear...

Thickbox - Multiple line captions

I'm trying to make an overlay with thickbox... it only allows one line captions... Anyone have any alternative jquery plugins they use? I'm trying to make something like: http://hammer.ucla.edu/exhibitions/detail/exhibition%5Fid/166 ...

jQuery select all radio button group

I am a newbie to Jquery, but I love what I have been able to do so far. I'm working on a long form that has several radio button groups. At the bottom is a radio button "No All". When it's selected I would like to make it so that all of the "N" radio buttons are selected, but I can't get it to work. Here is a simplified version of th...

SELECT-like onChange event with jQuery

Hi all! I have a little dropdown menu similar <select>, which contolled from external js-function. HTML: <ul class="select" id="select"> <li> <a href="javascript:void(0);" class="selectlink" id="price_type">UAH</a> <ul> <li onclick="onchange('elm0', 0);" > <a href="javascript:void(0);" id="elm0">UAH<...

jQuery Slide Panel on Mouseover

How can I make this sliding panel example to slide down on mouseover and slide back in on mouseout instead of using the click function? See the example here: http://www.webdesignerwall.com/demo/jquery/simple-slide-panel.html $(".btn-slide").click(function(){ $("#panel").slideToggle("slow"); $(this).toggleClass("active"); return false...

Multiple instances of SlideToggle which toggle everything.

I have the following script which appears multiple times on my page. I have a simple slide toggle attached to <div class="info"> and contolled by <a rel="viewinfo"> tag, but when I click on the anchor, all the divs with class info slide. here is the HTML/PHP <div class="couplistMeta"> <a class='view' rel="viewinfo" href="#">View C...

Zend Framework + Uplodify Flash Uploader Troubles

I've been trying to get the Uploadify flash uploader (www.uploadify.com) to work with Zend Framework, with no success so far. I have placed all Uploadify files under /public/flash-uploader directory. In the controller I include all required files and libraries like this: $this->view->headScript()->appendFile('/js/jquery-1.3.2.min.js')...

Disabling/Enabling buttons using jQuery

I am new here and I have a simple (hopefully) problem at hand. I am trying to figure out how to switch classes on my "Apply" button once an end-user clicks inside a form field/element. The demo test page I have up can be found here - http://www.iconpayment.com/test/Untitled-2.html Also does having the image as a background or inline im...

Href on random element in jQuery

I find myself using this method a ton to perform actions based on a anchor tag's URL (with jQuery): ("a").live("click", function(event) { event.preventDefault(); var href = $(this).attr("href"); // do something with URL } Elsewhere in my app, I've got some tabular data which I'm adding inline edits to. When you double cli...

Jquery easeOutBounce direction?

I am attempting to use a Jquery menu, that makes use of the 'easeOutBounce' easing method. It is working fine but, I cannot figure out how to change the direction that the menu is bouncing out from. It currently expands to the right and bounces. My menu will be right-align and I want it to expand to the left. This is the example I'm usi...

How do I limit content preview and keep it readable

I'm loading some feeds and displaying them as links on my site page. When you hover over the link, a tooltip pops up with the feed, time, author, title and content. Sometimes the content is quite long and contains HTML. So I added a preview which cuts off the content after a certain point. So my question is how do I determine a good bre...

jQuery Tab Fade Animation

I have implemented jQuery tabs and am using the opacity technique to fade one tab out and then fade another in. I would like to have the second image fade over the first and then hide the first image. That way the background behind the tabs will not be shown. Please advise. Current jQuery code: <script type="text/javascript"> $(fun...

Bind a click to a dynamic button with jQuery?

Hi I want to create a button that has a jQuery click on the fly. After the user is done and hit the button I want to destroy the button and the jQuery click until a time I need it recreated. I am not sure how to do this in jQuery. I know jQuery.live is an option but I am not sure if this would be better or worse then the way I want to ...

Opera: Detecting back, forward, refresh and close events ...

I'm currently working on a jQuery plugin that tracks a visitors mouse behavior. Movements, clicks, scrolling and resizing are all recorded and sent, via Ajax, to a location where this data is parsed and stored. Originally, the data is sent to a script when the user leaves the page. By 'leaves' I'm referring to refreshing, going back and...

how to remove an html img from a table with javascript/jquery

Hi I have a table and I use jquery to get all the cells from each row. Some of these cells have text and a image in them. I want to grab the td cell(I have done this) then remove the image from these cells in memory(I don't want to remove them from the actual table). so my cell would look like this <td>hi their <img...... /> </td> I...

How to add a new row to a specified table with jQuery?

Is there a built-in method to do this? And how to make table rows selectable and then delete a selected row? ...

A combination of AND and OR in Jquery selectors.

Hi all. I have a jquery selector with following syntax. $('input[type=image]').not(".xyzClass").click(function{//some functionality}) So this puts a specific click functionality for all the components which are of type image and does not have class "xyzClass". *I have modified the question to reflect latest changes, some of the answ...

Kevin Luck's jQuery Date Picker plugin - Set the end date dynamically

I'm using Kevin Luck's jquery date picker plugin and I'm wondering what is the best way to format the dpSetEndDate() value to always be one year in the future? I tried using php: <?php echo date('Y')+1;?>-<?php echo date('m-d');?> But that didn't work. By itself, the php returns what I want to put in place of the date, but it doesn't...

three questions about table manipulation with jQuery

1.how to highlight the row when mouse is on,then de-highlight when mouse is out 2.how to update a specified row with new values? 3.how to get number of rows in table? EDIT: the one with best answer for q2 will be marked as answer for this post:) ...

How to open Jquery Modal Dialog Box on ImageButton Click

Hi Guys, I am using vb.net code and I have below code in my application <asp:Panel ID="pnlArchive" DefaultButton="ibtnArchive" runat="server"> <table> <tr> <td> Please Enter Your Password to Set Archive: </td> <td> <asp:TextBox ...