Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: FS Command Javascript window open problems
From: Waldo Smeets
Date: Mon, 12 Jul 1999 14:05:20 +0100

Hallo,

Once again a problem with my FS Command script.
I'm using the following command, wich works fine on both NS en IE

<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
// Remind giving an id name to the movie

function movie_DoFSCommand(command, args) {
var movieObj = InternetExplorer ? parent.movie :
parent.document.embeds[0];

if (command == "newWindow"){
alert(args);
}
}

// 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 movie_FSCommand(ByVal command, ByVal args)\n');
document.write(' call movie_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>

Both browsers generate an alert.
But when replacing the javascript command alert(args) for open(args) or
window.open(args) NS won't react at all and IE works perfect!
I first thought that there where string-problems. But even when not
using the args, so just coding open('email.html'), there's no reaction.
What can be the problem?
I'm using this script to open a new window with an email form.

Waldo



------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
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-manageratshocker [dot] com


Replies
  Re: FLASH: FS Command Javascript window , John Croteau

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]