jquery

Scrolling content

Does anyone know if there is a common javascript library to enable scrolling that many popular websites do for frequently updated content? For example : http://foursquare.com/ has a good example of what I am looking for, I thought I'd save myself the trouble if there is a common js library I cannot seem to query for correctly in google. ...

Can js/jQuery determine the orientation of the iPhone?

Out of curiosity I've been playing with jQuery to determine the browser's screen size, and it occurred to me that screen size could be used to determine whether or not a visitor was using an iPhone/iTouch to view the site. So I used the following to test this: $(document).ready( function() { var screenX = screen.width, ...

Does back/forward in the browser change javascript variables?

<script type="text/javascript> var x = 0; //this occurs in the beginning of the page. $("#button").onclick{ x = 1; } </script> Let's say the variable "x" changes to 1. Then the user clicks a link. When the user clicks "back", will x be 0 or 1? ...

jquery 1.4.2 vsdoc

anybody know where i can get the vsdoc for jquery 1.4.2? ...

Making an onchange event also run to pageload

Hi Guys, I have some onchange events setup in jQuery which are used to populate a select dropdown boxbased on what is selected in another select dropdown. I need these to also run on page load that so that results are returned based on what the first select box is at on page load (otherwise i endup with an empty select box). Ive had ...

semi transparent div in a webpage

Hey am developing a website where i want to display a div with a semi transparent background so that the page background is visible. i want this to work on all browsers. am fine using CSS , JS or jquery... please give me suggestions and if possible some sample code.. Thanks in advance, Raj ...

Combining jQuery Sortable and Drop Event

Basically I have a draggable list which is connected with a sortable list. Works great except I need some sort of Drop event which I can use to change the list item after its dropped into the sortable list. This works with .draggable -> .droppable but is there a fix for draggable -> .sortable? ...

calculating column totals in multiple tables using

I'm a relative newb with jQuery but I've managed in the past to cobble together a few simple scripts. I've got a new challenge and I know I'm 'in the zone but I need some help. I have an html page, with numerous tables in this format: <table class="tableClass" id="tableID"> <col class="date" /> <col class="reference" /> <col clas...

Use jquery select an option ?

<select> <option value="0" id="n">n</option> <option value="1" id="m">m</option> </select> In Jquery, how do I make the option 'selected' for id=m? ...

jQuery image carousel - How can I repeat the images?

I've written an image slideshow in jQuery that speeds up/down based on where the mouse is hovering over the images. I'd like to have the images 'repeat' as the slideshow ends. So the user scrolls through the slideshow, it reaches the end of the image LI's and then seamlessly repeats from the start. Here's the current code: jQuery $(d...

jquery checkbox matching radiobuttonlist

On my pages I have a table with rows that typically look like this: <tr class = "child"> <td> <asp:CheckBox ID="CheckBoxEyeProblems" runat="server" /> </td> <td align="center"> <asp:RadioButtonList ID="RadioButtonListEyeProblems" <asp:ListItem Value="Y">Yes</asp:ListItem> ...

Jquery onselected for a option , how to?

<select> <option value="0" id="n">n</option> <option value="1" id="m">m</option> </select> In JQuery, how do I say: When id "n" is selected...do this . (not onclick) I want onSelected. ...

Enabling browser back/front navigation for page loads that don't change URL hash

I have an Ajax site where I have browser navigation hooked up to ajax page loads in cases where navigation results in a change to the URL hash. I was wondering what the best way to get navigation history is for ajax loads that don't result in a change to the hash. So, say I have 'Level 1' links which, on clicking, result in a URL hash...

Jquery show/hide not working

Hi all, I have this jquery script which suppose to hide/show div element base on the hyperlink that is clicked. I don't know why but it's not working at all. The following is the except of my code. function hide_current_commoncontainer(commoncontainer){ $(commoncontainer).each(function(){ if(this.is(":visible")){this.hide();} }); ...

Disabling the button after once click

Hi All, In my application i need to disable the button once it is clicked so that user should not click more than once. APplication is MVC ASP.NET i have done this in normal asp.net application. I tried using javascript and Jquery its not working button is getting disabled but then form is not getting submitted <script language="jav...

css properties for a jquery dialog

How to add the following properties to a jquery ui dialog? background-color:white; filter:alpha(opacity=80); -moz-opacity: 0.8; opacity: 0.8 and the dialog properties are $bottombar = $(".bar", "#view").dialog({ height: 475, width: '100%', modal: false, draggable: false,maximize: false , stack: t...

Is jQuery faster than javascript?

Recently I had to convert some Javascript code to JQuery scripts. In this process I found that using JQuery do not speed up my site as much as I think. actually Javascript was faster in my case. So I want to know that, Is JQuery Faster than Javascript or not ? also Whats the main advantages of JQuery to Javascript ? ...

JQuery Ajax Plugin File Upload simplify code

Hi I am currently using Valums JQuery File Upload plugin. The plugin is very convenient to use, but I do not like how the code looks. Because it occupied inside document.ready such as: $(document).ready(function() { var button = $('#button1'), interval; new AjaxUpload(button, { action: 'http://test.com/user/uploadfile', n...

Disabling all the Page Control through jQuery.

I am working on asp.net and c#. I am using lots of ASP and HTML controls on the page and in some cases all the controls gets disabled. Some of the used Controls are: RadioButton RadioButtonList CheckBox CheckBoxList TextBox DropDownList Button etc... I need a Simple and short method to disabled all the Controls when i call this jQuer...

Setting a select by label via jquery in 1.4

In jquery 1.3.2, the following works: <select id="c"> <option value="325">Red</option> <option value="833">Purple</option> </select> $('#c').val('Red'); And it changes the select to the option with RED as its label. In jQuery 1.4 this fails. How can I get the same result in 1.4? Was this a bug in the 1.3 version? ...