PDA

Click to See Complete Forum and Search --> : Please Help I'm Stuck


MattJH
Dec 5th, 2000, 06:40 AM
I have a perl script on my website that obviously searches through my web pages, fine, I really need something that can search individual words, or find a word on that particular page (i.e. invoke the ctrl + F3 command).

Is there a way to invoke the ctrl + f3 in IE or is there examples of what I need on the web.

Any help would be much appreciated.


Cheers,

Matt

MattJH
Dec 5th, 2000, 06:44 AM
When you go to the "Edit" menu in Internet Explorer there is an option to 'Find (On this page) Ctrl + F'....Is there a way that I could possibly invoke this command by pressing a button on my web page (for instance).

Alternatively, have any of you creative web guys created something that could taylor to my needs!!!!


Please help.

Any advice (within reason) would be much appreciated.

Thanks in advance.

Matt.

Dec 5th, 2000, 09:37 AM
What are you trying to search?

I gather that you want to search for a specific string, but within what larger string?

From where do you expect to perform this search?

The java.lang.String class has a method "indexOf" as in indexOf(String str). This will return the index within the large string being searched where the string str occurs.

On the other hand, Perl has exhaustive pattern matching skills.

MattJH
Dec 6th, 2000, 06:27 AM
If you press Ctrl + F in Internet Explorer. A box appears called find, can I invoke this key press via a button. Or do I have to write a similar type of search function??

So, all I really want is to be able to search my website for a particular string that I type in some sort of input box and for the search facility to go directly to that 'particular string', all this has to be invoked by a button press.

Dec 6th, 2000, 11:13 AM
A) Are you saying that a web surfer will be in his/her favorite browser, go to your site, search your site for a particular string?

B) Or will YOU be the only one already on your server (web server) and you want to run a Java app to find a string in your html files?

I'm assuming you want A. There are free web search engine codes on the web to allow a user to search your site. Probably a cgi app. Go to your favorite search engine and search for "add a search engine to my website".

C) Do you want to allow a user to search the current web page that is one of your web pages already loaded in his/her browser? If this is the case, then you are assuming that user doesn't know how to use his/her browser to find a string in the current page. But you might be able to do this in javascript.

MattJH
Dec 8th, 2000, 04:46 AM
The answer is C
-------
C) Do you want to allow a user to search the current web page that is one of your web pages already loaded in his/her browser? If this is the case, then you are assuming that user doesn't know how to use his/her browser to find a string in the current page. But you might be able to do this in javascript.
--------


Where can I find some code for this kind of thing??

Thanks for your help.

Dec 14th, 2000, 03:35 PM
Perhaps RealisticGraphics's technique can help you in JavaScript.
http://forums.vb-world.net/showthread.php?threadid=44081