ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-web
perl-win32-web
embedding javascript in cgi perl- works in linux but not windows!
by Dhivya Arasappan/O/VCU other posts by this author
Sep 19 2006 12:47PM messages near this date
view in the new Beta List Site
Re: embedding javascript in cgi perl- part II | Re: embedding javascript in cgi perl- works in linux but not windows!
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2> Hi,<br>
<br> 
I've been using a perl script for a while now on&nbsp; for a button which
when clicked opens up another site (through a javascript function
embedded in the perl). Its been working fine, but recently I opened the
site in windows and tried hitting the button. It didnt work. It doesnt
open up the other site.<br> 
<br> 
Any idea why it seems to work only in Linux and not in windows ?<br> 
<br> 
The code snippet is as below:<br> 
<br> 
<br> 
<span style="font-style: italic;"> print "&lt;input type = button value = 'Input file format'
 onClick = 'inputformat();'&gt;";</span> <br style="font-style: italic;">
<br style="font-style: italic;"> 
<span style="font-style: italic;"> print "&lt;script&gt;";</span><br style="font-style: itali
c;"> 
<br style="font-style: italic;"> 
<span style="font-style: italic;"> print "function inputformat(){";</span><br style="font-sty
le: italic;"> 
<span style="font-style: italic;"> &nbsp;&nbsp;&nbsp; </span><br style="font-style: italic;">
<span style="font-style: italic;"> &nbsp;&nbsp;&nbsp; #print "alert('going to see input forma
t');";</span> <br style="font-style: italic;">
<span style="font-style: italic;"> &nbsp;&nbsp;&nbsp; print "var url = 'http://gus.csbc.vcu.e
du/gus/inputformat.pl';";</span> <br style="font-style: italic;">
<span style="font-style: italic;"> &nbsp;&nbsp;&nbsp; print "newwindow=window.open(url, 'inpu
t format','height=600, width=700');";</span> <br style="font-style: italic;">
<span style="font-style: italic;"> &nbsp;&nbsp;&nbsp; print "if(window.focus){";</span><br st
yle="font-style: italic;"> 
<span style="font-style: italic;"> &nbsp;&nbsp;&nbsp; print "newwindow.focus()";</span><br st
yle="font-style: italic;"> 
<span style="font-style: italic;"> &nbsp;&nbsp;&nbsp; print "}";</span><br style="font-style:
 italic;"> 
<br style="font-style: italic;"> 
<span style="font-style: italic;"> print "}";</span><br>
<br> 
any help would be great.<br> 
<br> 
thanks<br> 
dhivya</FONT> 
Thread:
Dhivya Arasappan/O/VCU
$Bill Luebkert

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved