Solved

buffering

Posted on 2011-09-02
3
226 Views
Last Modified: 2012-06-27
I have several pages in which I show the user a target images and two additional images, and ask them to indicate which of the two images is more similar to the target image. After the answer the user is given the next similar page.

My problem is the time that the browser needs to show the images. It is not a smooth task - it is "flashy".

What I thought to do is create a page before the task in which i "show' all the images and then redirect to the task. However - it doesn't seem to  work. There is a way to make the task smoother?

The following code is the "buffer" page.

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body dir="rtl">
<p>please wait</p>

<%
Response.Buffer = True
response.write("<img src='small/b1.jpg'><br>")
response.write("<img src='small/b2.jpg'><br>")
response.write("<img src='small/b3.jpg'><br>")
response.write("<img src='small/b4.jpg'><br>")
response.write("<img src='small/b5.jpg'><br>")
response.write("<img src='small/b6.jpg'><br>")
response.write("<img src='small/b7.jpg'><br>")
response.write("<img src='small/b8.jpg'><br>")
response.write("<img src='small/b9.jpg'><br>")
response.write("<img src='small/b10.jpg'><br>")
response.write("<img src='small/b11.jpg'><br>")
response.write("<img src='small/b12.jpg'><br>")
response.write("<img src='small/t13.jpg'><br>")
response.write("<img src='small/t14.jpg'><br>")
response.write("<img src='small/t15.jpg'><br>")
response.write("<img src='small/t16.jpg'><br>")
response.write("<img src='small/t17.jpg'><br>")
response.write("<img src='small/t18.jpg'><br>")
response.write("<img src='small/t19.jpg'><br>")
response.write("<img src='small/t20.jpg'><br>")
response.write("<img src='small/t21.jpg'><br>")
response.write("<img src='small/t22.jpg'><br>")
response.write("<img src='small/t23.jpg'><br>")
response.write("<img src='small/t24.jpg'><br>")
response.redirect("task.asp")
%>
</body>
</html>

Open in new window

0
Comment
Question by:arielbf
3 Comments
 
LVL 11

Expert Comment

by:Rajesh Dalmia
ID: 36472233
you can run a script before page redirect to stop the page for couple of seconds...
check below link about how to stop page redirect for say 5 second...

http://www.strangework.com/2006/12/07/asp-time-delay-script/
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36472298
I'm sorry but that is not a "buffer page" because it all arrives in the browser as a plain old page with images.  You can "View Source" and see that.

It is possible to 'preload' images in javascript like they do in slideshows but even that doesn't completely change your problem because that counts on the first image being up there long enough to load the other images in the back ground.
0
 

Author Closing Comment

by:arielbf
ID: 36563481
Thanks for the effort
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Table header not displaying on Firefox and Chrome 7 158
XML Parsing Classic ASP 5 56
Select distinct 25 97
Need to rewrite code for checking if a file exists 3 65
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now