Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-27-2005, 05:14 PM   PM User | #1
j00w00t
New to the CF scene

 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
j00w00t is an unknown quantity at this point
HTML input

i need to read in text from a text file and input it to my current webpage.
i can't seem to come up with the code for it and any help would be greatly appreciated. thanks.
j00w00t is offline   Reply With Quote
Old 05-27-2005, 09:29 PM   PM User | #2
Basscyst
Smokes a Lot


 
Join Date: Jul 2003
Location: CA, USA
Posts: 1,594
Thanks: 5
Thanked 20 Times in 20 Posts
Basscyst is on a distinguished road
On the server or on the client's machine?
__________________
Helping to build a bigger box. - Adam Matthews
Basscyst is offline   Reply With Quote
Old 05-27-2005, 09:31 PM   PM User | #3
Vapor
Regular Coder

 
Join Date: May 2005
Posts: 220
Thanks: 1
Thanked 2 Times in 2 Posts
Vapor is an unknown quantity at this point
When you opened your text file did you be sure to save it with the extension as .html?
Vapor is offline   Reply With Quote
Old 05-27-2005, 09:55 PM   PM User | #4
j00w00t
New to the CF scene

 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
j00w00t is an unknown quantity at this point
Quote:
Originally Posted by Basscyst
On the server or on the client's machine?
the file is on the server.
j00w00t is offline   Reply With Quote
Old 05-27-2005, 09:56 PM   PM User | #5
dannyhayes
Regular Coder

 
Join Date: Jan 2005
Location: Essex
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
dannyhayes is an unknown quantity at this point
Dunno then.
__________________
Danny Hayes
Under Construction www.hayes-design.co.uk
dannyhayes is offline   Reply With Quote
Old 05-27-2005, 09:57 PM   PM User | #6
j00w00t
New to the CF scene

 
Join Date: May 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
j00w00t is an unknown quantity at this point
Quote:
Originally Posted by vapor
When you opened your text file did you be sure to save it with the extension as .html?
i can't save it as any other. i have a program that outputs the name of the song that is currently playing into a text file. i need to read that text file into my webpage for all to see what i am listening to.
j00w00t is offline   Reply With Quote
Old 05-27-2005, 10:08 PM   PM User | #7
Basscyst
Smokes a Lot


 
Join Date: Jul 2003
Location: CA, USA
Posts: 1,594
Thanks: 5
Thanked 20 Times in 20 Posts
Basscyst is on a distinguished road
Load the text file into a hidden <iframe>. Then you can read the value out of the <iframe>. If only the name of a single song is in the file, you could even just make the frame visible and just have it display the text straight.

ex.
Code:
<iframe src="myfile.txt" style="display:none;"></iframe>
Make sense?

Basscyst
__________________
Helping to build a bigger box. - Adam Matthews

Last edited by Basscyst; 05-27-2005 at 10:11 PM..
Basscyst is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:33 PM.


Advertisement
Log in to turn off these ads.