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 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 "<input type = button value = 'Input file format'
onClick = 'inputformat();'>";</span> <br style="font-style: italic;">
<br style="font-style: italic;">
<span style="font-style: italic;"> print "<script>";</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;"> </span><br style="font-style: italic;">
<span style="font-style: italic;"> #print "alert('going to see input forma
t');";</span> <br style="font-style: italic;">
<span style="font-style: italic;"> print "var url = 'http://gus.csbc.vcu.e
du/gus/inputformat.pl';";</span> <br style="font-style: italic;">
<span style="font-style: italic;"> print "newwindow=window.open(url, 'inpu
t format','height=600, width=700');";</span> <br style="font-style: italic;">
<span style="font-style: italic;"> print "if(window.focus){";</span><br st
yle="font-style: italic;">
<span style="font-style: italic;"> print "newwindow.focus()";</span><br st
yle="font-style: italic;">
<span style="font-style: italic;"> 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
|