This is a snip of code i have in a CGI. I am having trouble getting ANY
java script to run from within a CGI. I would appreciate some help with why
this isn't running right. I have looked on the web (do a search on google
with java in the box, hahaha) for a good resource to help me figure out how
to run other Java Scripts from within a CGI help with finding one would be
appreciated.
if ($query->param('list_name') eq 'Star Wars Galaxies')
{
<Head>
<SCRIPT LANGUAGE="JavaScript">
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</script>
</HEAD>
<BODY>
print q|<A HREF="http://station.com/docs/swgaldocs.htm"
onclick="NewWindow(this.href,'name','400','400','yes');return
false;">Report Documentation</a>|;
</BODY>
}
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]