Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Is it possible to open a new IE window using a perl command?

Reply
Thread Tools

Is it possible to open a new IE window using a perl command?

 
 
Paul
Guest
Posts: n/a
 
      12-07-2005
hi, greetings,

Can I do this using perl?

1. post some data to a specified URL using perl

2. get the response and open the new IE window to display the response
in this new IE window?

3. How to handle the cookie for this new IE window?


thanks.


paul

 
Reply With Quote
 
 
 
 
Matt Garrish
Guest
Posts: n/a
 
      12-07-2005

"Paul" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> hi, greetings,
>
> Can I do this using perl?
>
> 1. post some data to a specified URL using perl
>


See LWP.

> 2. get the response and open the new IE window to display the response
> in this new IE window?
>
> 3. How to handle the cookie for this new IE window?
>


No. Opening windows happens on the client's side. You can post the data to
the remote server and get back a page and then print that back to the user.
You can also collect cookies in a cookie jar and probably imitate them when
you send the page back to the user.

But all this begs the question of why you aren't just posting to the
originating server in the first place? Seems like you're up to no good...

Matt


 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      12-07-2005
Paul wrote:
> Can I do this using perl?
>
> 1. post some data to a specified URL using perl
>
> 2. get the response and open the new IE window to display the response
> in this new IE window?


Basically yes, but you'd better open the new browser window when making
the item 1. request.

However, there is very little about Perl in this. A more appropriate
group would be comp.infosystems.www.authoring.cgi. If you'd be a
first-time poster to that group, please note that you need to approve
your posting as explained in http://www.thinkspot.net/ciwac/howtopost.html

And don't forget to research the problem yourself first.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 
Reply With Quote
 
Paul
Guest
Posts: n/a
 
      12-07-2005
Actually it works like this:

when I post the data to the server, the server will return a random
number. I need to decide if I should open a new window based on this
random number.

thanks.

 
Reply With Quote
 
Jščrgen Exner
Guest
Posts: n/a
 
      12-07-2005
Paul wrote:
[Re: Is it possible to open a new IE window using a perl command?]
> Can I do this using perl?


Trivial. You do it exactly the same way you would open any other application
from Perl, e.g. "system iexplore.exe".

> 1. post some data to a specified URL using perl
> 2. get the response and open the new IE window to display the response
> in this new IE window?
> 3. How to handle the cookie for this new IE window?


Oh, you are talking about some odd CGI stuff? Then why don't you ask in a
newsgroup that actually deals with and cares about CGI?

jue


 
Reply With Quote
 
Eric J. Roode
Guest
Posts: n/a
 
      12-07-2005
"Paul" <(E-Mail Removed)> wrote in news:1133920525.931139.304820
@g43g2000cwa.googlegroups.com:

> Actually it works like this:
>
> when I post the data to the server, the server will return a random
> number. I need to decide if I should open a new window based on this
> random number.
>


But perl is *running on* the server, not on the client's web browser.

--
Eric
`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$",$;,$^,$#,$~,$*,$:,@%)=(
$!=~/(.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)......(.)/,$"),$=++;$.++;$.++;
$_++;$_++;($_,$\,$,)=($~.$"."$;$/$%[$?]$_$\$,$:$%[$?]",$"&$~,$#,);$,++
;$,++;$^|=$";`$_$\$,$/$:$;$~$*$%[$?]$.$~$*${#}$%[$?]$;$\$"$^$~$*.>&$=`
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Window.Open get new tab instead of new window in FireFox Fredzidd@gmail.com Javascript 1 02-29-2008 03:06 AM
Open a new window on top of parent window using script Ralf ASP .Net 2 11-15-2006 09:45 PM
window.open() doesn't open new Window in Opera PC HUA Javascript 2 05-19-2004 02:29 AM
Need to open a new browser window, not a new window Gordon ASP General 3 04-16-2004 10:46 PM
Invalid session when a new IE window is opened using window.open() raj ASP General 8 04-09-2004 06:50 AM



Advertisments