Can anybody help me regarding how to open a new browser window with my
specification from within perl script for new output? NB: I can do
this easily with javascript.
Thanks in advance. 4 9746
Dipesh Mehta wrote: Can anybody help me regarding how to open a new browser window with my specification from within perl script for new output? NB: I can do this easily with javascript.
Unless you're talking about client-side Perl or a window on the server,
can't be done. Your Perl is almost definitley running on your server,
all it can do to the client is send data (which can be JavaScript, of
course).
Dipesh Mehta wrote: Can anybody help me regarding how to open a new browser window with my specification from within perl script for new output? NB: I can do this easily with javascript.
Trivial. A browser is in no way different then any other external program
and you would use system() to start it. Details see 'perldoc -f system'.
Of course, if this is a secret CGI question, then the answer would be
totally different, but as you didn't mention CGI I am assuming that you are
dealing with normal Perl programs.
jue
Dear Jue,
Thanks for reply. At present, I use following combination to get a
parsed html output in a user-defined browser window.
HTML
<a href="javascript:newpop('filename.htm')">Preview</a>
JAVASCRIPT
function newpop(filename) {
cgiurl='http://www.domainname.com/cgi-bin/script.pl?file\='
newurl=cgiurl+filename
apopup =
window.open(newurl,'note','toolbar=yes,location=no ,top=50,left=50,directories=no,status=no,scrollbar s=yes,copyhistory=no,height=400,width=600,');
}
and a perl script to parse the contents of input html document and
print output to the newly opened window.
Now I want to skip the javascript module and defining hyperlink on
every page with the filename. I can get rid of the filename with
HTTP_REFERER, but I don't know how to open new browser window with my
specification. I am using linux based virtual hosting running apache.
If you can help me in the matter or if you have any other solution to
get the rid of this situation, always welcome and shall be
appreciated.
Dipesh
Dipesh Mehta wrote: At present, I use following combination to get a parsed html output in a user-defined browser window.
HTML <a href="javascript:newpop('filename.htm')">Preview</a>
JAVASCRIPT function newpop(filename) { cgiurl='http://www.domainname.com/cgi-bin/script.pl?file\=' newurl=cgiurl+filename apopup = window.open(newurl,'note','toolbar=yes,location=no ,top=50,left=50,directories=no,status=no,scrollbar s=yes,copyhistory=no,height=400,width=600,'); }
and a perl script to parse the contents of input html document and print output to the newly opened window.
Now I want to skip the javascript module and defining hyperlink on every page with the filename.
I don't know how to not use JavaScript, but maybe this does what you want:
<a target="note" onclick="window.open('','note',
'toolbar=yes,location=no,top=50,left=50,directorie s=no,status=no,scrollbars=yes,copyhistory=no,heigh t=400,width=600')"
href="http://www.domainname.com/cgi-bin/script.pl?file=filename.htm">
Preview</a>
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Noozer |
last post by:
When using the WebBrowser control, is it possible to cause popup windows to
appear within the WebBrowser control itself instead of a new window?
This is what I've written in the NewWindow2 event,...
|
by: Moon |
last post by:
Seems I still haven't got the hang of all those window generating code
in Javascript. I've got a page with about 15 photo thumbnails. When you
click on a thumbnail a new window pops up which shows...
|
by: Shaun McKinnon |
last post by:
HI...Here's my problem...I have a popup window that loads when i want it to,
but it's not sized properly. I've set the size, but it doesn't seem to
work. I've been on 8 different websites to find...
|
by: HarveyB |
last post by:
I would like to generate non-modal popup windows from
ASP.Net code-behind. I have tried using Client Side
scripting like "function Test(){
window.open('test.htm',_blank,...
|
by: Newbie |
last post by:
Hello all~
I have got some questions about popup window, hope that someone can
help me..
m(_ _)m~thx~
when a popup window appear, can I force users to focus on the popup
window "ONLY"
that...
|
by: Dan |
last post by:
First, I'm sorry if this question has been asked
too many times. I'm new to this news group.
The question has to do with the use of popup
windows in a web page. I have heard that popup
windows...
|
by: E Michael Brandt |
last post by:
I have been lurking here for some time, and now would like to ask a
question of you clever coders:
My JustSo PictureWindow 3 Extension for Dreamweaver has stumbled in the
face of the new Opera...
|
by: Bob |
last post by:
I am trying to create a popup page (to act as a menu) from a parent
page. When the parent page (index.jsp) calls my popup function (see
below) it will properly open the correct size browser window...
|
by: anthony.turcotte |
last post by:
Hi,
I've looked for a solution to this problem on google, read posts in
this newsgroup and I still haven't found anything that could help me.
Here's the scenario.
1. User accesses...
|
by: YK |
last post by:
Hi !
I saw that in Outlook Web Access (OWA) you get small notification window
when a new e-mail is received even when the browser window is minimized and
it appears at the right corner of the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |