[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Blank page with CFINDEX

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
jdthedj
Asked:
jdthedj
  • 7
  • 2
1 Solution
 
CFXPERTCommented:
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
 
CFXPERTCommented:
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
 
CFXPERTCommented:
Any luck?  
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
jdthedjAuthor Commented:
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
 
CFXPERTCommented:
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
 
CFXPERTCommented:
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
 
CFXPERTCommented:
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
 
jdthedjAuthor Commented:
The IFRAME suggestion works - thanks!
0
 
CFXPERTCommented:
Glad I could offer some good suggestions for ya.

KWK
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 7
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now