Quote:
Originally posted by erikpm
I got it to work yesterday with these 3 additions but I am not sure if all three are needed. I borrow the code from another web page using flash.
1) Added the var testjsObj line after the function statement:
function testjs_DoFSCommand(command, args)
{
var testjsObj = InternetExplorer ? testjs : document.testjs;
2) Added this code for Internet Explorer within the <SCRIPT> tag:
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub testjs_FSCommand(ByVal command, ByVal args)\n');
document.write(' call testjs_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
3) I made sure that the <OBJECT> tag had this in it:
id=testjs
Works great for me but I am too green to know if all three had to be used.
Well I can tell you that 1 is not needed, but it's interesting that this worked for you. Part of my problem is that I'm in the process of moving and my books are packed So I can't readily look up javascript stuff.