Solved

buffering

Posted on 2011-09-02
3
224 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 82

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

757 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

18 Experts available now in Live!

Get 1:1 Help Now