|
| |
|
|
salacy
Posts: 6 From: Houston, TX USA Status: offline
|
Finding Text In A File - 4/2/2001 23:59:00
Here is my situation. I am linking to an external text file over which I have no control. I would like to have the file open in the browser and then automatically scroll down to a location in the file based on a word or string in the file. Sort of like an automated edit/search. Is this possible?Thanks in advance. Scott
|
|
|
|
Thomas Brunt
Posts: 6118 Joined: 6/6/1998 From: St. Matthews SC USA Status: offline
|
RE: Finding Text In A File - 4/2/2001 16:54:00
It has to be a html file to do that. It's easy then.You just create a bookmark on the html page and then link to file.htm#bookmarkname.
|
|
|
|
salacy
Posts: 6 From: Houston, TX USA Status: offline
|
RE: Finding Text In A File - 4/2/2001 17:39:00
quote: Originally posted by Thomas Brunt: It has to be a html file to do that. It's easy then.You just create a bookmark on the html page and then link to file.htm#bookmarkname.
Yes, I know about bookmarks. This text file I am linking to is external to my web. I cannot edit the text. I am looking for some code that will search the text file once someone opens it from my hyperlink.
|
|
|
|
Spooky
Posts: 26617 Joined: 11/11/1998 From: Middle Earth Status: offline
|
RE: Finding Text In A File - 4/2/2001 20:34:00
I dont think there is a reasonable way to do it with external files?Suggest the user presses CTRL "f" ?
|
|
|
|
salacy
Posts: 6 From: Houston, TX USA Status: offline
|
RE: Finding Text In A File - 4/5/2001 20:38:00
quote: Originally posted by Spooky: I dont think there is a reasonable way to do it with external files?Suggest the user presses CTRL "f" ?
The way I am currently handling is by instructing the user to "scroll down to article #....". Not an elegant solution. Surely there must be a programmatic way to search or extract text from an external source by keyword.
|
|
|
|
Spooky
Posts: 26617 Joined: 11/11/1998 From: Middle Earth Status: offline
|
RE: Finding Text In A File - 4/5/2001 20:56:00
Not that Im aware of. (being external)Possibly some server based components can rip off and parse the text from a web page and reformat the results, but I havent used any myself....
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|