Archive: November 2009

Displaying a shortened Block of Text with PHP

Monday 16th November 2009, 09:26 PM
From time to time, I find myself wanting to display a certain amount of text, like and intro or snippet, from a much larger one. This could be a description or intro for an article, or news item for use on a landing page or latest news widget. For dynamic websites, where content is pulled in automatically from a database, this could cause a bit of problem.
Read more...

Opening a new window with Unobtrusive Javascript

Sunday 8th November 2009, 04:07 PM
According to the W3C Specifications, XHTML should only deal with information displayed in a browser window. Basically, opening a new window is something that does not relate to the current window, and therefore XHTML should not perform this action.
Read more...