Click to See Complete Forum and Search --> : I got an interesting challenge for you guys
Kiyomori
07-22-2003, 07:43 AM
I need a javascript that searches the viewer's harddrive for an audio file in a specific folder (for example purposes, let's say, "C:\Multimedia\Music\01.mp3". If it can't be found, it needs to return a value (Something like "0").
What I'm trying to do is get the website to choose and play music files without having to load them it from the site (especially since I know most of the site's viewers already have these files). I searched the Internet for weeks and I can't find anything close to this. I hope you guys can help. I'd really hate to go without this feature.
If it helps, I found if I use an .asx playlist on the site, it would play the files I want from the viewer's computer, however, I still need that null return value if they're not found.
Padrill
07-22-2003, 08:11 AM
Would you like fries with that?
Force
07-22-2003, 10:45 AM
Kiyomori,
I don't think that you can do that with Javascript. It is relegated to control of the Client's browser. It doesn't have access to the clients Operating System (Thank Goodness, we have enough security problems already).
You may need to create this functionality with one of the compiled languages, i.e. C++, Java, etc.
kdcgrohl
07-22-2003, 01:06 PM
Yes it is possible, and yes, it is a bug. So just think of a different solution.
Khalid Ali
07-22-2003, 01:10 PM
There is no way you can use JavaScript to access a system's resources unless you used some attributory technologies such as Java....etc....
kdcgrohl
07-22-2003, 03:40 PM
I plainly(note sarcasm) stated that it could be done, but it was a bug. But I'll be nice and not post it here for all the kiddiez to see.
Khalid Ali
07-22-2003, 03:47 PM
Thats impossible...no way....I alwasy like sarcasm...but let me be ver clear in saying "Its not possible",unless you use any attributory technology:D :D :D
kdcgrohl - Was your "solution" cross-browser?
Kiyomori
07-23-2003, 12:15 AM
I've heard of the bug, but I'm not going to use that technique. I guess I'll have to leave out this feature.
kdcgrohl
07-24-2003, 09:54 AM
Originally posted by pyro
kdcgrohl - Was your "solution" cross-browser?
no, ie only.
Out of curiosity, did it work in IE6?
blindrain
07-24-2003, 10:24 AM
have your viewers put the files in a specific folder on their drive and tell the emed that it's src="file:///C/My%20Music/01.mp3"
That would be where the files is to be stored
%20 would be any space in the file name or folder name
kdcgrohl
07-24-2003, 10:56 AM
Originally posted by pyro
Out of curiosity, did it work in IE6?
yes. there were two seperate bugs, one of which seems to have been fixed by ie6sp1.