Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display messages for users?

Status
Not open for further replies.

nivone

Programmer
Jul 2, 2002
33
IL
HI,

I use perl with CGI.
During the execution of a script I want to inform the user regarding a procedure that ended.
For example: "Step 1 is done".
The thing is that I do not want to loose the information that is currently displayed in the browser, I do not want to redirect to a different page.
I guess I need something like a message box.
Thanks,
 
Send the message to a pop-up window. There's always a better way...
 
HI,

Pop up is great, but how do I launch it from perl?
Also, does it take parameters for size, locaion, etc.?

Thanks
 
Another better way is use "client pull". Simply put the CGI creates a temporary html file on the server, which is sent back to the client. In this temporary file the header tags contain a HTTP-EQUIV entry to refresh the browser with a further call to access the temporary HTML page. As the original CGI finishes it's business the HTTP-EQUIV line is removed from the file.

I've used a primitive version of this before, to overcome the reluctance of ActivePerl to acknowledge the $| internal variable. Leader of Birmingham Perl Mongers
 
I created a html page for each message that I use.
If I need to display a message I redirect from the script to the html message which includes a refresh meta that automatically redirects back to the main script.
Thanks for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top