Quantcast
Channel: JQuery – Java Ninja Chronicles By Norris Shelton, Jr
Browsing all 15 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

jQuery 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 Article

Image may be NSFW.
Clik here to view.

jQuery 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

Image may be NSFW.
Clik here to view.

Custom 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 Article

Image may be NSFW.
Clik here to view.

Change 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 Article


Image may be NSFW.
Clik here to view.

Fading 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 Article

Image may be NSFW.
Clik here to view.

IE8 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 Article

Image may be NSFW.
Clik here to view.

When $.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 Article


Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

Regex 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 Article

Image may be NSFW.
Clik here to view.

Jquery 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 Article

Jquery 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 Article

Jquery 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 Article


Image may be NSFW.
Clik here to view.

jQuery 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 Article

jQuery 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

Browsing all 15 articles
Browse latest View live




Latest Images