AJAX: back to static HTML pages

February 6th, 2006

AJAX allows for a lot of geeky stuff. I won’t talk about that. What I like particularly about AJAX is that it makes it so easy to serve static pages in complex applications.

Let’s start with an example: I often do sites on which 90% of the pages are static, only a few contain functionality that requires server-interaction, like contact forms, calculators, subscriptions, etc. I always use some kind of framwork for navigation and templating. Sometimes a CMS is appropriate, sometimes I take my hand-rolled, which is XML and Smarty based.

Considering how many pages are static, it would be good to pull the static pages through wget and just display them statically. There is absolutely no need to parse XML, build navigation, and build content on each request for a page that never changes. But that disconnects the 10% of pages where content depends on user input. It is hard to build a elegant solution which knows a ‘render’ mode and a ’serve’ mode.

That’s where AJAX comes into play: if all functionality is AJAX driven, then it becomes easy to render the pages statically, as AJAX allows us to completely separate HTML generation and logic processing server-side. They happen in two different requests.

This does not work with most of the existing AJAX frameworks, as they mangle HTML rendering and AJAX processing, although there is no need at all. It might work with PEAR’s HTML_AJAX, I’ll need to investigate.

Not convinced? Rendering pages statically can be taken to exremes. For example, Saab’s configurator consists only of statically rendered HTML pages. This works, because it does not contain any dynamic elements. Now take the OPEL configurator: it cannot be statically rendered as it contains service boxed, like a finance calculator in which the user can change parameters. But with AJAX, it can still be static: all server-interaction can be made when the page is loaded and when necessary.

AJAX: for real separation of presentation and logic.

Internet Explorer cuts off the ‘W’ with 11px Arial

January 25th, 2006

I noticed several times that sometimes Internet Explorer cuts off the left leg of the W. After a little investigation, I found that this happens when a W in 11px Arial touches the left border of a box without left padding or margin. If the box is the first element in another box, and that box has padding, the error does not occur.

Read the rest of this entry »

Setting up a Strato HighEnd Server with Plesk

January 21st, 2006

The Strato HighEnd Root Servers come with Plesk 7.5 preinstalled, and everything is ready to roll. But looking at phpinfo()’s output, it was obvious that there were still things to do to get to a system on which ez publish websites would run. Here is what I did.

Read the rest of this entry »

Agile Messenger - Problem solved

January 21st, 2006

I finally received a satisfactory answer to my problems with Agile Messenger. They gave me three free months, and have talked to my provider (I don’t know whether they talked to the SMS service provider or to E-Plus) and that I won’t be charged for the SMS. Here is the entire mail:

Read the rest of this entry »

Deficiencies in Strato’s ServerAdmin 24

January 19th, 2006

For a client, we rent a Strato Server with ServerAdmin24 pre-installed. ServerAdmin 24 is a customized ViSAS version.

The web interface is supposed to give a hassle-free access to typical tasks of the server admin, clients, and domain owners. But outbound email from PHP did not work, and neither could FTP users set up through the web interface log in.

Read the rest of this entry »