Web 3.0

Web 3.0 will be the aggregation of people’s presence on the web. It’s already happening with things like Google gadgets (maybe I’m behind the times). Imagine you participate in a social network or enjoy visiting a particular forum or blog. Instead of a simple RSS feed, you’ll be able to construct a page with those elements of those sites visible and functional. Sort of a portal into the parts of the web that are important to you.

AJAX with care

:no:

AJAX/JSON is an extremely cool technology - using javascript to request content from servers for display. There is absolutely know doubt in my mind that it will be an important part of rich user experiences in the future of the web.

But - it shouldn’t be used everywhere. The complexity to really make it fly is expensive. If you have a simple page, or a low traffic page, or a basic application, attempting to add the layer of javascript necessary to manage the client-server communication is probably not worth it.

The Internet Explained

Tubes

Developing PHP5 code on a PHP4 server, that also has PHP5

.htaccess to run PHP5 on a server that defaults .php to PHP4, when your ultimate target is a PHP5 server.

.htaccess file


RewriteEngine   On
RewriteRule   ^index.php5$      - [L]
RewriteRule   ^exec.php$        - [L]
RewriteRule   ^(.*)\.php5?$     index.php5?page=$1
DirectoryIndex  index.php5

The advantage of this architecture is that since all the pages are delivered through index.php5, they are processed as PHP5, although they are named as .php.

Also - if you have a PHP5 application, you MAY be able to use the same approach, if you put PHP5 and PHP4 on the same server.

dojo validation

This is a dojo validation loop. Send it an array of input ids (with dojoTypes), and it will ensure they’re valid.


function checkValid(aValid)
{
        var i,e;
        for (i=0;i<aValid.length;i++)
        {
                e=dojo.byId(aValid[i]);
                if (!e.readOnly)
                {
                        e=dijit.byId(aValid[i]);
                        if (typeof e.isValid != 'undefined')
                                if (!e.isValid())
                                {
                                        alert(e.invalidMessage);
                                        e.focus();
                                        return false;
                                }
                }
        }
        return true;
}
</script>

PS - Visit http://dojotoolkit.org with FireFox, not IE