Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #11872 > unrolled thread

How get windows FIND() to work?

Started byRobert Baer <robertbaer@localnet.com>
First post2020-08-03 19:13 -0700
Last post2020-08-05 08:32 +0200
Articles 20 on this page of 32 — 6 participants

Back to article view | Back to alt.computer


Contents

  How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-03 19:13 -0700
    Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-04 04:49 +0200
      Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-04 20:06 -0700
        Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-05 07:55 +0200
    Re: How get windows FIND() to work? Clifford Heath <no.spam@please.net> - 2020-08-04 15:22 +1000
      Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-04 10:06 -0700
        Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-04 19:42 +0200
      Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-04 20:13 -0700
        Re: How get windows FIND() to work? Clifford Heath <no.spam@please.net> - 2020-08-05 19:56 +1000
          Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-05 13:54 +0200
            Re: How get windows FIND() to work? Clifford Heath <no.spam@please.net> - 2020-08-05 21:55 +1000
              Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-05 15:40 +0200
                Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-06 12:27 -0700
                  Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-07 14:09 +0200
              Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-06 12:24 -0700
            Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-06 12:23 -0700
          Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-06 12:16 -0700
    Re: How get windows FIND() to work? "R.Wieser" <address@not.available> - 2020-08-04 09:10 +0200
      Re: How get windows FIND() to work? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-08-04 23:46 +0200
        Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-04 20:21 -0700
          Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-05 07:56 +0200
            Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-06 11:40 -0700
              Re: How get windows FIND() to work? Arno Welzel <usenet@arnowelzel.de> - 2020-08-07 14:26 +0200
        Re: How get windows FIND() to work? "R.Wieser" <address@not.available> - 2020-08-05 08:59 +0200
          Re: How get windows FIND() to work? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-08-06 01:11 +0200
        Re: How get windows FIND() to work? Clifford Heath <no.spam@please.net> - 2020-08-06 11:36 +1000
          Re: How get windows FIND() to work? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-08-06 12:24 +0200
            Re: How get windows FIND() to work? Robert Baer <robertbaer@localnet.com> - 2020-08-06 12:40 -0700
              Re: How get windows FIND() to work? "R.Wieser" <address@not.available> - 2020-08-07 10:27 +0200
              Re: How get windows FIND() to work? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-08-08 04:39 +0200
            Re: How get windows FIND() to work? Clifford Heath <no.spam@please.net> - 2020-08-07 18:46 +1000
    Highlighting text (was: How get windows FIND() to work?) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-08-05 08:32 +0200

Page 1 of 2  [1] 2  Next page →


#11872 — How get windows FIND() to work?

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-03 19:13 -0700
SubjectHow get windows FIND() to work?
Message-ID<kv3WG.33452$RN.31186@fx13.iad>
   Environment: Win7.1 Firefox 78

    Sample line used:
<a href="downhole-measurements.html?find=able">Downhole Measurements</a>

    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.
    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).

   Help?

[toc] | [next] | [standalone]


#11873

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-04 04:49 +0200
Message-ID<hos0lkFaglnU1@mid.individual.net>
In reply to#11872
Robert Baer:

>    Environment: Win7.1 Firefox 78
> 
>     Sample line used:
> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
> 
>     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

[toc] | [prev] | [next] | [standalone]


#11882

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-04 20:06 -0700
Message-ID<CmpWG.247013$0W4.225640@fx42.iad>
In reply to#11873
Arno Welzel wrote:
> Robert Baer:
> 
>>     Environment: Win7.1 Firefox 78
>>
>>      Sample line used:
>> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
>>
>>      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.
> 
   Sounds like that approach requires me to edit a few thousand FINDs at 
minimum.
   What added fuss is required for the document?

   Also, what does this find.php script look like?

    Thamks

[toc] | [prev] | [next] | [standalone]


#11885

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-05 07:55 +0200
Message-ID<houvueFtpm8U1@mid.individual.net>
In reply to#11882
Robert Baer:

> Arno Welzel wrote:
>> Robert Baer:
>>
>>>     Environment: Win7.1 Firefox 78
>>>
>>>      Sample line used:
>>> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
>>>
>>>      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.
>>
>    Sounds like that approach requires me to edit a few thousand FINDs at 
> minimum.
>    What added fuss is required for the document?
> 
>    Also, what does this find.php script look like?

It will open the file, read the content, does a strpos() on the search
term and add <span class="found">...</span> around the found word. You
may also need to add the "found" CSS rule like this:

.found {
  background-color: #ff0;
}

If you want to keep the URL "downhole-measurements.html?find=able" you
can also do this with a script in the document itself which takes the
URL (window.location.href), extracts the "find" parameter and calls
either window.find() or walks the DOM tree to add a <span
class="found">...</span> around the search hits - but in any case you
need *code* to do the finding. There is no solution which just works by
adding something to the URL.

-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#11874

FromClifford Heath <no.spam@please.net>
Date2020-08-04 15:22 +1000
Message-ID<mg6WG.247317$eN2.214699@fx47.iad>
In reply to#11872
On 4/8/20 12:13 pm, Robert Baer wrote:
>    Environment: Win7.1 Firefox 78
> 
>     Sample line used:
> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
> 
>     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.
>     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).

You won't get highlighting without adding Javascript.

I suggest you use a fragment identifier:

<a href="downhole-measurements.html#able">Downhole Measurements</a>

because that gets passed to the browser, which will scroll to the 
matching <a name="able"> tag. The fragment string is also available to 
Javascript by using

var fragment = location.hash; // Returns '#able'

You could use that to highlight the appropriate text.

Clifford Heath.

[toc] | [prev] | [next] | [standalone]


#11877

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-04 10:06 -0700
Message-ID<VAgWG.100527$Vp4.97068@fx44.iad>
In reply to#11874
Clifford Heath wrote:
> On 4/8/20 12:13 pm, Robert Baer wrote:
>>    Environment: Win7.1 Firefox 78
>>
>>     Sample line used:
>> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
>>
>>     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.
>>     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).
> 
> You won't get highlighting without adding Javascript.
> 
> I suggest you use a fragment identifier:
> 
> <a href="downhole-measurements.html#able">Downhole Measurements</a>
> 
> because that gets passed to the browser, which will scroll to the 
> matching <a name="able"> tag. The fragment string is also available to 
> Javascript by using
> 
> var fragment = location.hash; // Returns '#able'
> 
> You could use that to highlight the appropriate text.
> 
> Clifford Heath.
   Does not that require EVERY instance of "able" in every document to 
be tagged?
   Or at minimum, the first instance to be tagged?

   MUCH easier and saner to (somehow) get the browser FIND() to do its 
thing; even IE8 dew that.

  Thanks

[toc] | [prev] | [next] | [standalone]


#11879

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-04 19:42 +0200
Message-ID<hotkvkFl7s3U3@mid.individual.net>
In reply to#11877
Robert Baer:

> Clifford Heath wrote:
>> On 4/8/20 12:13 pm, Robert Baer wrote:
>>>    Environment: Win7.1 Firefox 78
>>>
>>>     Sample line used:
>>> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
>>>
>>>     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.
>>>     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).
>>
>> You won't get highlighting without adding Javascript.
>>
>> I suggest you use a fragment identifier:
>>
>> <a href="downhole-measurements.html#able">Downhole Measurements</a>
>>
>> because that gets passed to the browser, which will scroll to the 
>> matching <a name="able"> tag. The fragment string is also available to 
>> Javascript by using
>>
>> var fragment = location.hash; // Returns '#able'
>>
>> You could use that to highlight the appropriate text.
>>
>> Clifford Heath.
>    Does not that require EVERY instance of "able" in every document to 
> be tagged?
>    Or at minimum, the first instance to be tagged?

No.

You still need to write *code* to do this.

>    MUCH easier and saner to (somehow) get the browser FIND() to do its 
> thing; even IE8 dew that.

Then do it. What did you try so far? What's your problem with it?



-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#11883

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-04 20:13 -0700
Message-ID<JtpWG.83602$lI.57095@fx22.iad>
In reply to#11874
Clifford Heath wrote:
> On 4/8/20 12:13 pm, Robert Baer wrote:
>>    Environment: Win7.1 Firefox 78
>>
>>     Sample line used:
>> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
>>
>>     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.
>>     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).
> 
> You won't get highlighting without adding Javascript.
> 
> I suggest you use a fragment identifier:
> 
> <a href="downhole-measurements.html#able">Downhole Measurements</a>
> 
> because that gets passed to the browser, which will scroll to the 
> matching <a name="able"> tag. The fragment string is also available to 
> Javascript by using
> 
> var fragment = location.hash; // Returns '#able'
> 
> You could use that to highlight the appropriate text.
> 
> Clifford Heath.
   You mean "without adding Javascript" refers to the document.
   Adding matching <a name="able"> tags all over the document is not 
sane; there are thousands of words needed to be found/highlighted.

   Better to get the browser to do its thing; even IE8 does a nice 
brwser FIND().


    Thanks

[toc] | [prev] | [next] | [standalone]


#11889

FromClifford Heath <no.spam@please.net>
Date2020-08-05 19:56 +1000
Message-ID<hnvWG.290236$PN2.221940@fx48.iad>
In reply to#11883
On 5/8/20 1:13 pm, Robert Baer wrote:
> Clifford Heath wrote:
>> On 4/8/20 12:13 pm, Robert Baer wrote:
>>>    Environment: Win7.1 Firefox 78
>>>
>>>     Sample line used:
>>> <a href="downhole-measurements.html?find=able">Downhole Measurements</a>
>>>
>>>     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.
>>>     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).
>>
>> You won't get highlighting without adding Javascript.
>>
>> I suggest you use a fragment identifier:
>>
>> <a href="downhole-measurements.html#able">Downhole Measurements</a>
>>
>> because that gets passed to the browser, which will scroll to the 
>> matching <a name="able"> tag. The fragment string is also available to 
>> Javascript by using
>>
>> var fragment = location.hash; // Returns '#able'
>>
>> You could use that to highlight the appropriate text.
>>
>> Clifford Heath.
>    You mean "without adding Javascript" refers to the document.
>    Adding matching <a name="able"> tags all over the document is not 
> sane; there are thousands of words needed to be found/highlighted.
> 
>    Better to get the browser to do its thing; even IE8 does a nice 
> brwser FIND().

I know of no standard way that find-in-page behaviour can be automated.

CH

[toc] | [prev] | [next] | [standalone]


#11890

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-05 13:54 +0200
Message-ID<hovkvjF3hv9U1@mid.individual.net>
In reply to#11889
Clifford Heath:

> On 5/8/20 1:13 pm, Robert Baer wrote:
[...]
>>    Better to get the browser to do its thing; even IE8 does a nice 
>> brwser FIND().
> 
> I know of no standard way that find-in-page behaviour can be automated.

That was already mentioned:
<https://developer.mozilla.org/en-US/docs/Web/API/Window/find>


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#11891

FromClifford Heath <no.spam@please.net>
Date2020-08-05 21:55 +1000
Message-ID<j7xWG.59625$BL.50325@fx16.iad>
In reply to#11890
On 5/8/20 9:54 pm, Arno Welzel wrote:
> Clifford Heath:
> 
>> On 5/8/20 1:13 pm, Robert Baer wrote:
> [...]
>>>     Better to get the browser to do its thing; even IE8 does a nice
>>> brwser FIND().
>>
>> I know of no standard way that find-in-page behaviour can be automated.
> 
> That was already mentioned:
> <https://developer.mozilla.org/en-US/docs/Web/API/Window/find>

What part of "no standard way" is difficult to understand?

[toc] | [prev] | [next] | [standalone]


#11892

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-05 15:40 +0200
Message-ID<hovr6vFbgvU3@mid.individual.net>
In reply to#11891
Clifford Heath:

> On 5/8/20 9:54 pm, Arno Welzel wrote:
>> Clifford Heath:
>>
>>> On 5/8/20 1:13 pm, Robert Baer wrote:
>> [...]
>>>>     Better to get the browser to do its thing; even IE8 does a nice
>>>> brwser FIND().
>>>
>>> I know of no standard way that find-in-page behaviour can be automated.
>>
>> That was already mentioned:
>> <https://developer.mozilla.org/en-US/docs/Web/API/Window/find>
> 
> What part of "no standard way" is difficult to understand?

Did I claim, that this is standard?


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#11900

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-06 12:27 -0700
Message-ID<oQYWG.249814$eN2.234577@fx47.iad>
In reply to#11892
Arno Welzel wrote:
> Clifford Heath:
> 
>> On 5/8/20 9:54 pm, Arno Welzel wrote:
>>> Clifford Heath:
>>>
>>>> On 5/8/20 1:13 pm, Robert Baer wrote:
>>> [...]
>>>>>      Better to get the browser to do its thing; even IE8 does a nice
>>>>> brwser FIND().
>>>>
>>>> I know of no standard way that find-in-page behaviour can be automated.
>>>
>>> That was already mentioned:
>>> <https://developer.mozilla.org/en-US/docs/Web/API/Window/find>
>>
>> What part of "no standard way" is difficult to understand?
> 
> Did I claim, that this is standard?
> 
> 
   May i quote DIRECTLY from that site:
*QUOTE*
Non-standard
This feature is non-standard and is not on a standards track. Do not use 
it on production sites facing the Web: it will not work for every user. 
There may also be large incompatibilities between implementations and 
the behavior may change in the future.

Note: Support for Window.find() might change in future versions of 
Gecko. See bug 672395.
*END QUOTE*

[toc] | [prev] | [next] | [standalone]


#11904

FromArno Welzel <usenet@arnowelzel.de>
Date2020-08-07 14:09 +0200
Message-ID<hp4uiuF2c2sU1@mid.individual.net>
In reply to#11900
Robert Baer:

> Arno Welzel wrote:
>> Clifford Heath:
>>
>>> On 5/8/20 9:54 pm, Arno Welzel wrote:
>>>> Clifford Heath:
>>>>
>>>>> On 5/8/20 1:13 pm, Robert Baer wrote:
>>>> [...]
>>>>>>      Better to get the browser to do its thing; even IE8 does a nice
>>>>>> brwser FIND().
>>>>>
>>>>> I know of no standard way that find-in-page behaviour can be automated.
>>>>
>>>> That was already mentioned:
>>>> <https://developer.mozilla.org/en-US/docs/Web/API/Window/find>
>>>
>>> What part of "no standard way" is difficult to understand?
>>
>> Did I claim, that this is standard?
>>
>>
>    May i quote DIRECTLY from that site:
> *QUOTE*
> Non-standard

Exactly!

I did never say, that this is standard. I mentioned it so it is clear
that this is NOT standard!


-- 
Arno Welzel
https://arnowelzel.de

[toc] | [prev] | [next] | [standalone]


#11899

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-06 12:24 -0700
Message-ID<uNYWG.107334$TO4.28125@fx05.iad>
In reply to#11891
Clifford Heath wrote:
> On 5/8/20 9:54 pm, Arno Welzel wrote:
>> Clifford Heath:
>>
>>> On 5/8/20 1:13 pm, Robert Baer wrote:
>> [...]
>>>>     Better to get the browser to do its thing; even IE8 does a nice
>>>> brwser FIND().
>>>
>>> I know of no standard way that find-in-page behaviour can be automated.
>>
>> That was already mentioned:
>> <https://developer.mozilla.org/en-US/docs/Web/API/Window/find>
> 
> What part of "no standard way" is difficult to understand?
   Talk to "moz".

[toc] | [prev] | [next] | [standalone]


#11898

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-06 12:23 -0700
Message-ID<DMYWG.107333$TO4.102461@fx05.iad>
In reply to#11890
Arno Welzel wrote:
> Clifford Heath:
> 
>> On 5/8/20 1:13 pm, Robert Baer wrote:
> [...]
>>>     Better to get the browser to do its thing; even IE8 does a nice
>>> brwser FIND().
>>
>> I know of no standard way that find-in-page behaviour can be automated.
> 
> That was already mentioned:
> <https://developer.mozilla.org/en-US/docs/Web/API/Window/find>
> 
> 
...and....i also mentioned to add all that in every document for 
thousands of keywords into a goodly batch of documents is not exactly sane.

   Thanks

[toc] | [prev] | [next] | [standalone]


#11897

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-06 12:16 -0700
Message-ID<ZFYWG.171924$%p.18563@fx33.iad>
In reply to#11889
Clifford Heath wrote:
> On 5/8/20 1:13 pm, Robert Baer wrote:
>> Clifford Heath wrote:
>>> On 4/8/20 12:13 pm, Robert Baer wrote:
>>>>    Environment: Win7.1 Firefox 78
>>>>
>>>>     Sample line used:
>>>> <a href="downhole-measurements.html?find=able">Downhole 
>>>> Measurements</a>
>>>>
>>>>     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.
>>>>     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).
>>>
>>> You won't get highlighting without adding Javascript.
>>>
>>> I suggest you use a fragment identifier:
>>>
>>> <a href="downhole-measurements.html#able">Downhole Measurements</a>
>>>
>>> because that gets passed to the browser, which will scroll to the 
>>> matching <a name="able"> tag. The fragment string is also available 
>>> to Javascript by using
>>>
>>> var fragment = location.hash; // Returns '#able'
>>>
>>> You could use that to highlight the appropriate text.
>>>
>>> Clifford Heath.
>>    You mean "without adding Javascript" refers to the document.
>>    Adding matching <a name="able"> tags all over the document is not 
>> sane; there are thousands of words needed to be found/highlighted.
>>
>>    Better to get the browser to do its thing; even IE8 does a nice 
>> brwser FIND().
> 
> I know of no standard way that find-in-page behaviour can be automated.
> 
> CH
> 
   Other than "forcing" a browser to doa nominally manual search, that 
seems to be true.

   However, the grand expert Thomas 'PointedEars' Lahn may have given us 
highlight.js as an answer

     Thanks

[toc] | [prev] | [next] | [standalone]


#11875

From"R.Wieser" <address@not.available>
Date2020-08-04 09:10 +0200
Message-ID<rgb1m6$18k6$1@gioia.aioe.org>
In reply to#11872
Robert,

>    Sample line used:
> < a href="downhole-measurements.html?find=able">Downhole Measurements< /a>

I think you are looking for

< a href="downhole-measurements.html#able">Downhole Measurements< /a>

with in that "downhole-measurements.html" document the following line just
above the "able" chapter

< a name="able">

(remove the spaces after the "<" symbols)

Regards,
Rudy Wieser


[toc] | [prev] | [next] | [standalone]


#11881

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2020-08-04 23:46 +0200
Message-ID<XnsAC0FF1EBE7D62eejj99@194.109.6.166>
In reply to#11875
"R.Wieser" <address@not.available> wrote on 04 Aug 2020 in 
comp.lang.javascript:

> Robert,
> 
>>    Sample line used:
>> < a href="downhole-measurements.html?find=able">Downhole Measurements
< /a>
> 
> I think you are looking for
> 
> < a href="downhole-measurements.html#able">Downhole Measurements< /a>
> 
> with in that "downhole-measurements.html" document the following line just
> above the "able" chapter
> 
> < a name="able">
> 
> (remove the spaces after the "<" symbols)
> 
> Regards,
> Rudy Wieser

Google Chrome 84 and up, desktop and mobile,
let you highlight "This text" from the url-string:

https://example.org/page.html#:~:text=This%20text




-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

[toc] | [prev] | [next] | [standalone]


#11884

FromRobert Baer <robertbaer@localnet.com>
Date2020-08-04 20:21 -0700
Message-ID<1BpWG.140475$7vd.62888@fx35.iad>
In reply to#11881
Evertjan. wrote:
> "R.Wieser" <address@not.available> wrote on 04 Aug 2020 in
> comp.lang.javascript:
> 
>> Robert,
>>
>>>     Sample line used:
>>> < a href="downhole-measurements.html?find=able">Downhole Measurements
> < /a>
>>
>> I think you are looking for
>>
>> < a href="downhole-measurements.html#able">Downhole Measurements< /a>
>>
>> with in that "downhole-measurements.html" document the following line just
>> above the "able" chapter
>>
>> < a name="able">
>>
>> (remove the spaces after the "<" symbols)
>>
>> Regards,
>> Rudy Wieser
> 
> Google Chrome 84 and up, desktop and mobile,
> let you highlight "This text" from the url-string:
> 
> https://example.org/page.html#:~:text=This%20text
> 
> 
> 
> 
    Even IE8 FIND() works; highlights all found keywords dynamically, 
allows previous/next.
    Seems most browsers support this rather well.

    Thanks

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | alt.computer


csiph-web