i must be missing something simple here, or not seeing something in
the api.

in my main_application.js - i call my "sync" function, then a
"display" function, and nothing is displayed.
but if, in between the "sync" and "display" functions, i show the user
another div in my main html, which makes the user click on button that
says "sync complete - view data" - it works.  so i must be trying to
dispaly the data before it's there.  of course my "sync complete"
button just gives the sync worker time to finish, but i do not see how
to check if it is really finished.

so - how do i really check if it's done, and not display the data
until the worker is finished?
and is there a sample out there of how to display an hourglass or
something, while the sync finishes?

here's my setup...
my main application.js does not have a workerpool.
when user clicks "sync" on main.html - a function in
main_application.js calls a function in my database.js (which creates
a worker and does the syncing).  next the main_application.js to call
another function in itself (passing the resultset from the sync
function) to update the dom and display the data.  my sync function in
database.js just returns a resultset.

thanks in advance!

Reply via email to