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


Groups > comp.lang.javascript > #38598

Re: alternate way?

Subject Re: alternate way?
Newsgroups alt.computer, comp.lang.javascript
References <ETpRG.61533$lI.623@fx22.iad> <bgyh0u5kv87e$.tdjjlisi0tdb.dlg@40tude.net> <wNvSG.170651$AN2.151955@fx46.iad> <XnsAC04634FA10Feejj99@194.109.6.166>
From Robert Baer <robertbaer@localnet.com>
Message-ID <PsGSG.70970$bQ4.38498@fx04.iad> (permalink)
Date 2020-07-24 12:16 -0700

Cross-posted to 2 groups.

Show all headers | View raw


Evertjan. wrote:
> Robert Baer <robertbaer@localnet.com> wrote on 24 Jul 2020 in
> comp.lang.javascript:
> 
>> JJ wrote:
>>> On Mon, 20 Jul 2020 16:36:01 -0700, Robert Baer wrote:
>>>>      I have some stupid ideas to use javascrpt to (incrementally) read
>>>>      and
>>>> parse an array.
>>>>
>>>>      The bad thing is that file is OUTSIDE any javascript function and
>>>>      i
>>>> see no way to do a generic? "capture"/read/access of data.
>>>>
>>>>      Ideas?
>>>>
>>>> Thanks
>>>
>>> If the file is in the local computer, you can not use a web browser to
>>> fully automate the whole process. With a web browser, the user will
>>> need to manually select the file. i.e. user interaction is needed. This
>>> includes making the result of the process available to application
>>> outside of the web browser application.
>>>
>>> I'd suggest using Node.js, HTML Application, or Windows Script Host. Or
>>> just the latter two if you don't want to download any additional
>>> software.
>>>
>>     OK, scratch all of that bushwah.
>>
>>     How about user picking out [from a selection] a "keyword' (which will
>> be one word) and having a magic combination of simple HTML, CSS, and js
>> to pass that onto the browser keyboard find function [as if one had done
>> a <ctrl>f and then typed in that "keyword"]?
> 
> "magic" exists only in your mind, and "alternate" reminds me of homeopathy.
> 
> A browser page, inclusive of on plage javascript, is not allowed to access
> local files on the client computer.
* Excuse me, even using WinXP IE8 which is so good it cannot find a 
grain of sand even while sitting on the Sahara desert does this as follows:
   eXplicitly URL a file (on your computer or whatever), while looking 
at the file, do a <ctrl>f ; see a browser find box and start typing a 
word; notice as typing that is highlighted. Select "highlight all" and a 
second color is used to highlight all other instances.

* Also works same way Win7 IE11, Firefox, etc.

> 
> Perhaps you can explain what you really want?
* I did.
   I want a program that will do exactly that without one having to 
press keys (the Ctrl key, the F key, tose comprising the "keyword").
   A calling program will pass the "keyword" to this one, and 
appropriate highlighting will show depending if (running now) the search 
previous/next arrows are used, or "highlight all" is used.

     Thanks

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 00:08 -0700
  Re: alternate way? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-07-24 09:45 +0200
    Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 12:16 -0700
      Re: alternate way? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-07-25 14:42 +0200
        Re: alternate way? Richard Damon <Richard@Damon-Family.org> - 2020-07-25 20:20 -0400
        Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-08-03 15:01 -0700
  Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-24 19:27 +0700
    Re: alternate way? Robert Baer <robertbaer@localnet.com> - 2020-07-24 12:21 -0700
      Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-25 20:06 +0700
        Re: alternate way? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-07-25 11:29 -0700
          Re: alternate way? JJ <jj4public@vfemail.net> - 2020-07-26 20:42 +0700
          Re: alternate way? Arno Welzel <usenet@arnowelzel.de> - 2020-08-04 04:38 +0200
            Re: alternate way? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-08-03 19:43 -0700
    Re: alternate way? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2020-07-25 00:57 +0200

csiph-web