Results 1 to 4 of 4

Thread: Changing a text file with the click of a link?

  1. #1

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    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:
    1. <ASX Version="3.0">
    2. <title>NAME OF MUSIC LIST</title>
    3. <entry>
    4. <title>NAME OF SONG</title>
    5. <author>NAME OF ARTIST</author>
    6. <Ref href="THE URL OF THE MUSIC FILE"/>
    7. </entry>
    8. </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:
    1. <ASX Version="3.0">
    2. <title>Green Day</title>
    3. <entry>
    4. <title>American Idiot</title>
    5. <author>Green Day</author>
    6. <Ref href="http://www.server.com/greenday-americanidiot.mp3"/>
    7. </entry>
    8. </asx>



    So is there any way I can do this with html?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  3. #3

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    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

  4. #4
    Addicted Member Lemon Lime's Avatar
    Join Date
    Jul 2000
    Location
    Space, the final frontier, go along the yellow brick road,turn left then left again. In the service window, ask for the insane dude.
    Posts
    167

    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
  •  



Click Here to Expand Forum to Full Width