Software Engineer, Music Lover, Geek.

Posts in category JavaScript

Enforce TextArea String Length Using ...

Enforce TextArea String Length Using JavaScript

I recently had a need to limit the number of characters a user was able to enter into a textarea field on a web form. Unfortunately these elements don’t have a maxlength property so this has to be enforced with JavaScript. The function below “monitors” input into the textarea (#description) using a keyUp event handler. […]

Easy Page Scraping

Easy Page Scraping

I recently had a need to pull data from a different part of our site and display it in a floating div (triggered by a mouseover) for quick and easy access. Thanks to jQuery this process is incredibly simple and by using the framework in this post you will be off and running in no […]

How to use cookies w/ JavaScript

How to use cookies w/ JavaScript

I recently had the need to keep some client-side settings persistent so I whipped up a very basic set of functions to both set and read cookies. Cookies are very handy when you aren’t working with a single-sign-on environment (where user preferences are very easy to store in a database) but still need to keep […]

Using PHP Data in JavaScript Function...

Using PHP Data in JavaScript Functions

I recently built an autocomplete function (using JavaScript) for a publications tracking application which allows users to enter part/all of a tag into an input field and it will automatically suggest completions which can be done as many times as the user wants if they want multiple tags [think Flickr] assigned to a given record. […]

Categories