I'm in a good mood... here's what it might look like in jquery.
Note: untested.

Tapestry.onDOMLoaded(function() {
    function addAjaxOverlay(event, element) {
        var mgr = Tapestry.findZoneManager(element);
        var zone = mgr && mgr.element;
        if (!zone) {
            return;
        }
        var $zone = $(zone);
        $zone.prepend("<div class='zone-ajax-overlay'/>");
        var overlay = $zone.children(":first");
        overlay.width($zone.width()).height($zone.height());
    }
 
    $(document.body).bind(Tapestry.FORM_PROCESS_SUBMIT_EVENT,
addAjaxOverlay);
    $(document.body).bind(Tapestry.TRIGGER_ZONE_UPDATE_EVENT,
addAjaxOverlay);
}); 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-LoadingBar-tp5718867p5718920.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to