Solved

Blank page with CFINDEX

Posted on 2002-07-17
9
171 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
  • 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
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

840 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