jquery

Capturing Select Button on Gridview using JQuery

I have two GridViews that list out included and exclude data items respectively. By clicking "Change Status" (a custom button for each row) Users can change the row status from included to excluded or vice versa. However before changing the status - users would need to specify the reason and enter a date for when they want something in...

Clear Text Selection with JavaScript

Simple question which I can't find the answer to: how can I use JavaScript (or jQuery) to deselect any text which may be selected on a webpage? E.G. user clicks and drags to highlight a bit of text -- I want to have a function deselectAll() which clears this selection. How should I go about writing it? Thanks for the help. ...

how to add direct link to tabbed menu

hello i have just find this simple jquery tabbed menu: http://jqueryfordesigners.com/demo/tabs.html How can i add to it absolutes links to every content of the tabs? i explain: if for example the user enters http://xxxx.com/mypage.php#Second, the tab contents second should become tabbed(opened), is there a simple way for adding this feat...

Getting a reference to a div which has no id or class using jQuery

I have an ASP.NET server control which produces html. I have no control on the html produced. However I need to style some elements in the html using jQuery. I need to style the div shown below which has no class or id. The first child element which has an id is the Select element which has an id=mySelectID. How do I reference the div e...

How to change a link image on mouse over on jquery

I need to change a link image on mouse hover. I used the following code but does not work. Perhaps the problem is with the image source but I still cannot find what's wrong with he code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://w...

jQuery scrollTo/localScroll Speed Control?

Hey guys, I'm making a vertically scrolling site, but localScroll is flying by way too fast. Is there a way to control it's speed? Thanks! ...

jQuery - Cycle Through Children

Basically, is there a way to 'cycle' through child elements. i.e.: some text some more text even more text I want to get the text from the first '<'li'>', perform a few operations, then move on to the next one and next one until I have gone through all of the child elements. Is this possible? ...

Delay external javascript load by seconds.

I have ONE external JavaScript file containing jQuery, Cufon, fonts, and the replace functions. I need this file to be loaded twice once on page load and again 3 seconds after page load. Is this possible? ...

jQuery / Javascript - Multiple RegEx Validation

How would you go about validating 2 different regular expressions in jQuery or JS? My JS Code: function validate(){ var MyField = document.getElementById('MyField'); if (MyField.value == null || !MyField.value.toString().match(/^(\d{3})-?\d{2}-?\d{4}$/) || !MyField.value.toString().match(/^(\d{2})-?\d{7}$/)); alert('Ivalid ...

JQuery .ajax enters Success before calling page finishes

I've got the following code: <script type="text/javascript"> $(function(){ $("#AddMaps").submit(function(){ var $form = $('#AddMaps'); $.ajax({ type: 'POST', url: $form.attr( 'action' ), data: $form.serialize(), dataType: "json", ...

What is the best jquery tooltip plugin?

What is the best jquery tooltip plugin? ...

calling a jquery function from asp.net mvc action..

After posting a form to database is it possible to call a jquery from asp.net mvc..... [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create(FormCollection collection) { try { //Insert to db //Call a jquery function return RedirectToAction("Inde...

Need help to convert (& improve) on a working Maps API v2 function to Maps API v3

I have a working Map function that uses a little bit of jQuery to fetch JSON data. I have been trying for hours to update the function for use with Maps 3.X API to no avail. I'm not very well versed with Javascript and I made this function sometime last year. Basically the function requires some parameters to query a url and get JSON da...

Twitter like row hover reply,delete links in jquery....

Is there any plugin or how to display twitter like row hover reply,delete links in jquery.... Any suggestion.... EDIT: I am iterating my json data via jquery, $.each(data.Results, function() { divs += '<div class="resultsdiv"> <a href=Clients/Show/' + this.ClientId + '/>Details</div>'; ...

Applying a colspan attribute on selectors recursively using jQuery

This is my HTML page.. If you copy paste this complete HTML in a browser you would see that the second section has Elements and Duration while the third section has Elements and targeted resources, In this case i want to dynamically change the 2nd and 3rd row to expand like the first one. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Tran...

Jquery .load need page refresh but but also return false - help

Hi folks this is prob quiet simple but not sure how to do it. I am loading pages into a div a simple like this: $('.pageLink').click(function() { var pagetoload = ($(this).attr('href').substring(5)); $('#adminArea').load(pagetoload+'.php'); return false; }); That works no probs at all. Only thing is that I am using CKEditor on "seve...

Looking to replicate this idea

Just bumped in to this great implementation on click expand http://www.timstravelog.com/lifelist/ I want to implement something similar for my own lifelist. Any recommendation on how to go about it? Is this jquery? I am a noob of shorts, so please excuse my ignorance ...

Closures in JavaScript

I have a code like this where I am trying to add an event handler to some button. I would like to use a global variable & store its current value in callback closure & not its reference. var globalNum="dummy"; function A() { $("#button").click(function() { $("#button").append(globalNum); }); } globalNum="dummyAgain"; Now i...

How to enable rich:orderingList buttons

How to enable rich:orderingList buttons by default EDIT: The First, Up, Down, Last buttons are not enabled unless an item is selected within the orderingList. But I would like to preferably mimic selecting the first element in the orderingList and enable these buttons on page load. How should I do this? Table 6.222 on the following li...

How to register javascript in ASP.NET MVC action?

For example, I want to show a jQuery dialog after insert or edit a record in Action, in webform I can use the follow way to register js script to the page: page.RegisterStartupScript(key, "<script language='javascript' defer>" + script + "</script>"); but this doesn't work in MVC, so how can I do this? thanks! ...