There are numerous animated Gifs out on the web that can be displayed while
the browser is "doing something". I pull a large record set (about 3000
rows) via an Ajax call and use it to populate a qx.ui.table.Table. I've
subclassed the table include an qx.ui.basic.Atom that includes the animated
Gif. The plan here is to indicate to the user to please wait while the Ajax
call is completing and my code populates the Table widget.
The Ajax call runs well and during this short period of time the little
animated Gif spins quite nicely in its Atom. Once the "completed" event is
heard for the Ajax call and the loop to extract the XML data and populate
the table begins to run though (the longest part of the process) the
animated Gif freezes.
Here is the chunk of code that is running when the gif freezes:
qx.Proto._refreshTable = function (e) {
var xml = e.getData().getContent();
var rowData=[];
//fields
var pk = xml.selectNodes("//pk");
var str_file_root = xml.selectNodes("//str_file_root");
for (i=0; i < pk.length; i++) {
rowData.push([pk[i].text, str_file_root[i].text);
}
this._tableModel.setData(rowData);
}
Is there some function I can call while I fill the table that will allow the
animated Gif to continue to be displayed? Currently it just hangs on the
animation while the loop processes the data into the Table widget. I've
tried putting a FlushGlobalQueue's in the loop that populates the data but
no luck. The animation still pauses during this part of the process.
Any ideas on how to give the gif some cycles during this process so that the
animation is displayed? Or is this a threading issue with FireFox? Seems
to have the same problem on IE6 also. Any help would be appreciated.
Mike
--
View this message in context:
http://www.nabble.com/Ajax-Status-Indicator-tf2301776.html#a6397791
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