I came across something today that I’ve never encountered before. Whilst updating one of our company sites, I added some new product shots given to us by one of our suppliers on a cd.

After building the site and regularly checking the result in Firefox/Opera, I decided to have a final check with IE 6-8. To my surprise, some of the product images were not displaying at all!

If you search the web, this is a common problem (usually incorrect file paths, uppercase/lowercase issues on a linux server etc) but I’d already checked the usual supects. I was completely baffled!

Continue reading »

 

In the previous post,’Create Dynamic Date Selects‘, we ended up with select lists for the Month, Day and Year. In this post, we’ll make these more intuitive by only displaying the correct number of days for a given month/year combination; Continue reading »

 

If you ever require users to submit a date using an online form, perhaps a birthday or an expiry date, a good way to eliminate spelling mistakes and format the submitted date how you want is to provide drop down ‘select’ elements. Using PHP, we can easily create dynamic select elements for the day, month and year.

Continue reading »

 

Ok, we’ve all got the standard copyright notice at the bottom of our web pages, something like © 2009.

© 2009

But let’s be honest, nothing looks worse than a copyright statement when the year is out of date! It gives the impression that you don’t care.

You can easily prevent this by using the php date() function:

&copy; <?php echo date('Y'); ?>

Really simple and one less thing to think about. Leave and forget :)

 

Perhaps you have a textarea pre-filled with instructions, for example, ‘Use this area to write a simple bio about yourself…’. When the user wants to fill in the textarea, he has to delete your instructions first, pretty tedious to say the least.

Continue reading »

 

The complete script can be downloaded here AjaxRequest (30.91 KB) Create your first AJAX Request :)

In the last part of this series, we’ll create ‘showdetails.js’. This will turn our web page into a AJAX-powered web page!

In the first part we created the XMLHttpRequest Object. Now we need to create an instance of it.

Continue reading »

© 2012 ElanManSuffusion theme by Sayontan Sinha

Page optimized by WP Minify WordPress Plugin