Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: OAS "Wait" Page ?

Re: OAS "Wait" Page ?

From: Bastiaan Schaap <bschaap_at_desyde.nl>
Date: 2000/05/10
Message-ID: <aaaS4.1$c6.329@psinet-eu-nl>#1/1

Hi Joe,

What you want can't be done by doing some settings in the OAS. I'm developing Oracle web applications since august '99 now, and this is how I solve it. There are two possibilities:
- write a 'wrapper' procedure that creates the wait-screen and afterwards calls the procedure that generates your page that takes so long to load. As you know every procedure that is executed starts a new stream to the client when htp calls are made. Be sure to first do your querying or whatever takes so long, and only after that start with the htp.htmlopen call. Otherwise you'd still get a blank screen.
- Simply use the onLoad attribute of your <BODY>-tag and write some fancy javascript to show a progress bar. You can find a lot of little free javascripts that can do this on the net ( http://www.javascript.com ). The last option is the one I fancy the most, however if you're just beginning with html the first option would be the easiest.

Good luck,

Bastiaan Schaap

<joeupshaw_at_my-deja.com> wrote in message news:8f9v4d$2cs$1_at_nnrp1.deja.com...
> Currently, I have a PL/SQL package that uses the OAS HTP package to
> send a report page back to the browser. This is all working fine. the
> problem is that, at times, this report takes a while to generate.
>
> Is is possible to immediately send one page back to the browser and
> then switch the page afterwards ? In other words, I would like to
> quickly send a "Wait" page that says "Please be
> patient...blah...blah...blah" and then when the report is completed
> switch out this "Wait" page for the report.
>
> -Joe
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed May 10 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US