Recalling Javascript Variables

Hello everyone,

I know I can save SL variables into a .txt file using this JavaScript

var fso = new ActiveXObject("Scripting.FileSystemObject");
var s = fso.OpenTextFile("C:\\Test.txt", 8, true, 0);
var name = player.GetVar("TextEntry");
var email = player.GetVar("TextEntry1");
s.WriteLine("Email: " + email);
s.WriteLine("Name: " + name);
s.WriteLine("==========");
s.Close();

command, but how would I put them back into SL if I want to say, call up a specific user id and make that user active in the SL application?

This is what I have so far (see attachment). Make sure you don't publish it to a network drive or it won't work properly. It has to be published to your "C" drive make work. The .txt file where the info is stored is called "UserInfo."


Basically, when I click on Admin, I'd like to be able to click on View Users, where a layer will pop up with user ID's. Then, when clicked, that ID will populate the base layer of the Admin page with the users ID #, first name, last name and email. And when they're active, have that person be the user that's running the application.

How would I recall the variables into the ViewUsers layer on the Admin page?

1 Reply