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
Solved

loading a pre-build HTML file from CGI

Posted on 1998-10-26
6
168 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
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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powershell / new-object PSObject rows 2 457
Google  (Get  Users Email) 2 136
ROBOFTP UNZIP 1 53
troubleshoot a python script 8 18
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 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