"In Between" Page Not Loading..

R

Richard Morey

Hi,

I am trying to build an "in between" page to show an animated "Working.."
gif while a long process runs on the server via ASP.

The problem is that the table/gif is not displaying when I load the
inbetween page..

This is my code snippet:

Updating Room Type
#<%=setRoomTypes.Fields.Item("ROOMTYPE").Value%><br><br>
<img src="images/imgPleaseWaitAni.gif"><br>
<script>

window.open("pageUpdateMinimumStays.asp?SITEID=<%=Request.QueryString("SITEI
D").Item%>&ROOMTYPE=<%=setRoomTypes.Fields.Item("ROOMTYPE").Value%>&index=<%
=(MM_offset+1)%>","_self");
</script>

(I have code that opens the db above this code). Should I open the DB, pull
out the field values I need, and close the db so I have no ASP in the body
of the page?

Its very frustrating because now I just get a blank page and I'm sure this
will throw off the users..

Thanks,

Rich
 
R

Ray at

By default, IIS 5 buffers the response until all ASP'ing has finished. You
can flush your response using response.flush, and your image ~may~ appear.
See the thread from earlier today with "Response.flush()" as the subject
line though.

Ray at work
 
R

Roland Hall

:
: I am trying to build an "in between" page to show an animated "Working.."
: gif while a long process runs on the server via ASP.
:
: The problem is that the table/gif is not displaying when I load the
: inbetween page..
:
: This is my code snippet:
:
: Updating Room Type
: #<%=setRoomTypes.Fields.Item("ROOMTYPE").Value%><br><br>
: <img src="images/imgPleaseWaitAni.gif"><br>
: <script>
:
:
window.open("pageUpdateMinimumStays.asp?SITEID=<%=Request.QueryString("SITEI
:
D").Item%>&ROOMTYPE=<%=setRoomTypes.Fields.Item("ROOMTYPE").Value%>&index=<%
: =(MM_offset+1)%>","_self");
: </script>
:
: (I have code that opens the db above this code). Should I open the DB,
pull
: out the field values I need, and close the db so I have no ASP in the body
: of the page?

Yes. Open late, close early.

: Its very frustrating because now I just get a blank page and I'm sure this
: will throw off the users..

Or you could just put "This page intentionally left blank" (O:=

What is this, just description?
: Updating Room Type

So then your popup will look something similar to:

<script>window.open("pageUpdateMinimumStays.asp?SITEID=1&ROOMTYPE=1&index=1"
,"_self");</script> ???

'launch app from page1.asp
location.href='page2.asp'

'page2.asp launches popup
'call popup.asp from client-side
window.open('popup.asp','popup')

'run process
'close popup
'update page

Is this the sequence you're using?

--
Roland

This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose.
-Technet Knowledge Base-
http://support.microsoft.com/default.aspx?scid=fh;EN-US;kbhowto&sd=TECH&ln=EN-US&FR=0
-Technet Script Center-
http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/default.asp
-WSH 5.6 documentation download-
http://www.microsoft.com/downloads/...48-207D-4BE1-8A76-1C4099D7BBB9&displaylang=en
-MSDN Library-
http://msdn.microsoft.com/library/default.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top