jquery

disabling ASP.NEt Validtor such that its disabled on postback

I am trying to disable ASP.Net Validator such that its disabled on postback. I am disabling the validator on client side using $('.c_MyValidator').each(function() { ValidatorEnable(document.getElementById($(this).attr('id')), false); }); but when the page postbacks, my page is still invalid. I am in UserControl (.ascx) so no ov...

jquery right click event ?

in jquery is there a way to distinguish left and right clicks ? ...

Getting the value from key in a dictionary that is nearest to a given number using JavaScript

I have a dictionary (keys are integers, values are float). I would now ask the dictionary for the value of the key that is > than the given number but < than the next greater key. Example: dict = {100: 0.0035, 150: 0.0024, 200: 0.0019}. i give 122, it should give me 0.0035 i give 333, it should give me 0.0019 i give 200, it should ...

I have a table that I want to move to the top of the page via jquery

Hi, I have a table on near the bottom of the page, which I want to move all the way to the top to hug the top of the browser (ie/ff compatible). What's the best way to do this? <div id="mytable"><table id="t1"><tr><td>hello</td></tr></table></div> ...

s3slider jquery

sorry guys but why would s3slider plugin for jquery throw this error when I followed everything to the letter. here is the error $("#s3slider").s3slider is not a function here is the code for which the s3slider works on: <div id="homepics"> <div id="s3slider"> <ul id="sliderContent"> <li class="s3s...

how to create a cross-browser compatible "spotlight" effect ?

i found a spotlight plugin for Jquery, but it is not functional in IE. so is there a way to make the rest of the background fade to a dark color while selected or element of focus remains the same ? ...

How to use jquery to have hidden menu drop down at top of page?

I've seen this done before, but I'm not sure how. When my page loads, I want a hidden section to drop down at the top of the page (probably around 100 pixels in height). Ideally, I'd like it to shift the entire page down as well (as opposed to appearing on top of the page). At the top corner of the secret area should be a 'Close' butto...

What does img[@rel= mean in this jQuery plugin?

Here Is it a deprecated selector? ...

how can i use this jquery plugin theres no examples or guide

http://plugins.jquery.com/project/conmenu its a plugin for right click menu..... however it has no example usages or illustration or demonstration.... like where can i include additional selector options like top.document, or parent.window.document $.conmenu({ selector:".node", choices:[{ label:"Edit", action:function(div)...

How to unit test a jQuery selector?

Hi all: Just a quick question... I currently have the following jQuery code with a selector in it. var ID = "idControl" function doesTreeViewExist() { if($('#' + ID).length == 0) { return false; } else { return true; } } I was wondering how do I write the test to test the selector using QUnit? ...

jQuery.getJSON inside a greasemonkey user script

I am attempting to write a user script that makes a cross domain AJAX request. I have included jQuery inside my script using @require and everything seems to be working fine up until the point where I try to run jQuery.getJSON. The API I am accessing supports jsonp, however I keep getting an error stating jsonp123456789 is not defined....

jquery variable outside function

How can I update a variable outside of a function? For example I have this: var max_index = 0; //loop through the z-index's $(".widget_container").each(function(){ if($(this).attr("z-index") > max_index){ max_index = $(this).attr("z-index") + 1; } }); alert(max_index); The only problem with this is that max_index is ...

Sliding & hiding multiple panels in jQuery.

I have a table with multiple rows in each row is a select list and based on the selection (when the onchange event is fired) panels appear containing additional data below the row.I currently have code like this: var allPnls = '.inv-dtl-comnts-add,.inv-dtl-comnts-update'; $(document).ready(function(){ hideAll(); //select a...

Filter GridView using jQuery...

I was thinking to apply a filtering function on GridView by using jQuery, such as a plugin called quickSearch. I have tried to google it but what i found is, normally the quickSearch is implemented together with table. So, for gridview, how can i filter the gridview using quickSearch?? ...

right click jquery plugin

http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/ its a great plugin but i dont know how to edit it so that it will work in my case i load all the js files from an iframe (it has to be this way, for my case...) i need to access all the elements outside it. i put the css and menu html on the document. so within the js fil...

destory a function in javascript ( jquery )

hello guys is there anyone know how to destory a javascript ( jquery ) function? im using jquery "selectable" and a function call "edit" is fired on selectable "stop" event. inside this "edit" function i has nested switch functions with a lot of "click" event. and i have many functions within each "click" event. my problem is, everyt...

right click not showing menu outside iframe.

in my header.html, i have the following jquery code. $("*", window.parent.document).bind("contextmenu",function(e){ $("#myfmenu").show().css({ top:e.pageY+"px", left:e.pageX+"px", position:"absolute", opacity: "1.0", zIndex: "9999" }); return false; }); header.html is loaded via iframe in my main.html however, w...

I can't change HTTP request header Content-Type value using jQuery

Hi I tried to override HTTP request header content by using jQuery's AJAX function. It looks like this $.ajax({ type : "POST", url : url, data : data, contentType: "application/x-www-form-urlencoded;charset=big5", beforeSend: function(xhr) { xhr.setRequestHeader("Accept-Charset","big5"); xhr.setRequestHeader("Content-Typ...

how to set tab focus on li page load using jquery

hi, I have below code in html. <li class="selected" runat="server" id="lihome"><a href="/ISS/home.aspx" title="Home"><span>Home</span></a></li> Now I want to start my tabbing from this li when my page get loaded. Please suggest how to do this. Thanks. Best Regards, MS ...

javascript how to make the dropdown value to reset to intiall value(checking the check box)

hi, "INSERT MODE" i have check box in one "tr". and another dropdown control in another "tr" intially dropdown control will be invisiable intially . but once the user checks the check box. the dropdown control should be visiable and he can select the value. but again the user unchecks the check box the dropdown sho...