Hi All,

I am adding table rows to a table via an AJAX call using $.each().
While the table rows are appended to the table, I am using the BlockUI
plugin to display a message saying 'Application is loading'. BlockUI
is unblocked when the table displays all the rows. Great - all is
working as expected.

What I really want is for the user to see how many rows have been
added out of the total number of rows in the BlockUI message. This
would look like:

Application has loaded 1 of 400 rows
Application has loaded 2 of 400 rows
.......
Application has loaded n of 400 rows

It might even be better as increments of ten so it is not constantly
updating.

Application has loaded 10 of 400 rows
Application has loaded 20 of 400 rows
.......
Application has loaded n of 400 rows

Right now I have a variable with the total number of rows and also a
variable that get incremented with the row number, but I can't see how
to bind the BlockUI message with these variables. The BlockUI API
documentation says that the message can be a jQuery object, but I
cannot see how to make the bind().

Any ideas? Thanks in advance.

Reply via email to