Click to See Complete Forum and Search --> : List maker...?


W8 4me
06-04-2003, 07:07 PM
Is there any javascript that will allow me to copy and paste the file names of hundreds of mp3's into a textarea (where each new line is a new list object) and then by clicking a button I can turn them into a numbered list?

The mp3's would contain apostrophies, periods, hashes, dashes and commas ('.#-,).

So I would paste in....

The Lighthouse Family - Ocean Drive
Eminem - Without Me
Robbie Williams - Feel

...and it turns out like this...

1. The Lighthouse Family - Ocean Drive
2. Eminem - Without Me
3. Robbie Williams - Feel

It's just really tedious typing the numbers. I have already tried a web-based list generator but they require me to copy and paste each individual song title in it's own text field...which is just as bad as typing the numbers.

PLEASE PLEASE HELP.

Khalid Ali
06-04-2003, 08:11 PM
If I understand you correctly here is something that might like to see..

http://68.145.35.86/skills/javascripts/CreateOrderedListFromTextAreaText.html

Its not optimised in anyway.
Let me know if there are any issues...I have tested it wiht NS6+ and IE6+

W8 4me
06-05-2003, 07:11 AM
That looks like a really juicy link but it says "cannot find server". I tried the link at 13:10 GMT.

W8 4me
06-05-2003, 07:44 AM
I think I've found what I'm looking for, but thanks anyway.

Anyone who wants to do the same, go here http://www.jwscripts.com/scripts/source.php?id=3

All you have to do is change the "ul" to "ol" in the script. I presume.

Thanks guys!

EDIT: Oh right, I just tested it and it creates the tags and copies them to the clip board. Ah well it'll do, just save it as a html file and copy and paste the result. Wooohooo!