« Blog Home

§ Simple AJAX request

Almost all of my AJAXing is to simply grab the output of a source and stuff it in in a div.  In previous posts you can see what I've been using for a long time, but I wanted to make a function I wouldn't have to edit every time I used it in a project.

Read More ...

§ Validating email addresses (it's impossible) (Rant Alert!)

Search google for "validate email address" and you'll get about 303,000 results.  I bet all of them are wrong...

Short version:

Why bother?  I'm probably going to enter "example@example.com" anyway.

Read More ...

§ Adding & removing element classnames

Ok, these are just dumb.  See Simpler adding & removing element classnames instead.

 

A couple of ways to change classnames of elements.

Read More ...

§ Table row hover highlight

A bit of javascript to highlight the table row under the cursor.

Read More ...

§ Handling url get string with javascript

Using javascript to handle url get string variables

Read More ...

§ Better tabbed interface

Tabbed interface using get string to set active tab.

Read More ...

§ Auto replace textareas with fckeditor

Simple function to replace any textarea with fckeditor.

Read More ...

§ Simpler validate form fields are filled in (no additional class names)

Makes sure something is entered in form fields.  If your form fields have classnames, don't use this one!

Read More ...

§ Validate form fields are filled in (additional class names)

Makes sure something is entered in form fields.  Uses regex to replace classnames so other classnames aren't affected.

Read More ...

§ Javascript function to add css

This javascript is a way to add an extra style node (css) into a page.

Read More ...

More entries...

« Blog Home


It left my mouth with the force of honesty and vomit, but with the same despair as well.
Variable Star, Spider Robinson (& Robert Heinlein)