Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 204
  • Last Modified:

can text files be loaded in to textboxes?

how do you load a text file in to a textbox, by clicking a link or button?
0
_nin_
Asked:
_nin_
  • 5
  • 2
  • 2
1 Solution
 
chewymonCommented:
The easiest way is to copy the text file and paste it in.
0
 
martinagCommented:
chwymon, I think _nin_ want it to be inserted automatically, without having to open it in Notepad etc.

_nin_, Is the file at the users hard disk or at the server?

Martin
0
 
_nin_Author Commented:
i want links that when they are clicked by someone visiting the webpage, they automatically change the text in the textbox to the text in text files that i uploaded onto the server

0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
_nin_Author Commented:
would it be easier to put text in the html, instead of using individual text files?

i'll have a lot of text, so if i put it all in the html, it'll be a really big file
0
 
martinagCommented:
Is it ok if the page is reloaded?
Otherwise, as you say, the file will be really big.

Martin
0
 
_nin_Author Commented:
the page can be reloaded, but i would like for it to reload it as little as possible, because its on tripod and tripod has those popup windows that load every time you reload the page
0
 
_nin_Author Commented:
my webpage displays tablature and lyrics, how my page is now i have links to the text files, so when the links are clicked, the text files are loaded as a webpage, i want to change it so that everything is on the same page, by displaying the text files in a textbox instead of on a different page

i would use frames to do it, but when a page is loaded, tripod loads a popup window
0
 
chewymonCommented:
You should reject my answer so others can answer.  You might post this in the JavaScript section.  It is probably possible with a onClick event handler.
0
 
_nin_Author Commented:
sorry, i accidently accepted the answer, i'm new to this, so i don't much about it

i reposted the question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 5
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now