cgi-perl: embedding javascript in perl (mistake in first mail)
by Dhivya Arasappan/O/VCU other posts by this author
Aug 14 2006 1:59PM messages near this date
view in the new Beta List Site
Dealing with standby mode
|
RE: cgi-perl: embedding javascript in cgi-perl
<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2> I'm sorry. I was t
rying to simplify the code to mail to the mailing
list and made a silly mistake in the argument names. This is not the
problem in the actual code.<br>
<br>
So,the problematic code actually looks more like:<br>
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <p style="margin
: 0px;"> <br>
</p>
<p style="margin: 0px;"> <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" s
ize="2"> <p style="margin: 0px;"> <span style="font-style: italic;">
</span> </p><p style="margin: 0px; font-style: italic;">$testvar = 'www.google.com';
</p> <p style="margin: 0px; font-style: italic;">print("<input type=button value = 'callsi
te'
<br> onclick='popwindow($testvar);'>");
</p> <p style="margin: 0px; font-style: italic;">
</p> </font><br style="font-style: italic;"><span style="font-style: italic;">function popwin
dow(url){
</span> </p>
<p style="margin: 0px;"> <span style="font-style: italic;"> &nbs
p; newwindow=window.open(url,'test','height=400,width=200');
</span> <br style="font-style: italic;"><span style="font-style: italic;"> &
nbsp; if(window.focus){newwindow.focus()}
</span> <br style="font-style: italic;"><span style="font-style: italic;">}</span><br>
</p>
<p style="margin: 0px;"> <br>
Sorry about that confusion. <br>
</p>
<p style="margin: 0px;"> <br>
thanks<br>
</p>
<p style="margin: 0px;"> dhivya<br>
</p>
</font> <br>
</FONT>
|