Solved

loading a pre-build HTML file from CGI

Posted on 1998-10-26
6
156 Views
Last Modified: 2013-12-25
How do you load an exiting HTML page from CGI that
would open a new page on screen rather than replacing
the existing page of the current browser.
My current script does the following:
printf("<html><head><meta-equiv='refresh' content='0; url=
http://mypage.html'></head><body</body></html>");
of course it works but it replaces my current page on the
browser. I want it on a separate popup screen without
browser's toolbar and menu (like an applet popup).
0
Comment
Question by:trinh
  • 2
  • 2
  • 2
6 Comments
 
LVL 1

Expert Comment

by:wisdom042597
Comment Utility
Try adding target="_new" to the original A HREF for the script reference (assuming it's clickable).  This will open a new browser instance when the script URL is run.

0
 

Author Comment

by:trinh
Comment Utility
No, Adding the target tag does work. In fact, it hangs
the browser indefinitely.
0
 
LVL 1

Expert Comment

by:wisdom042597
Comment Utility
Try outputting a mime redirect header that references a static page, as in:

Location: http://xxxxxxx
(extra carrage return)


0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:trinh
Comment Utility
Still doesn't work
0
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 50 total points
Comment Utility
I think the only solution to your problem would involve JavaScript:

==
<html>
<head><title>This page will stay</title></head>

<body OnLoad="window.open('/path/to/other/page.html','','resizable=yes,width=480,height=360,scrollbars=yes'); return false">

</body></html>
==

have fun,
MaDdUCK
0
 
LVL 8

Expert Comment

by:MaDdUCK
Comment Utility
or just "window.open('/path/to/other/page.html'); return false"
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now