Solved

Blank page with CFINDEX

Posted on 2002-07-17
9
172 Views
Last Modified: 2013-12-24
Hi

I am carrying out indexing tasks on a Verity collection using CFINDEX.  The process takes about 20 minutes, and is run each night to add files scanned in during the day.

When the cfm file opens it shows a blank page until the processing is complete.  I want a page to show saying *Please wait...*.  I tried to do it with a page with the message on it immediately calling the processing page using CFLOCATION, but it is too quick and I still get the blank page.

On two occasions administrators have closed the form thinking nothing is happening, and this has caused problems with the index.

Is there something like an *onAfterLoading* event for the form that I can use?, or some other way of providing a message.

John
0
Comment
Question by:jdthedj
[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
  • 7
  • 2
9 Comments
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7160800
Tricky deal there.  What you can do is like right at the beginning of the page give the user an alert telling him/her that the script wil take a while to execute and to please be patient.

Put the script right under the <html> tag so it loads immediately when the page is hit.
<html>
<script>
alert("Please be patient, bla bla bla")
</script>

Or you could set the collection script up as a scheduled task so it will run everynight as a desired time.

Whatever is best for you.
0
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7160806
Not sure if this will work but try this instead of an alert box too.

<html>
<script>
document.write("please be patient, bla bla bla.")
</script>
0
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7160856
Any luck?  
0
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
LVL 3

Author Comment

by:jdthedj
ID: 7160873
Hi CFEXPERT

Thanks for the reply.  Neither script will work.  We have people working 24/7, so whatever time the schedule is set for there is still the potential for someone to close the form.

John
0
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7160878
Actually the script can run on its own in the background as a scheduled task at a certain time every night.  The users wouldn't ever see it running.  You can also put some error catching on it so that in the event an error is caught it can auto email you to let you know.
0
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7160884
Or as another alternative you can create a page that displays a Please wait message  and have have button that says run script.  Then have it open a new window and load your collection script into it.  At least you would be giving your people a message before anything happens.
0
 
LVL 5

Accepted Solution

by:
CFXPERT earned 50 total points
ID: 7160892
Ok here's yet another solution.  Create a page with a Please Wait message.  In the center of that page put an IFRAME that loads the actual collection script.

<iframe width="whatever" height="whatever" name="myFrame" src="blabla.cfm">

Then the Please wait message would appear the entire time the script is running in the iframe.  When the collection script is done call a page that has a confirmation on it that the collection is finished.
0
 
LVL 3

Author Comment

by:jdthedj
ID: 7160988
The IFRAME suggestion works - thanks!
0
 
LVL 5

Expert Comment

by:CFXPERT
ID: 7162242
Glad I could offer some good suggestions for ya.

KWK
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

696 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