This is a discussion on "Grabbing text from a file" within the JavaScript Forum section. This forum, and the thread "Grabbing text from a file are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Grabbing text from a file
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Grabbing text from a file
Hi I have a webform and it has three radio buttons. The buttons are labelled 1, 2 and 3. Only one can be selected at once. In the same folder as I keep the htm file I have three text files they are named 1.txt, 2.txt and 3.txt, the contents of these change from time to time. What i would like to do is be able to click on a radio button and then have the contents of the corresponding text file fill in a textarea box.
Any help much appreciated. Thanks Rob |
|
|
|
#2
|
|||
|
|||
|
Re: Grabbing text from a file
I am thinking this is not actually possible BUT-
I arent using this on the internet I am using it on my own PC, so I dont mind putting the text in .js files instead - Is it then possible to reference the text in these and do as i mention in my first post? Thanks, |
|
#3
|
||||
|
||||
|
Re: Grabbing text from a file
sure it's possible. You'll want to look into AJAX. I prefer Mootools. The beta is pretty stable, and has much better documentation.
__________________
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed | Learning PHP? Lessons
Last Blog Entry: Hilarious Rapper (Jul 29th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating a log file (text file) and an XML file using XSL | kdelacruz | Other Programming Languages | 1 | Nov 4th, 2006 21:12 |
| Is it possible to use an external text file for a variable | AdRock | JavaScript Forum | 2 | Sep 15th, 2006 17:25 |
| Writing to a text file | Gurpreet82 | Classic ASP | 0 | Mar 15th, 2006 15:57 |
| Text file download | harlekin | Classic ASP | 2 | Dec 5th, 2005 18:23 |
| Need help with Web Page Text Grabbing | ITUser | Other Programming Languages | 3 | Aug 20th, 2005 00:21 |