What is actually happening on this page...
Welcome to DotCom Interactive Click here to enter the main site
Hi there.

What you see here is the result of about 30 lines of code and a bunch of css. And, of course, the MooTools framework with Moo.FX.

It is intended a small demo and was written in about an hour (with making it look nice and so forth). In this version, we show off:
PHP response handler for the AJAX call source code:

<?PHP

if ($_GET["a"] == "sortorder") {
    
?>
    if ($("message"))
        $("message").remove();
    var _layer = new Element("div");
        _layer.addClass("header")
        .setProperty("id", "message")
        .injectTop($("ml"))
        .setHTML("this is via ajax from PHP<br />"
        +"<br />New sort order: <?=mysql_escape_string($_GET["ids"])?>")
        .setStyle("width", "440px")
        .addEvent("click", function() { this.remove() });
    <?

    
// write new order to DB or do something useful
    
die;
}

?>
a DotCom interactive mootools demo 2007