Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Why "write" when using the "VBScript" |
| From: | Phillip Kerman |
| Date: | Mon, 19 Apr 1999 11:18:59 +0100 |
John,
I get the part about re-directing... but why not just type the whole
VBScript right out in the open--instead of using "write" functions to put it
into the html at runtime? It seems to work fine if just do the:
<SCRIPT LANGUAGE="VBScript">
<!-- //
sub movie_FSCommand(byVal command, byVal args)
call movie_DoFSCommand(command,args)
end sub
//-->
</SCRIPT>
plain as day. But what I see people doing--and what I wonder why is:
line = '<SCRIPT LANGUAGE=VBScript\> \n';
line += 'on error resume next \n';
line += 'sub movie_FSCommand(byVal command, byVal args)\n';
line += ' call movie_DoFSCommand(command, args)\n';
line += 'end sub\n';
line += '</SCRIPT\> \n';
document.write(line);
Why be so sneaky? Is there some benefit?
Phillip
> Date: Sat, 17 Apr 1999 19:55:36 -0400
> From: John Croteau <croteau
> Subject: Re: FLASH: Why "write" when using the "VBScript"
>
> Hi Phillip,
>
> > I've seen in many html documents which use FSCommand... in the
> portion where
> > you have IE 'call' the FSCommand... most people seem to do this as a
> > "document.write".
> > There must be some benefit to this (as opposed to just writing the whole
> > thing inside the JavaScript portion).
> There's no way to capture calls from the ActiveX control with JavaScript
> so you have to catch them with a VBScript subroutinte and transfer them
> to JavaScript or if you rather you could do the Wint 95/98/NT thing
> totally in VBScript.
>
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

