Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

save variable output to file

Status
Not open for further replies.

pugs421

Technical User
Nov 25, 2002
114
US
I have a flash movie that sends varibles to some javascript which creates a text file with the information.

This is the code that creates the text file:


<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function Movie1_DoFSCommand(command, args) {
var Movie1Obj = InternetExplorer ? Movie1 : document.Movie1;


if ( command == "writeToDisk" )
writeToDisk(args);
else
document.writeln("did not work fool");
}
// 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 Movie1_FSCommand(ByVal command, ByVal args)\n');
document.write(' call Movie1_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<center>
<br>
<br>
<br>
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=" ID=Movie1 WIDTH=540 HEIGHT=440>
<PARAM NAME=movie VALUE="quiz.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="quiz.swf"

quality=high bgcolor=#FFFFFF WIDTH=540 HEIGHT=440 swLiveConnect=true NAME=Movie1 TYPE="application/x-shockwave-flash"

PLUGINSPAGE="</OBJECT>
</center>

---
Everytime I run it I get the message:

an activex controll on this page might be unsafe to interact with other parts of the page. Do you wish to continue?

----

Is there a way around this so the end user (someone taking an interactive quiz) wont have to see this message?
 
I think it has to do with the security settings in your Internet Explorer settings. Go to Tools->Internet Options from Internet Explorer's menu bar and try fiddling with ActiveX settings.
 
can javascript save information to a file on its own? I see that this code uses vb.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top