Solved

loading a pre-build HTML file from CGI

Posted on 1998-10-26
6
171 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 1

Expert Comment

by:wisdom042597
ID: 1829298
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
ID: 1829299
No, Adding the target tag does work. In fact, it hangs
the browser indefinitely.
0
 
LVL 1

Expert Comment

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

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


0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:trinh
ID: 1829301
Still doesn't work
0
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 50 total points
ID: 1829302
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
ID: 1829303
or just "window.open('/path/to/other/page.html'); return false"
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

738 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