Categories
Web Design

The Big Book of CSS Tabs and Navigation

Well OK it’s not a book but have a look at Vitaly Friedman’s CSS Showcase for a whole lot of CSS navigation examples and how to do it right.

Personally I’m a fan of the the usability compliant Mozilla entry and Veerle’s for sheer beauty.

veerle.duoh.com

Categories
Code

Want to mix PHP with AJAX?

AJAX is of course the current web development buzz-word and has been for the last few months. Really it’s some fancy Javascript that runs when actions happen (like moving out of a form field) and talks back to the server end of things.

In it’s basic form, your code then runs on the server and throws some XML (the X in AJAX) data back to the client-side to act on. But where can I use all my PHP code you ask? Well that’s where xajax comes into play.

xajax is one of many libraries/frameworks that has sprung up in the last 12 months. For PHP it’s one of the best in my limited experience and certainly one of the most straight forward to use.

What xajax does is wrap calls back to your PHP functions in JavaScript, hence taking most of that translation out of the way. You include the xajax libraries, declare your PHP functions you want to use on that page and then link them to the actions you want to make stuff happen.

In more detail,

The xajax PHP object generates JavaScript wrapper functions for the PHP functions you want to be able to call asynchronously from your application. When called, these wrapper functions use JavaScript’s XMLHttpRequest object to asynchronously communicate with the xajax object on the server which calls the corresponding PHP functions. Upon completion, an xajax XML response is returned from the PHP functions, which xajax passes back to the application. The XML response contains instructions and data that are parsed by xajax’s JavaScript message pump and used to update the content of your application.

Categories
Code

Using UTF8 in PHP

Harry Fuecks from SitePoint has put together what looks to be a very handy library to allow PHP manipulation of UTF8 strings.

Historically whenever PHP has been given the task of changing UTF8 encoded strings (ie. form entries that your users input) it's not given out any nice in return. Full support is due in PHP6 but that is still a wee way off (and I bet there are a few of you still using PHP4).

So for the PHP coder who has been missing out until now got and grab Harry's new library.

Categories
Code

Subversion via Apache on Ubuntu

After using Subversion and different Linux servers (now Ubuntu) for quite a while this is the only How-To that I’ve found that is easy to follow and works straight away.
David Winter

Now I can access my code repository from work and come home to work from the same system here.

Update: Except I now find that our corporate firewall block the Report requests. Lucky we have an open line in our office to get around that. 😉

Categories
Code

Move to the Light

Very cool work with photos and then extended for other objects outside the norm, like div’s. And there’s even a WP plugin.

Lightbox JS
The WordPress version

Categories
Code

Being a Tidy Kiwi

Harry Fuecks blogs about cleaning up form input which is something every web developer needs to watch.

One of the comments points to PHP Input Filter which looks like it does things the simple way, i.e. I may be able to follow it.

Categories
Uncategorized

Sexy Web Stats

Mint statisticsHave you ever seen your website usage stats look so pretty?

Mint provides a fresh look at your site. It is concise, flexible and timely. And to sweeten the deal, this delicious little bundle of PHP, MySQL, and JavaScript joy is referrer-spam-proof.

Categories
Uncategorized

Bug Stalking

Informative article by Joel Spolsky on the proposed life of software bugs. Explains how their product FogBUGZ uses this lifecycle to manage their bugs.

Painless Bug Tracking

Categories
Blogging

Extending Themes

It seems that a lot of newer WordPress themes are now focussing on more than just looks and layout and completely changing the feel of the product. No longer do I browse through the WP Themes and think they all look the same. Works like Kiwi and Hemingway will make blog readers work to find what powers the site (or look to the footer, if it’s still there).

Whatever is around the corner for WP 2.5 and even 3.0 should be amazing.