That isn't so much changing the script from Javascript 1 as it is using Javascript to do something more easily done with PHP. But yes, it is possible if you create objects.

Although I would obviously agree that this is certainly easier/more securely done with PHP, I don't think that was what he asked - My understanding of his question was that he merely wanted a way to 'pull' the password (or any data) from a text file using Javascript. Your response suggested that it wasn't possible because Javascript is client-side. Yet, clearly there are alternatives - With this ActiveX control it is possible to still get what he was asking for (albeit not necessarily using Javascript, but I think he just wanted a way to 'make it happen').

I've used this control a few times for sites where security isn't really an issue and the tables used were not that complicated or required much modification (and NO modification from the users). Sometimes it's just more of a pain to setup a database anyways, especially when you're only READING from it. For someone without a server or much knowledge of servers and how they work - This is an easy fix for most people and a great way to get their feet wet with databases.

You CANNOT permanently modify the data using this control, just read from it.

The best way to utilize this object is with DHTML and Javascript - Although Javascript is not required for this control, merely using DHTML will work in most situations. And it will work perfectly for Mortecai4 for what he was asking (and in his situation, it would likely require the use of Javscript). I doubt there are many options for securing the data within the file though - I WOULD NOT use this for passwords, yet, for other 'public' data, it's perfectly fine.

If you ACTUALLY want to utilize this with passwords, then I would recommend joining a site with free web hosting (like x10hosting.com for example) which provides PHP/MySQL for free and utilizing these languages instead to serve your purpose. Clearly, this can take MUCH longer for someone inexperienced to setup though.

I'm back, and i'm trying this, its a JS script similar to the JS challenges on this site, and matches the string from ut() and tt()to the input from the user and pass boxes. For some reason, the page won't respond when i press the 'submit' button.I don't get it...

y place the password on a text file and let javascript pull it up? y not have more fun and hide the password in plain sight or add it on there as function x but encrypt in 2 or more ways that javascript will still be able to read, thats what i have been doing, exect i use 6 different encryptors and the password still works and only one of my freinds figured it out but thats cause i told him the first encryptoin