Click to See Complete Forum and Search --> : value of file atachement input?


Zero-x252
08-02-2003, 01:21 PM
Is it possible to use
<form name="musform">
<input type="file" name="music" accept="*.mp3, *.wav, *.mid" onChange="getdata()">
</form>
where getdata(){
var the_data = document.musform.music.value
if (the_data != ""){
document.writeln('<bgsound src="getdata(the_data)" loop="-1"></bgsound>' + '<embed src="getdata(the_data)" loop="-1"></embed>') else {document.writeln('No Music File Selected')}
}

Zero-x252
08-02-2003, 01:39 PM
I REALLY WOULD LIKE THIS I COULD EVEN MAKE IT HAVE A PLAYLIST TO LOAD INTO.... BUT RIGHT NOW I CANT EVEN LOAD THE MUSIC FROM A SIMPLE INPUT THAT DOESNT HAVE A VALUE :mad: :mad: :mad:

Zero-x252
08-02-2003, 01:49 PM
MWHAHHAHAHAHA! it works!!! MWHAHAHAH!