Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: alt.computer,comp.lang.javascript,sci.electronics.design Subject: Re: How get windows FIND() to work? Date: Tue, 4 Aug 2020 04:49:22 +0200 Lines: 38 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: individual.net qulHaLypIyUOw+wV/iv7UQU1+4vEGoemTmnQehtG4L4V24AhKS Cancel-Lock: sha1:LXl31AkccUL/9tBQauBozAY7x5E= In-Reply-To: Xref: csiph.com alt.computer:11873 comp.lang.javascript:38636 sci.electronics.design:597095 Robert Baer: > Environment: Win7.1 Firefox 78 > > Sample line used: > Downhole Measurements > > At least execution transfers from the calling HTML to the desired > destination HTML. > > BUT. the keyword does NOT get underlined or highlighted in any way. If course not. Why should adding "?find=able" do that? Technically calling "downhole-measurements.html?find=able" will just open the document referred by "downhole-measurements.html" and pass the querystring "find=able" to the server. If the document was opened locally as file and not via HTTP then adding "?find=able" does nothing at all. > It would be particularly nice if all the keywords got highlighted > and the first keyword was presented on the screen (think loong document > and keyword was in middle). Then you need to build some server side script which reads the document and *adds* elements to highlight the places where the searched text was found. For example if you use PHP on the server the URL could be: find.php?document=downhole-measurements.html&text=able Then the script "find.php" will get the paramters "document" and "text", where "document" tells it which file to read and "text" which text to search for. -- Arno Welzel https://arnowelzel.de