jquery

JQuery 1.3 upgrade considerations

I hear nothing but great things about the newest version of jQuery 1.3. Has anyone experienced any problems upgrading from 1.2.6? I would love to use it but I want to know if there are any gotchas first. EDIT: 1.3.1 is out. ...

How can I get the id of clicked element using jquery?

Hello guys, I want to get the id of the clicked element and then show divs that match this id. I am using the following code, and it's not working. Please help. $(function () { var tabContainers = $('div.difContetform > div'); $('div#head-nav ul a').click(function (event) { $('div#head-nav ul a').removeClass('current'); ...

Jquery event chaining

Based on this question I don't want to litter my ready stuff waiting for a "click event" AND a "change event" AND a "mouseover event" I want to have all that stuff in a single function or event. Is is possible to chain the events together. I want to capture not only a keyup, but also a click or a change in case the user isn't on the ...

How to cancel/kill window.setTimeout before it happens on the client?

I have a few places where I use the line below to clear out a status for example. I have a few of these that hang out for 10 seconds or more and if the user gets clicking around the action can occur at incorrect time intervals. Is it possible to cancel or kill this w/ some jQuery or JavaScript so I don't have this process hanging aroun...

Cleaner (nested) closure in JavaScript with jQuery's each()

I was wondering if there is a cleaner (more succinct) way to do what each() is doing in following JavaScript code. $(".moreinfodialog") .before('<a href="#">Click for more info.</a>') .each(function() { var temp = this; $(this).prev("a").click(function() { $(temp).dialog("open"); return f...

style on GridView gets lost on paging

Hi, I am using GridView bound to sqldatasrc (with paging). On a button click I apply styles on a few rows using jquery, when I go to page 2 and reurn to page 1, i see the styles are no more there. This is due to postback. How can i retain these styles when i move between pages. Please support answer with code. ...

Any In-place Javascript Rich Text Editor available?

Are there any in-place editor in JS that supports Rich Text like TinyMCE / FCKEditor? e.g. of in-place editing (non-rich text): http://www.appelsiini.net/projects/jeditable/default.html ...

Quick and acceptable MP3 streaming solution

Hi, I have to do a job overnight to enable a very simple interface for users listening to a radio channel over the internet. I am wondering what is the best soluition for streaming. I thought of QuickTime, but it requires users to have it installed and I am not quite sure Quicktime is as spread as flash. So I tend to implement something ...

How do I get the total Json record count using JQuery?

I couldn't find anything about that. Here is the Json returned: {"Email":"Please enter your Email.","Password":"Please enter a password."} Here is my code: $(function() { $("#btnSubmit").click(function() { $.ajax({ url: "/account/signup", type: "POST", dataType: "json", data: { Email: $("#strEmail").val(), Pass...

How to get jQuery effects working on Firefox and Google Chrome?

I'm poking around with jQuery and the fadeIn & fadeOut effects. I have the following code to display and to hide a div with a message. ` <script type="text/javascript"> $(document).ready(function() { $("button").click(function() { $("#upd").fadeIn(3000); $("#upd").fadeOut(20000); }); }...

JQuery UI Theme Problem

This shouldn't be so hard but I just can't seem to get this to work. Just trying to use a dialog box but can't get it to format the theme. <html> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <title>Demo</title> <link rel="stylesheet" href="flora.all.css" type="text/css" media="screen" title="...

Smart Quotes Using JQuery

Using jQuery, how can I enable the live insertion of smart quotes while editing text boxes? ...

What's a good way to store model data in a jQuery app?

I'm working on a web app which is heavy on the client side, which is a first for me. I'm also using jQuery for the first time. I need to have my client-side code keep track of model data which it fetches via Ajax calls. What's a good way to store this data? Does jQuery provide a good solution, or is there a good generic Javascript so...

events for nested elements

I am using the listen plugin for jQuery for binding events to dynamically created elements. In my scenario, I have a div hosting a span element. I want function "spanClicked" to fire on span click and function "divClicked" to fire on div click when I click on the div to fire function "divClicked", since the span is inside of it, funct...

How to do browser detection with jQuery 1.3 with $.browser.msie deprecated?

How should browser detection be done now that jQuery 1.3 has deprecated (and I'm assuming removed in a future version) $.browser.msie and similar? I have used this a lot for determining which browser we are in for CSS fixes for pretty much every browser, such as: $.browser.opera $.browser.safari $.browser.mozilla ... well I think tha...

How do I disallow clicking on a link while an ajax request is in progress?

I have "a" element which servers as button. It has no href attribute. I'm using jQuery to achieve very simple thing: on click start ajax request and prevent further clicks. After ajax completes, enable clicking. I don't use form or input button. var contact= { send: function() { $.ajax({ type: "POST", ...

How to use jQuery to get all the submitable elements in a form?

Like < textarea >, < input > etc ...

JQuery DatePicker, how to highlight current input value date?

I'm using the datepicker control for jquery and all is well except that I cannot get it to highlight the currently selected input value (or the current date for that matter). Even though I have s valid date value in my text input and can get the datepicker to return the correct month / year, I cannot get it to highlight that date on the ...

Hide/Show Column in an HTML Table

I have an HTML table with several columns and I need to implement a column chooser using jquery. When a user clicks on a checkbox I want to hide/show the corresponding column in the table. I would like to do this without attaching a class to every td in the table, is there a way to select an entire column using jquery? Below is an exa...

Jquery Event Bubbling CheckBox

I have a form with checkboxes and then text to the right of the checkbox. There are jquery events attached to the click events of the the checkbox. What I want is to allow the user to click on the label or the checkbox and have the checkbox check/uncheck and the event to fire. Below is a simplified version of what I'm trying to do (DO...