Category Archives: javascript

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. Here is an example of how the validation was wired in via … Continue reading

Posted in javascript, JQuery | Tagged , , , | Leave a comment

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 query. … Continue reading

Posted in javascript, JQuery | Leave a comment

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 … Continue reading

Posted in HTML, javascript, JQuery, json | Tagged , , , , , | Leave a comment

When $.get and $.post just aren’t enough

This is a typical Jquery ajax request. This works great until you realize that it is really taking data from a form and is changing data on the site. It should be a post, but it was mistakenly made with … Continue reading

Posted in javascript, JQuery | Tagged | Leave a comment

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.

Posted in javascript, JQuery | Tagged , , | Leave a comment

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 problem I had to solve was … Continue reading

Posted in javascript, JQuery | Tagged , , , | Leave a comment

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 date was in-fact older. … Continue reading

Posted in javascript, JQuery | Tagged , , , | 1 Comment

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. Then you indicate the type of validations that should occur. There are a couple of ways to … Continue reading

Posted in javascript, JQuery | Leave a comment

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 available here. Here … Continue reading

Posted in javascript, JQuery | Leave a comment