Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CGI:New window opens w/ NN, not w/ IE

2 views
Skip to first unread message

Rich Yavorsky

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to
Hello.

Simply, I have a Perl CGI script that, when done executing after being
called, ends with the following:

print "Status: 302 Moved Temporarily\n";
print "Location: " . $url . "\n";
print "Window-Target: NewWindow\n\n";

This code opens $url in a new browser window. This works like a dream
for NN browsers. For MSIE, however, $url is opened in the same window
that it was called.

1) Why doesn't this work for MSIE, and
2) What do I need to return to the MSIE-using client such that $url
opens in a new window?

Thanks in advance,
Rich Yavorsky

Daniel Vesma

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to
Why don't you just set the form's action to open a new window rather than
doing it from within the script?

<FORM ACTION="blah" TARGET="_top"></FORM>

Daniel Vesma
http://www.thewebtree.com
http://www.thewebtree.com/daniel-vesma

Richard Gaushell

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to Rich Yavorsky
Rich Yavorsky wrote:
> This code opens $url in a new browser window. This works like a dream
> for NN browsers. For MSIE, however, $url is opened in the same window
> that it was called.

Sounds like an HTML problem, a Microsoft Problem, a Browser Problem or a
Operator Problem. Not a Perl Problem. Or perhaps I'm mistaken. Tell
us, how does browser redirection have anything to do with Perl?

Rich

---------------------------------------------------------------------
Rich Gaushell -- Yet Another Perl Programmer <rgau...@hotmail.com>
"Give a person a script, they'll use it for a day,
Teach them how to program, they can run forever."
(unless they're on NT, in which case they must reboot every few days)


Abigail

unread,
Jul 23, 1999, 3:00:00 AM7/23/99
to
Rich Yavorsky (richard...@my-deja.com) wrote on MMCLII September
MCMXCIII in <URL:news:3798C6F4...@my-deja.com>:
\\ Hello.

\\
\\ Simply, I have a Perl CGI script that, when done executing after being
\\ called, ends with the following:
\\
\\ print "Status: 302 Moved Temporarily\n";
\\ print "Location: " . $url . "\n";
\\ print "Window-Target: NewWindow\n\n";
\\
\\ This code opens $url in a new browser window. This works like a dream

\\ for NN browsers. For MSIE, however, $url is opened in the same window
\\ that it was called.

That's a score for MSIE in its war against Netscape.

\\ 1) Why doesn't this work for MSIE, and

Could it because of the fact MSIE follows the HTTP/1.1 RFC, and Netscape
plays its tiring "NIH" game again?

\\ 2) What do I need to return to the MSIE-using client such that $url


\\ opens in a new window?

You wouldn't. You let the user decide whether they want a new window or not.
Document authors trying to open extra windows on a users screen should be
skinned alive, dipped in a barrel of salt, then fed to the sharks.

Now, what has this to do with Perl?


Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'


-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----

Anno Siegel

unread,
Jul 24, 1999, 3:00:00 AM7/24/99
to
Abigail <abi...@delanet.com> wrote in comp.lang.perl.misc:

>Document authors trying to open extra windows on a users screen should be
>skinned alive, dipped in a barrel of salt, then fed to the sharks.

Objection on behalf of the shark community. Gah.

Anno

0 new messages