My previous solution is for the initial rendering.
I also have this solved.
My AJAX routine creates an indicator very similar to GMail.
var pending = 0;
function askData(url, callback) {
if (pending++ == 0) {
var el = document.createElement('div');
el.id = 'indicador';
el.innerHTML = 'Loading...';
document.body.appendChild(el);
}
askData2(url, function() {
callback();
if (--yo._numCargas == 0) {
var el = document.getElementById('indicador');
if (el) {
el.parentNode.removeChild(el);
}
}
});
}
I have this CSS for placing the indicator on the upper right corner:
#indicador {
font: 12px Verdana;
padding: 2px;
position: absolute;
right: 0;
top: 0;
background-color:#360;
color:#FFF;
}
Hope this helps.
Jim Hunter-2 wrote:
>
> Unfortunately I make my calls from all over the place, not from one
> function
> so I don't have a central place to work from like you are doing. Each part
> of my application updates itself when needed, all asynchronously. This is
> why I was hoping that there was a global event that would get fired once
> the
> system was done rendering.
>
> Thanks though,
> Jim
>
> On 10/5/06, dperez <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi Jim,
>>
>> What I do is to first create a message (a qx.ui.basic.Label), saying
>> "loading data....", then I do this code:
>>
>> window.setTimeout(function() {
>> // render all widgets and load any required AJAX data
>> ......
>> qx.ui.core.Widget.flushGlobalQueues();
>> }, 1);
>>
>> This code is simple and works.
>>
>>
>> Jim Hunter-2 wrote:
>> >
>> > Is there a global event that might get fired after a screen has been
>> > rendered? What I am looking to do is to show a status message telling
>> the
>> > user that 'things' are happening, then once qooxdoo has finished
>> updating
>> > the screen, make my status message go away. So I am looking for some
>> > global
>> > event that I can hook into that tells me rendering is complete for the
>> > entire page. Is there such an event? It would be similar to the
>> > afterDisappear event when closing a window, but this would be more like
>> > afterCompleteRender that gets triggered when all updates are done and
>> the
>> > screen is repainted.
>> >
>> > Thanks,
>> > Jim
>> >
>> >
>> -------------------------------------------------------------------------
>> > Take Surveys. Earn Cash. Influence the Future of IT
>> > Join SourceForge.net's Techsay panel and you'll get the chance to share
>> > your
>> > opinions on IT & business topics through brief surveys -- and earn cash
>> >
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> > _______________________________________________
>> > qooxdoo-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Global-events-tf2391788.html#a6674166
>> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys -- and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/Global-events-tf2391788.html#a6674411
Sent from the qooxdoo-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel