Solved

buffering

Posted on 2011-09-02
3
228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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…
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

756 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