Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URGENT!! Selecting text from an html page

Status
Not open for further replies.

walderr

Programmer
Jul 18, 2003
32
GB
Is there any way of copying a portion of text from an html page and including it as a variable?

I have a set of reports in html which I am using a web page to add to and update. When updating, I need to take text from two areas of the html page for the relevant report and insert it into two multiple line text boxes for modifying. It may not be possible, but suggestions are welcome! Thanks
 
You mean that you have an html and you want to update those fields into database or into an html?

________
George, M
 
Why not put the text into <TEXTAREA> tags?

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook
 
Shaddow: I have an html document and I want to both update the text in that via a different (asp) web page, as well as updating a database with some of that information. However some of the sections of text are too large to fit in a database, so they sit in the html ONLY.

mwolf00: What would happen if I put the text in text <area tags>? I'm not sure what it does/ how it would help me.
 
<textarea>Text Here <%=TextHere%></textarea>

Known is handfull, Unknown is worldfull
 
That won't work, if I understand correctly, as the reports are html and not asp, so the <%=TextHere%> won't have any effect. Or am I missing the point?
 
Just realised I'm being dense... I know perfectly well what textarea tags are, as I'm using them on the update page. The problem is that I have no way of populating the <%=TextHere%> from the html document.
 
yup that was stupid of me, but i was just trying to tell how a textarea works...

Known is handfull, Unknown is worldfull
 
You mean you want the info from the html file? where is the html stored, database?

________
George, M
 
The html code isn't stored anywhere as such, it just sits as a document on a server. I'm starting to get the feeling I've asked the impossible here, so I might have to try other options!
 
It's not imposible but i have the feeling you want to be able to display and change the file content.



________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top