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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Text Search

Status
Not open for further replies.

sanders720

Programmer
Aug 2, 2001
421
US
I have an HTML document with a table. I would like to search the table for a keyword using wildcards, and have it either move to the next criteria in the table, or isolate the rows of the table based on the selection criteria.

Search

Gear – would find Gearboxes in the second row as the first item, and move to the word GEAR accordingly – with some kind of next function to pan through the document. The problem is, how would I always have my search string box on top?

OR – Isolate the rows that contain GEAR in column 1 or 2, thus temporarily hiding the rows that do not have this information.


Table:

Company Product Description

1234 Corp Air Cylinders, Proximity Switches and Accessories
5678 Corp Motors and Gearboxes
7890 Corp Conveyors and Belts

Any ideas would be greatly appreciated.
 
Here's one: try the Javascript forum forum216.

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
Don't think so, but Javascript is basically the way to "dynamicise" (exists? sp?) HTML. HTML is by default static; it cannot be modified in most cases on a user action -- that is what Javascript is for.

--Chessbot

"In that blessed region of Four Dimensions, shall we linger on the threshold of the Fifth, and not enter therein? Ah, no! [...] Then, yielding to our intellectual onset, the gates of the Sixth Dimension shall fly open; after that a Seventh, and then an Eighth -- --" Flatland, A. Square (E. A. Abbott)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top