Archive for February, 2012

Wednesday, February 29th, 2012

This week’s Updates

Not so many updates to old pages this week. I have reworked the Get A Quote page to clean up some formatting errors that had crept in during the various work on restructuring the site as well as making it harder for spammers to use the form to bombard me with meaningless spam. I have [...]

Tuesday, February 28th, 2012

Homework Help

There is a right way and a wrong way to ask for help with your programming homework. The right way means that you still end up learning what the homework is trying to teach. The wrong way means you are trying to get someone else to do it for you so you don’t have to [...]

Monday, February 27th, 2012

Why Can’t JavaScript Do This?

There are limitations applied to JavaScript running in a web browser that other languages (and even JavaScript) running elsewhere do not apply. There are reasons for these restrictions and also reasons why ways to work around some of them are required. Why Can’t JavaScript Do This?

Sunday, February 26th, 2012

Fixing the IE Double Margin Bug

One rather annoying aspect of Internet Explorer is the way that it mishandles a number of stylesheet commands. Most of these are corrected by placing a valid doctype statement as the first entry in your page source as IE also misuses that statement to determine whether to use “satandards” mode or “quirks” mode in interpreting [...]

Saturday, February 25th, 2012

Updated Pages

Not so many pages updated this week but then it has been a long time since I added so many new pages all in the one week. Obtaining a Visitor’s IP Address Lock IE Homepage

Friday, February 24th, 2012

Redo From Start - Calendar Script

Lots of new JavaScript pages this week. This one looks at a script I first wrote over ten years ago and have patched several times in the past to add extra functionality and to apply a more modern approach. Even with the changes the script still appears extremely dated (pun intended) and a complete rewrite [...]

Thursday, February 23rd, 2012

JavaScript Clashes

Here we look at the reasons why adding two scripts to the same page may not work where adding either one by itself does. The answer is of course that one or both scripts are not written properly to use an unobtrusive approach. That of course is reasonably easily fixed if you make the appropriate [...]

Wednesday, February 22nd, 2012

Dates and Databases

Just to get away from JavaScript briefly I wrote this article about how easy it is to convert dates between the internal formats used by PHP and SQL. Two simple PHP commands is all you need. Dates and Databases

Tuesday, February 21st, 2012

Ways to Define a Function

JavaScript provides three ways to define functions. Here we look at the disadvantages that two of those ways have and the sorts of things that can only be done one way. Ways to Define a Function

Monday, February 20th, 2012

Rotating Text andImages

Continuing on with updating scripts I wrote previously so as to use more modern less obtrusive JavaScript. This one was first written in 2009 and so didn’t need much work but I did take the opportunity both to make it as unobtrusive as possible (the only external references are to the ids in the page [...]

Sunday, February 19th, 2012

Support for Older Browsers

Not all browsers support using tables for your page layout. While layout tables have been a part of the CSS standard for quite some time, Internet Explorer only introduced support for layout tables in version 8. You have a number of options on how to deal with how your page will look for those visitors [...]

Saturday, February 18th, 2012

Table Properties

You can further refine your CSS tables using properties that are specific to tables. Table Properties