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


Groups > comp.lang.javascript > #38598

Re: alternate way?

Path csiph.com!aioe.org!peer01.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx04.iad.POSTED!not-for-mail
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>
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4
MIME-Version 1.0
In-Reply-To <XnsAC04634FA10Feejj99@194.109.6.166>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Lines 58
Message-ID <PsGSG.70970$bQ4.38498@fx04.iad> (permalink)
X-Complaints-To DMCA@thecubenet.com
NNTP-Posting-Date Fri, 24 Jul 2020 19:17:03 UTC
Date Fri, 24 Jul 2020 12:16:53 -0700
X-Received-Bytes 3347
X-Received-Body-CRC 2501483380
Xref csiph.com alt.computer:11835 comp.lang.javascript:38598

Cross-posted to 2 groups.

Show key headers only | 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