jquery

Set custom color to the Table row according to table data by jQuery

Hi Everyone, I am facing a problem regarding jquery Heat Color. i want to set a custom color to the all row according to a table data of that row.The is generated in run time.i set a hidden text field and comparing with this value set a particular color.i am using the code.. $("#tblreg > tbody > tr").heatcolor()//for every row of the t...

Jquery: When Hover on Menu Item, Display Text

Hi, I'm new to JQuery, but wish to use it in a site that I'm building. When the user mouses over an item in the menu with li class hovertriggerssubhead, I want to display some text below it, located in the div (nested inside the li) with id NavSubhead. I have looked at several examples of this, namely in the cookbook in the FAQ of the J...

Image rotation using jQuery but anchor remains the same

I have set up an image slideshow with captions using jQuery. The entire image and caption div is surrounded by a linked anchor. For some reason even though the slideshow function works fine the anchor remains the same as the last one set. i.e. using the example below, the slideshow content will only ever link to "shows/". <div id="mainf...

Is there an equivalent Javascript or Jquery sleep function ?

Hi. I want something like this in javascript. for (i = 0; i < 10; i++) { alert(i); // now sleep 1 sec sleep(1000); } is there a built in Javascript or Jquery for this? Thank you! ...

jQuery AJAX live update on multiple elements on the same page

I'm delving into some AJAX and I'm trying to utilise jQuery. I have an index page which links to multiple pages and next to each page is a view count. I would like the view count to refresh and automatically update every couple of seconds so that those on the page can view live updates of the page counts. I've come accross the followi...

jQuery : how to debug?

Recently i watched a tutorial from youtube (http://www.youtube.com/watch?v=8mwKq7%5FJlS8) The boy is typing jQuery code and as soon as he presses enter key we can see the result intently. What tool is that? ...

Manipulate standard table with thead and tbody tags - to be later able to filter and sort

Hi there, I would like to modify a table that is generated by a wiki. This is why it has NO thead and tbody tags. What we try is to add these tags at the correct positions. Remember, the table itself is generated by awiki which means that lines can be added after a while. Here is my code (html and dojo): <script type="text/javas...

Shadowbox doesn't seem to work

Hi I have an XHTML 1.0 Strict document in which I'm trying to make Shadowbox work. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta name="Content-Type" content="text/html; charset=UTF-8...

Blur Event Does not get Fired in IE7 and IE6

I have a dropdown Menu where in a div is clicked and List is shown. On focus out I am supposed to hide the list(i.e. when the user clicks or focuses on some other element and not on mouse out) Hence my obvious choice was 'onblur' . Now the javascript seems to work in firefox but not in IE thats because my div has a sub div with a hei...

how to get to the value of manipulated dom element using _this_ Jeditable?

This is a Continuation of http://stackoverflow.com/questions/1255596 Please respond here.. this is my 'real' account.. I'm trying to assign different parameter values to different divs on which I have enabled the jQuery plugin 'Jeditable'. I can't get it to work, I'm sure its something simple.. but I can't figure it out.. How do I ach...

Finding the next input (of a parent?) with jQuery

Hi guys, I've got a checkbox inside a table, and when you click on it, it'll change the background colour accordingly like so... $("#table tr td :checkbox").bind("click change", function() { $this = $(this); // cache the jquery object if($this.is(':checked')) { $this.closest('tr').css('background-color', 'lightyellow'); } e...

Ajax loaded html doen't show images in Firefox

I loaded some async html with $.ajax({ url: target, beforeSend: function() { }, success: function(html) { targetTabBox.html(html); } }); The url: t...

serialize doesn't include hidden fields

I run serialize on a form, where on of the fields is hidden - and it's a very important field, which should be posted. Is there any way to easily serialize it through jQuery or should I write my own function? ...

jQuery Sequential List Problem

Hi Everyone This is probably very simple! I followed a tutorial from http://webdesignerwall.com/demo/jquery-sequential/jquery-sequential-list.html It works fine when there is one ol list on the page. But when there are 2 ol lists I have an issue: $(document).ready(function(){ $("ol.step li").each(function (i) { i = i+1; ...

Applying AddMethod() to validation function

Hi I am new to jquery, I am trying to validate a group of checkboxes[] using the validation plugin. After searching the internet I came across this AddMethod( ) which seems to resolve the issue of checkboxes, but I can not find any piece of code that explains how to apply the new method name to the validate(). Here is my code of w...

JQuery blur event

I have a text area and a "add" button on a form. By default the text area is shown as shrinked and grayed out. On focus it will be highlighted by changing the style. On blur it should go back to previous state. Along with highlighting the textarea, add note should toggle as visible and hidden. The problem is when i enter the data in text...

jQuery events + HTML event attributes

I've got a form with an onsubmit attribute like this (which I can't change): <form onsubmit="return validate(this);"> I want to run another function, that needs to look at the return result of validate() and then possibly return false to prevent the form submitting. Edit: The contents of onsubmit="" could change, so I can't just wri...

Strongly type returned JSON using MonoRail

Hi I am calling the following method in my controller using $.getJSON() [return: JSONReturnBinder] public object ProfileFields() { var userfields = _profileSvc.GetFields(282); var fields = from f in userfields select new {f.ID, f.FieldName}; return fields; } My _profileSvc comes back with extra data...

jQuery Tabs Hide Until Loaded

I am using jQuery UI Tabs to control the presentation of content on a portfolio page I am implementing. The page consists of many large images and the tabs take about a second or two to fully load. I want to know if their is a way to hide/mask all content until the tabs are loaded. Optimally I would like to have a loading graphic appear ...

ASP.NET AJAX UpdatePanelAnimation Extender: Cannot Reinstate a Div That Changes Size

In his UpdatePanelAnimation Extender video, Joe Stagner shows viewers how to animate an update panel during an update operation. Unfortunately, I've found that his sample code will not work if the targeted div's contents either grow or shrink after the update. For example, if you attach the UpdatePanelAnimation Extender to a div that c...