jquery

jQuery validation plugin

I am using the following for a custom message for validation failure but I am getting the default message...What is wrong? or am I missing something? I get the default message ...but not my custom message $("#commentForm").validate({ rules: { insurance1_ucBuildingInsurance_txtOtherReasonDescription: "required...

How to prevent caching of asynchronous requests?

I'm working on a sortable table, that is refreshed asynchronously when the column headers are clicked. The parameters determining the column I'm sorting by and the direction are stored in the query string. The first time I click the header, the table is sorted by that column ascending, the second time it's sorted descending. But the thir...

jQuery/Ajax - Live update

I have a cron job running searching Twitter every 5 minutes, each 5 minutes the results of the search are written to a database. Im surfacing the twitter search results in a simple HTML list. What I would like to do is load any new search results at the top of this list every 5 minutes. Can any suggest how I might go about doing this...

'jQuery' is undefined Jquery jquery-ui-dialog

I am using jQuery.ui.dialog.js to show the modal pop up.. But this Jquery.ui.dialog.js is throwing a jaascript error 'jQuery' is undefined. Please help . How can i resolve this. I am using this 2 .css and .js 1.jquery.ui.dialog.css & 1.jquery.ui.dialog.js 2.jquery-ui-1.8.2.custom.css & query-ui-1.8.2.custom.js Please advice....... ...

How do I get images from outside the DOM using jQuery?

I'm using jQuery to control an image gallery that will display any of several different sets of photos. On an earlier version of the page, a single hidden div held all the images, which would load in the background, and a div called #content into which I would clone() the img:first-child, and then eq(1), eq(2), etc. I could also count t...

jQuery Setting Cookie Domain

I have the following code: set_cookie('visible','no',2020,1,1,'/','.domain.net'); Rather than specifiying the domain I need the domain to match which ever domain the script is being run under. Im trying to use: (document.domain) How can I combine the two bits of script so that '.domain.net' becomes what ever domain is being accessed...

Jquery .next() help

I use the following code to hide and show a box on a bunch of search results. Each result has its own toggle and box to show and hide. The problem I have is that clicking any one of the toggles will show and hide ALL of the boxes on the page and NOT just the box for the one result. How can I do this? Thanks jQuery(document).ready(funct...

How can I dynamically update the selected option in a hidden select element based on a radio button state using jQuery?

I have n number of select elements in an html page that are used to allow the user to select categories. All of the selected values need to get posted to the server with name attr values of category[] (this a restriction of the CMS I'm using), but as there are in fact multiple groups of categories from which the user must choose one ea...

jQuery depends keywork in validation

$("#commentForm").validate({ rules: { insurance1$ucBuildingInsurance$txtOtherReasonDescription: { depends: function(element) { return $("#bc [id$=_dpOwnInsurance]").value == "1"; } //insurance1$ucBuildingInsura...

Localising jQuery select/deselect all

Hello. I'm using the following snippet to create a select/deselect all checkboxes: http://www.wiseguysonly.com/2010/01/15/select-and-unselect-all-checkboxes-with-jquery/ This is a great help, but just wondering how you might go about localising the effected checkboxes to only those that are siblings (i.e. in the same group of li items...

Videolightbox jQuery only can be fired once on page.

Hi there, at the site I'm working on euroworker.no, we have a videolightbox (click "se video") that shows a youtube video. Thing is, it can only be called once, in any browser. After this is called also, Firebug racks up a whole lot of errors! I've looked through and can't seem to identify why it will only fire once. Here's the Vid...

Jquery function problem

Hello. I have this javascript code var nieuwsbrief_formulier_open = false; $("#footer a.twitter").hover( function() { if(nieuwsbrief_formulier_open == false) { nieuwsbrief_formulier_open = true; $(this).parent('li').addClass('actief'); $("#twitter").fadeIn(600); } else { ...

JQuery: Calling a webservice

I am developing a SilverLight application wherein on browser close event, i need to do a web service call. I have a web service method which accepts one parameter. When the user clicks on browser close event. I'll be calling the doRelease() function. the releaseuser method requires a parameter usertoken. I got an error when I'm calling ...

Can you capture the event when clicking on the month name in jquery ui datepicker ?

I am using the jquery ui datepicker inline mode view I want to be able to capture when a user clicks on the month name at the top (as i then want to zoom into a more detailed month view. is this possible to capture this click event? ...

JQuery - make an element go "fuzzy"

Hey, I have recently been developing a website for a company, with a full administration front end / CMS. In the Admin frontend, which unfortunately I cannot show you for security reasons, there is a Range list, Collection list and Design list. I would like to make the links for these work with JQuery, so clicking "Ranges" brings the Ra...

jQuery to validate HTML in a TextArea

I have a TextArea which allows the user to enter HTML, what I am now trying to do is to validate the users HTML to ensure it is XHTML. Any ideas? ...

How can I replace a function name using JavaScript and have it be recognized as a function?

I am trying to replace the JavaScript onclick event handler in ASP.NET that is added to a button control when using validation controls. This is what is output into the HTML from ASP.NET in this scenario: <input type="image" name="ibSubmit1" id="ibSubmit1" src="button-green-submit.gif" onclick="showProgress1();WebForm_DoPostBackWithOpti...

How to access the element using "this"

Hi friends,I need to access a SPAN tag with in every DIV tag so i used this following code $("DIV").click(function(){ $(this + "SPAN").show(); }); Is the above code is correct? Its not working for me! Its showing nothing too.. Please help me Thanks,Praveen J ...

Getting Dialog Data on Ajax Load

Hey All Not quite sure how to do the following and hope you can advise. I have a dialog which opens up a page through ajax. I would like to somehow once this dialog has finished loading trigger an event which then will perform some other action. Can anyone advise on how to do such a task. Hope you can help. Lee ...

IE8 Standards mode JQuery illogic

I have a JQuery (using JQuery 1.4.2) problem that exhibits only in IE8 in standards mode, on one specific DOM element but not on other nearly identical dom ellements. The best example of why it makes no sense is below: $('span.error:visible')[0].style.display The above piece of code returns "none" which unless i am having some sort o...