On Sunday, November 23, 2003 6:42 PM,
Mike Schienle <[EMAIL PROTECTED]> wrote:
[snip]
: Can someone point out what I'm missing in the -script section
: that's commented out that would make it not work correctly?
: The source of the file that's referenced is identical to what's
: in the JSCRIPT variable.
It works fine for me. Just to be certain let's see
if we are speaking of the same thing. There are three
ways to go here:
1. Generate a script tag:
-script => {
-language => 'JAVASCRIPT',
-src => '/delta/js/openWin.js'
},
<script language="JAVASCRIPT" src="/delta/js/openWin.js"
type="text/javascript"></script>
2. Generate an inline script:
-script => $JSCRIPT,
<script language="JavaScript" type="text/javascript">
<!-- Hide script
//<![CDATA[
function OpenWin() {
var myWindow;
var width = parseInt(screen.availWidth/3*2);
var height = parseInt(screen.availHeight/3*2);
var left = parseInt((screen.availWidth/2) - (width/2));
var top = parseInt((screen.availHeight/2) - (height/2));
var windowFeatures = "width=" + width + ",height=" + height +
",status,resizable,left=" + left + ",top=" + top +
",screenX=" + left + ",screenY=" + top;
myWindow = window.open("", "E-TimOutput", windowFeatures);
}
//]]> End script hiding -->
</script>
3. Generate both:
-script => [
$JSCRIPT,
{
-language => 'JAVASCRIPT',
-src => '/delta/js/openWin.js'
},
],
HTH,
Charles K. Clarkson
--
Head Bottle Washer,
Clarkson Energy Homes, Inc.
Mobile Home Specialists
254 968-8328
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]