Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Send two documents to browser?

Reply
Thread Tools

Send two documents to browser?

 
 
Mark
Guest
Posts: n/a
 
      10-03-2003
Hi All,

I have a commercial website search script which is slow in returning
its results. The consequence is that for a short period the screen is
white until the results are returned.

Is there a simple way to make the script return a temporary document
to the browser which is then replaced by the search results?

I tried making the script print some standard html code at the start
of the script and this seemed to do the trick but then a discovered
that my original document (which was simply a black background) was
not being replaced. The new document was being printed after the
first, resulting in the document headers being printed rather than
being interpreted by the browser.

Many thanks in advance for any suggestions.

Mark
 
Reply With Quote
 
 
 
 
Jeff Boes
Guest
Posts: n/a
 
      10-03-2003
Mark wrote:
> Hi All,
>
> I have a commercial website search script which is slow in returning
> its results. The consequence is that for a short period the screen is
> white until the results are returned.
>
> Is there a simple way to make the script return a temporary document
> to the browser which is then replaced by the search results?
>


Yes, there are simple ways to do this. However, they are no more
Perl-specific than they are Cobol-specific. Rather than give you a whole
solution here (and encourage more non-Perl-specific questions, drowning
out those with Perl questions), I'll mention "interstitial pages",
"browser redirects", and point you toward Google and the
comp.infosystems.www.authoring.cgi newsgroup.

--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise

 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      10-03-2003
Mark wrote:
> I have a commercial website search script which is slow in returning
> its results. The consequence is that for a short period the screen is
> white until the results are returned.
>
> Is there a simple way to make the script return a temporary document
> to the browser which is then replaced by the search results?


I am guessing you are talking about a CGI program (you forgot to mention)?
Then sure, no problem. In Perl you do it the same way as in any other
programming language, none of your question is Perl-specific in any way.

Actually this Question is Asked Frequently (hint, hint!) ... in the proper
CGI newsgroups.

jue


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Photos,mp3,videos,documents to mobile Chethan Digital Photography 0 05-25-2007 06:06 AM
No more stuff on C:\Documents and Settings\[User]\My Documents\Visual Studio 2005\ craigkenisston@hotmail.com ASP .Net 1 10-18-2006 03:31 PM
i can't send pics from My Documents, or My Pictures! MichaelM Computer Support 6 12-26-2004 05:07 AM
Send two documents to browser? - repost Mark Perl Misc 3 10-08-2003 03:21 PM



Advertisments