PDA

View Full Version : Midi Jukebox (The Sequel)


Lee
06-23-2001, 05:40 AM
Thanks Mark&DrWeb for your first replys,

I have some basic knowledge of HTML and am learning al the time,The Midi Jukebox i thought would be a breeze as it is'nt that complicated and i have have set up far more complex scripts on my site.

Before i posted my first "Post" i had tried every URL to link the midi file to my site.

Currently i added the full URL even though i have tried it many times.

group[0][0]=new Option("2001","http://www.creative-lee.com/sounds/2001.mid")
group[0][1]=new Option("Funky Town","http://www.creative-lee.com/sounds/funky town.mid")

I was taken to 'Quote'

'You do not have permission to access http://www.creative-lee.com/sounds/funky%20town.mid

Data files must be stored on the same site they are linked from'

and of course my IP was shown.

The files are stored on the same site they are linked from and this is getting up my nose ;)


Hope you Guru's can spread some light on this.

Regards and Thanks Again Lee.

Lee
06-23-2001, 05:44 AM
P.S

Is it because i named the sound files "funky town"
instead of "funky_town" would this cause any complications?

Regards Lee

Dave Swift
06-23-2001, 08:07 AM
Originally posted by Lee
P.S

Is it because i named the sound files "funky town"
instead of "funky_town" would this cause any complications?

Regards Lee

Of course it would.

If your file is called funky_town then you must link to that exact file.

So your code should be:

group[0][0]=new Option("2001","http://www.creative-lee.com/sounds/2001.mid")
group[0][1]=new Option("Funky Town","http://www.creative-lee.com/sounds/funky_town.mid")

So make sure the the file name in your code is the same as the name of your file.

(Also, never use spaces with file names, it only complicates things.)

Lee
06-23-2001, 08:59 AM
Thanks David,

I meant that the file name the way i saved it is called funky town and on my page it is called funky town.
I have exhausted all my options but will re-try naming them all with a _ between.

Again Thanks Lee

Ian
06-23-2001, 09:49 AM
Hi, can you please post your url where you have this script set up and I'll look at it for you.

Lee
06-24-2001, 11:15 AM
Thankyou Ian,

http://www.creative-lee.jukebox.html

Hope you can help i am beginning to think A1 posted a unuseable script.

Again Thanks Regards Lee

Lee
06-24-2001, 11:17 AM
Sorry wrong URL Grrrr

http://www.creative-lee.com/jukebox.html

Ian
06-25-2001, 08:57 AM
ok, looks like a strange problem you have. I would first try loading a file from the same directory as your page as i get this message also:
You do not have permission to access http://www.creative-lee.com/sounds/4seasons.mid

Data files must be stored on the same site they are linked from.

so try loading a song file into the same directory and changing the url of that song. eg: http://www.creative-lee.com/4seasons.mid . or just 4seasons.mid .

I would also contact your web host and talk to them about it. It is possible your site has not been set up correctly and does not support midi file types. (many don't.).
I hope this helps.

Lee
06-25-2001, 04:55 PM
Thanks Ian,

I will contact them for sure,though the server i use does support "midi" files as i use a lot of them as BG sounds on my site.

I agree it is most unusual.

Regards & Best Wishes Lee.

Ian
06-25-2001, 11:09 PM
Lee,
if you use midi background sounds, do you place them in the same directory as your pages, or do you call them from a seperate directory?

Lee
06-26-2001, 05:21 PM
Ian,all my midi files are stored in the 'sounds' directory.
eg:
<bgsound SRC="/sounds/caribbean blue.mid">
<EMBED SRC="/sounds/caribbean blue.mid" autostart=true Hidden=true>

This HTML works fine on all my pages.