Archive for the ‘JavaScript’ Category

Simple Set and Get Cookie Scripts

Thursday, November 12th, 2009 by Stan Slaughter

Since cookies are a common thing to use on the web I thought I would post the function which I use to set and read cookies

Get Submitted Form Values

Wednesday, February 11th, 2009 by Stan Slaughter

Getting the values from a form which has been submitted is easy if you are using a server side language such as PHP, JSP, or ASP. But – sometimes you can’t use a server side language (restrictions of your ISP, you need to create a CD based demo or ...

Easy to use Tab Navigation

Tuesday, February 10th, 2009 by Stan Slaughter

Tab Navigation can give a very professional look to your web page. Example The problem with most of the Tab Navigation solutions available is how messy it tends to make your HTML code. This has lead many people to not even attempt to use them. Scared off by ...

Broken Image Icon Replacement

Tuesday, February 3rd, 2009 by Stan Slaughter

Ever create a web page to hold images that someone else provides ? What happens when they remove the image, yet not the code from the page ? Well, you get that big red "X" missing image icon in place of the nice image that used to be there. ...

Floating Table Titles

Tuesday, July 29th, 2008 by Stan Slaughter

Table Titles Float to stay in view Tested to work in Firefox 3, Internet Explorer 7, Chrome, and Safari 3.1 You will never loose sight of a tables column titles as long as the table is visible on the screen ! Click to see Example Invisibly in the background this script will take your ...

Fixed Table Head

Thursday, July 3rd, 2008 by Stan Slaughter

Scrollable Table Body with a Fixed Table Heading Tested to work in Firefox 3 and Internet Explorer 7. Safari users may want to check out Floating Table Titles There is no HTML or CSS standard tag or property that lets you freeze the title row of a table in place while ...

Trim Spaces

Thursday, November 8th, 2007 by Stan Slaughter

Sometimes you'll have unnecessary spaces at the beginning or end of a character string that you wish to remove. For some unknown reason a trim space method or function was not included as part of the JavaScript language, even though this comes standard in most other programming languages. Well, here ...

JavaScript Frameworks – Time to take them seriously?

Tuesday, November 6th, 2007 by Stan Slaughter

Have JavaScript Frameworks now hit a level of maturity that a business can feel confident that if they use them that code will not be outdated and impossible to maintain in less than a year? JavaScript Frameworks are cross-browser user interface JavaScript libraries designed to make it easier to develop complex ...

CSS Text Drop Shadow

Sunday, October 28th, 2007 by Stan Slaughter

CSS Text Drop Shadow How to add cross browser drop shadow to text without the use of images using CSS and non-obtrusive JavaScript. I've wanted to use drop shadows on text for quite awhile. Unfortunately there is just no easy way to do this on a web page without the use ...

Validate Phone Number

Thursday, October 18th, 2007 by Stan Slaughter

Simple Phone number validation function that returns "true" if the phone number is in the format 555-555-5555 Useful when validating input from a form prior to writing it to a database. (Note the use of regular expressions used to validate the formatting) [code="js"]/** * This function validates that the provided string is a ...