Solved

Blank page with CFINDEX

Posted on 2002-07-17
9
167 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
 
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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

14 Experts available now in Live!

Get 1:1 Help Now