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 »
Ok, we’ve all got the standard copyright notice at the bottom of our web pages, something like © 2009.
© 2009But 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:
© <?php echo date('Y'); ?>
Really simple and one less thing to think about. Leave and forget ![]()
An example of what you’re creating can be seen here.
The complete script can be downloaded here AjaxRequest (30.91 KB) Create your first AJAX Request ![]()
In the first part, we created a function, getRequestObj(), that we can now use to initiate a new XMLHttpRequest object. Continue reading »
If you have required fields in a form, a nice visual clue for the user is to have a message ‘pop up’ if the field hasn’t been filled in. A simple example of what I mean can be seen here.
Although best practice dictates that you shouldn’t force a new browser window on a user, sometimes (perhaps for a PDF file) you really want to. If you’re using a transitional doctype, this isn’t a problem. You’d simply use the ‘target’ attribute and set it to ‘_blank’.
What You Said