Solved

Blank page with CFINDEX

Posted on 2002-07-17
9
173 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
Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

 
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

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

688 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