|
-
Sep 4th, 2005, 03:35 AM
#1
Thread Starter
Member
Changing a text file with the click of a link?
Ok, well this is actually more advanced than it seems, so I'll explain
On MSN Spaces, you can use a text file that's renamed as a .wmv file to play a file or a list of files. To do it, you just put the following code in a text file:
VB Code:
<ASX Version="3.0">
<title>NAME OF MUSIC LIST</title>
<entry>
<title>NAME OF SONG</title>
<author>NAME OF ARTIST</author>
<Ref href="THE URL OF THE MUSIC FILE"/>
</entry>
</asx>
So anyways, what I want to do, is set up a series of links. What these links will do is change the code inside this text file, so the values for the name of the list, name of the song, name of the artist, and url of the music file.
So for example, I click on a link named Green Day - american idiot, and the code in the file changes to:
VB Code:
<ASX Version="3.0">
<title>Green Day</title>
<entry>
<title>American Idiot</title>
<author>Green Day</author>
<Ref href="http://www.server.com/greenday-americanidiot.mp3"/>
</entry>
</asx>
So is there any way I can do this with html?
-
Sep 4th, 2005, 04:07 PM
#2
Re: Changing a text file with the click of a link?
No. HTML is a markup language. You can't do it with JavaScript either.
You can do it with CGI or other server-side technologies, but only for files on the server, not for files on your computer.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 4th, 2005, 09:28 PM
#3
Thread Starter
Member
Re: Changing a text file with the click of a link?
Well, that's what I meant.. but still, cant do it with html, then there's no point for me :P Thanks
-
Sep 5th, 2005, 12:57 PM
#4
Addicted Member
Re: Changing a text file with the click of a link?
If you will use a script (such as VBS / JS) inside the HTML, the data might be seen by other people. if you use sever side application, no one can get any of your data.
I've had enough with sainity!
What's the use of it anyway?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|