jquery

asp.net panel or treeview focus

i have a asp tree view inside asp panel. i have done key focus and scroll successfully. i put my code in jquery panel click function. but when i click another text box and enters a key, still the panel works.It shouldn't. Help needed. $('#ctl00_mainContentPlaceHolder_PnlList').click(function channelFocus() { //Code to focus channel...

Set selection box by Option Text

Hi! I have a Select-Box like this: <select id="mySelect"> <option value="1">Entry 1</option> <option value="2">Entry 2</option> <option value="3">Entry 3</option> <option value="4">Entry 4</option> <option value="5">Entry 5</option> </select> How can I set the val of my Select-Box by knowing only the text()-Attribu...

How to Display the Javascript Navigation menu On the top of the Flash in all Major Bowsers

My site has a jQuery drop-down navigation menu and that is displayed beneath the Flash. How can I display the navigation menu above the Flash object? I tried with setting wmode="transparent" but it is not work. Please provide some help to solve this problem ...

Javascript If Else nesting

Hello here is my code : var one = 0; var two = 0; var three = 0; var free = 1; function open() { if ($('#one').is(':visible')) { one = 1; } else { one = 0; free = 1; } if ($('#two').is(':visible')) { two = 1; } else { two = 0; if (one == 1) ...

Passing canvas data through ajax

Hi, I have an application to save the canvas data instantaneously to server. My requirement is to export the canvas data on every second, save it to the server through ajax and import the same data to another canvas in another browser through ajax. I am using Jquery for ajax. I used the following code to pass the data function sendCan...

Jquery addClass question

Can someone tell me what this is doing? How should I refer to this in my html? What I want is to echo an error message in the html. $('#' + $field) .addClass('invalid') .siblings('.error') .text($message) .show(); ...

making jQuery code static for different pages

Hello, I am trying to use the jQuery Countown plugin to let my users now how much time they have left for a certain task. So I use the following code to start the countdown with 30 minutes. <script type="text/javascript"> $(function () { $('#defaultCountdown').countdown({until: '+30m'}); }); </script> The problem is that the users ...

cross browsing problem in ajax call.

When i execute it in firefox mozila than this code is working well (in case of register user) but when we try it in IE (iternet explorer 8) then alert("sorry u must have to login first"); this message is comming. ( in both cases as register or gest). Another thing: for gest user returning data from server is null. means d = null, Ano...

error div not being populated

Would someone have a look at this and tell me what I am doing wrong? I am not getting anything back from this JQ function and the error div is empty. I'm really new to JQ so go real easy on me please. $(function() { $('#form').submit(function( ) { $(this).find('.error').hide(); try { $.ajax({ 'url': $(this)...

Global method for setting a wait cursor when POSTing or GETting web pages?

We have a web application that is well established and has a few hundred screens. Some clients on slow connections are annoyed that when they submit a page, or when a page is loading, there's no indication that anything is happening (the cursor just remains a pointer). This particularly seems to be an issue on Firefox ... which NEVER s...

Jquery specific div selection without using accordian

HI, I'm trying to get accordion like functionality without using jQuery's UI accordion feature. How can I select the related (child?) div to open when using a link attached to a dt element? At present my code is <div id="listings"> <dl class="listings"> <dt> Get the Milk </dt> <dd> Due Date: 17th Oct </d...

jquery tabs selection

the jquery code is like this: $(document).ready(function() { //When page loads... $(".tab_content").hide(); //Hide all content $("ul.tabs li:first").addClass("active").show(); //Activate first tab $(".tab_content:first").show(); //Show first tab content //On Click Event $("ul.tabs li").click(function() { ...

jquery visibility selector

I'd like to know if there's anything incorrect in the following : if($('#three').is(':visible')) { alert("visible"); } else { alert("hidden"); } Thanks ...

Jquery image point out on mouse over within an images grid

Does anyone know a simple Jquery plugin or other method (always with Jquery) to get the effect to point out an image in a image grid on mouseover? I would have thought a tiny zoom effect or...somenthing else I don't know. Thank you... ...

jQuery why $(this) doesn't work in a setTimeout method?

I have this jQuery code: $('#loadingDiv2') .css('visibility','hidden') // hide it initially .ajaxStart(function() { $(this).css('visibility','visible'); $("#bbdata").empty(); }) .ajaxStop(function() { $(this).css('visibility','hidden');// works here setTimeout(function(){ $(this).css('visibility','hidden');// doesn't w...

javascript object literal pattern with multiple instances

I have developed a little javscript widget to turn some nested <ul> blocks into a windows explorer style browser. I have recently learnt about the object literal pattern and decided to give it a go, so the organisation of my code is something like this: var myExplorer = { init : function(settings) { myExplorer.config = { ...

Array exists in an array of arrays

How can I check if an array exists in an array of arrays ? I have tried either plain javascript and jquery methods but none seems to help. IE this doesn't work: $.inArray( [1,2], [[0], [], [1,2]] ) Even a more simple one: [1,2] == [1,2] //gives false. [1,2] === [1,2] //gives false. ORDER is NOT important for my task, only same ele...

How define images for arrows, drag and track in the new version of jScrollPane?

Hi I downloaded the last version of jScrollPanel (2.0 beta 5) but when opened jquery.jscrollpane.css I can't find any rules to apply images for top and down arrow, instead I found only this rule .jspArrow. I try to add an background image and it worked but the image shows on the top and down, how I can specify image for each side and al...

Problems of IE when using Jquery

I am acessing the sibling of a checkbox using parentNode.nextElementSibling.value;It will returns value and works fine in Firefox.But in IE it is saying Object is null and saying Microsoft JScript runtime error: 'parentNode.nextElementSibling.value' is null or not an object My function is as follows function chkEnergy() { ...

mvc2 multiple content place holders

Hi, multiple content place holders..1 with a text entry box and a submit button.. the second content place holder has several options in.. when i perform the submit the options from the 2nd place holder aren't getting passed through. can you suggest a method on how i can perform this submission passing all values to my controller? the va...