2nd thought...
What's probably wanting something that can be put out by a server script as it's processing and not necessarily need to be altered by a client-side script, maybe?
Just postulating here, but you could probably send out a main HTML page that says "Thanks and we're processing it now," or whatever. Then in a linked CSS file, just redefine the element. Uh, assuming that the status bar is id="status":
Code:
#status { width: 0%; }
/*do some processing*/
#status { width: 5%; }
/*do some processing*/
#status { width: 10%; }
/*do some processing*/
#status { width: 15%; }
/*etc.*/
You might even update a written number in browsers that support generated content with something like:
Code:
#status:before { display: block; text-align: center; content: "0% Complete"; }
/*do some processing*/
#status:before { content: "5% Complete"; }
/*do some processing*/
#status:before { content: "10% Complete"; }
/*etc.*/
Don't know if this it's really practical. Keep in mind also that CSS files can be cached, so if this is something a person might do more than once, they might think the processing's done when it isn't. If that's a big deal, you might consider using a unique identifier for each process, maybe? :-)
~~Ian
Bookmarks