Solved

buffering

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Replacing smart quotes from word 7 67
Adding Datediff to staistics page 2 49
SQL Filter Question 8 77
Query to get the soonest date out of a few records 2 39
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

930 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

22 Experts available now in Live!

Get 1:1 Help Now