Opening a JQuery dialog via a link that has a HREF
$('.detail').click( function() { $dialog.dialog({title:$(this).attr('title')}); $dialog.html('<div class="loading-center" />'); $dialog.dialog('open'); $.get( $(this).attr('href'),...
View ArticlejQuery Datepicker
There are two date pickers. jQuery has one, but it is simplified. The one that I like to use is by Keith Wood. His datepicker plugin formed the basis of the jQuery datepicker plugin. Keith’s plugin is...
View ArticlejQuery Validation
jQuery makes it pretty easy to create form validation. All it takes it first setting the form up to validate when it submits. <script type="text/javascript"> $(document).ready(function() {...
View ArticleCustom jQuery Validation
My previous blog entry showed how to quickly add form validation. One that was not there was the ability to compare two fields that contain dates and validate that the field that should hold the older...
View ArticleChange where jQuery Validation messages are displayed
Yeah. jQuery form validation is proving to be very nice. If you have been following this blog, you have seen how to set-up the standard validations and even create your own custom validation. One...
View ArticleFading text in and out
I was working on a problem where I needed to change the text in a menu to be the name of the department, then the phone number to the department. Both of which had to be a link to the department’s...
View ArticleIE8 issues with JQuery Dialog causes box to have wrong height and scrollbars
This was happening only on IE8 (native and CoRD). It was working correctly on Chrome and Firefox. The solution is to call .height(‘auto’) after the dialog is created. $(document).ready(function() {...
View ArticleWhen $.get and $.post just aren’t enough
This is a typical Jquery ajax request. $.get(this.action, $(this).serialize(), function (data) { $('#expungeResult').html(data); }) This works great until you realize that it is really taking data from...
View ArticleHow can you tell if an element exists on a page
I had a form that I was generating with Ajax. The user selected a state, then I retrieved the licenses for the agency that they selected from the state. I also defaulted to the first agency and ran a...
View ArticleRegex validation with Jquery Validation Plugin
We needed several regex validations. I coded various custom validators with the regex included, so the regex could be re-used instead of typing the regex again and again. /** * Custom validator for...
View ArticleJquery form validation
It has been a while since I wrote a form. I kept posting data even though the validation fired and was not valid. I forgot that you have to check for a valid form. I also learned that you can also add...
View ArticleJquery validation of passwords with multiple validations
The previous article regex validation with jquery validation plugin laid the foundation for creating custom validation methods. One thing I ran into was the case where multiple validations were created...
View ArticleJquery validation message placement by field
In a previous post, I showed how to declare an error label container for jquery validation messages. http://javaninja.net/2010/12/change-where-jquery-validation-messages-are-displayed/. Today, we had a...
View ArticlejQuery Datepicker
There are two date pickers. jQuery has one, but it is simplified. The one that I like to use is by Keith Wood. His datepicker plugin formed the basis of the jQuery datepicker plugin. Keith’s plugin is...
View ArticlejQuery Validation
jQuery makes it pretty easy to create form validation. All it takes it first setting the form up to validate when it submits. <script type="text/javascript"> $(document).ready(function() {...
View Article
More Pages to Explore .....