Searching for text on the same page

J

JM

Hello to all,

I am trying to create a button to search for text on the same page (not the
whole website!). The search string is to be provided by the user.
Normally, most users would choose Edit then Find on the IE menu. I would
like to do either of the following:
-Create a button within the webpage that runs the menu item Edit/Find. OR
-Create a text box with Find and Reset buttons
Anybody out there with a solution?
 
J

Jim Buyens

-----Original Message-----
Hello to all,
Howdy.

I am trying to create a button to search for text on the
same page (not the whole website!). The search string
is to be provided by the user. Normally, most users
would choose Edit then Find on the IE menu. I would
like to do either of the following:
-Create a button within the webpage that runs the menu
item Edit/Find. OR
-Create a text box with Find and Reset buttons

I'm not aware of a way to do what you describe. Here are
some alternatives:

o Split your page into several smaller pages, organized
so that your visitors can easily guess which page
contains the information they want. Then, make the
individual pages short enough to search visually.

o Same as above, but offers some bookmark hyperlinks as
well.

o Put all the searchable information in a database, and
then search the database.

o Trust your visitors to discover the Edit, Find
command. If they can't find that command, chances are
they won't find your one-of-a-kind gizmo either.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
J

JM

Jim Buyens said:
I'm not aware of a way to do what you describe. Here are
some alternatives:

o Split your page into several smaller pages, organized
so that your visitors can easily guess which page
contains the information they want. Then, make the
individual pages short enough to search visually.

o Same as above, but offers some bookmark hyperlinks as
well.

o Put all the searchable information in a database, and
then search the database.

o Trust your visitors to discover the Edit, Find
command. If they can't find that command, chances are
they won't find your one-of-a-kind gizmo either.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------

Thanks for the tips.

JM
 
S

Stefan B Rusynko

Try this JavaScript approach
http://javascript.internet.com/messages/find-in-page.html




| | > >-----Original Message-----
| > >Hello to all,
| >
| > Howdy.
| >
| > >I am trying to create a button to search for text on the
| > >same page (not the whole website!). The search string
| > >is to be provided by the user. Normally, most users
| > >would choose Edit then Find on the IE menu. I would
| > >like to do either of the following:
| > >-Create a button within the webpage that runs the menu
| > > item Edit/Find. OR
| > >-Create a text box with Find and Reset buttons
| >
| > I'm not aware of a way to do what you describe. Here are
| > some alternatives:
| >
| > o Split your page into several smaller pages, organized
| > so that your visitors can easily guess which page
| > contains the information they want. Then, make the
| > individual pages short enough to search visually.
| >
| > o Same as above, but offers some bookmark hyperlinks as
| > well.
| >
| > o Put all the searchable information in a database, and
| > then search the database.
| >
| > o Trust your visitors to discover the Edit, Find
| > command. If they can't find that command, chances are
| > they won't find your one-of-a-kind gizmo either.
| >
| > Jim Buyens
| > Microsoft FrontPage MVP
| > http://www.interlacken.com
| > Author of:
| > *----------------------------------------------------
| > |\---------------------------------------------------
| > || Microsoft Office FrontPage 2003 Inside Out
| > ||---------------------------------------------------
| > || Web Database Development Step by Step .NET Edition
| > || Microsoft FrontPage Version 2002 Inside Out
| > || Faster Smarter Beginning Programming
| > || (All from Microsoft Press)
| > |/---------------------------------------------------
| > *----------------------------------------------------
| >
|
| Thanks for the tips.
|
| JM
|
|
 
M

Mr. B

You can just do a windows.find("text") type thing with some simple Javascript

Do a search for "javascript find" or something like that in google an dyou'll find a bunch. Some are overly advanced and just depend on how fancy you want to get

Basically you'd have a form with one box and one button. They can type their text in the box and then click the button. On the button you'd have something like onClick="windows.find(document.formname.boxname.value)

I'm sure that's not totally right but you get the general idea..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top