PDA

Click to See Complete Forum and Search --> : Status Bar


parkes
May 17th, 2001, 05:48 AM
Does anyone know how to set the status bar text using ASP. Want I want is while the page is creating its output table from the information in a database, I want the Status bar to read something like

Processing Record: 1, 2, 3, etc

JoshT
May 17th, 2001, 06:01 AM
I believe it's window.status = "Whatever" in client-side javascript.

parkes
May 17th, 2001, 06:03 AM
Right, I know the code to change the window status, but how do I do it through ASP code.

I've tried response.write, but this doesn't work. Or in other words how do you call Javascript through ASP

parkes
May 17th, 2001, 06:50 AM
Sort it now and if anyone was interested this is hows its done, dead simple really:D

Response.write ("<SCRIPT LANGUAGE=""JavaScript"" TYPE=""text/javascript"">window.status='Processing Record: " & iCnt & "'</SCRIPT>")

When the loop has finished do

Response.write ("<SCRIPT LANGUAGE=""JavaScript"" TYPE=""text/javascript"">window.status=''</SCRIPT>")