Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18520
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsfeed.straub-nv.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail |
|---|---|
| Content-Type | text/plain; charset="UTF-8" |
| Message-ID | <680559024.28dSeFvmuz@PointedEars.de> (permalink) |
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Reply-To | Thomas 'PointedEars' Lahn <usenet@PointedEars.de> |
| Organization | PointedEars Software (PES) |
| Date | Sun, 17 Feb 2013 13:18:24 +0100 |
| User-Agent | KNode/4.8.5 |
| Content-Transfer-Encoding | 8Bit |
| X-Face | %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v |
| Face | iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg== |
| Subject | Re: Implement offline site search? |
| Newsgroups | comp.lang.javascript |
| References | <haWdnRUFFpDr0IbMnZ2dnUVZ5uidnZ2d@giganews.com> <1605051.1mSJY5JTrl@PointedEars.de> <79CdndDtp9VePL3MnZ2dnUVZ5radnZ2d@giganews.com> |
| MIME-Version | 1.0 |
| Lines | 86 |
| NNTP-Posting-Date | 17 Feb 2013 13:18:30 CET |
| NNTP-Posting-Host | b4be7b26.newsspool2.arcor-online.net |
| X-Trace | DXC=SV[468^I>V]HigV@eW57PQA9EHlD;3YcR4Fo<]lROoRQ8kF<OcfhCO[4LhWYJTITM\DZm8W4\YJN\b@mF9jNikdU3>YBYU3JEo]jMB51SCGIA[ |
| X-Complaints-To | usenet-abuse@arcor.de |
| Xref | csiph.com comp.lang.javascript:18520 |
Show key headers only | View raw
Robert Crandal wrote: > "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message > news:1605051.1mSJY5JTrl@PointedEars.de... It is supposed to be an attribution _line_, not a novel. >> Robert Crandal wrote: >> > <http://www.netmeister.org/news/learn2quote.html> <http://jibbering.com/faq/#posting> <http://PointedEars.de/faq#posting> >> There is no Javascript. But with an ECMAScript implementation such as >> JavaScript you can, in a sufficiently recent Web browser, use an >> implementation of the XMLHttpRequest API. > > Our computer runs Windows 7 and I believe our main web browser is > Internet Explorer 8.0. It SHOULD be Internet Explorer 9 or later. > Do you think are Web browser is recent enough? Yes. > Is it possibly already equipped with this XMLHttpRequest API that you > mention? Yes. However, it is necessary to use the older ActiveX/COM variant there to access local files via “file://…” URIs. JSX:http.js automatically uses that variant there, then. >> That API, with sufficient permissions granted, allows you to GET listings >> of (local) files (the format will vary between UAs) and to GET the file >> contents via URIs. Having the files' content, you can build from that an >> index as an Object instance (preferably with empty prototype chain, or a >> collision-avoiding Map implementation such as JSX:map.js) that ultimately >> maps words (property names) to a list of files that contain them >> (references to Array instances of file names, as property values). [As >> an optimization, a previous object could also map prefixes to words.] >> >> You can store that index in serialized form in Local Storage and from >> that point forward only use the unserialized form of the index to perform >> the search until the index needs to be updated. > > Do you know where I can get a very simple example that demonstrates > how to GET listings of local files? Yes. > How about a simple example of how to GET the file contents via URIs?? > I understand many programming concepts, but I'm unfamiliar with this Web > API that you mention. Google is your friend. [psf 6.1] >> As an alternative, you can use other software to build a script resource >> with the index as an Object instance that you use for searches after you >> loaded that resource from an HTML document. An example of that can be >> found >> in SELFHTML's offline search; the code quality thereis is awful, but >> debugging that code could still help. Probably there are other, better >> implementations as this is not likely to be an uncommon problem. > > Most of the online documentation for SELFHTML that I found is printed > in the German language, which I can't read, hehe. Last I checked there was a version of SELFHTML in English and other languages, there are online translators like Google Translate which provide a sufficiently exact translation, and the relevant source code is not in German. > I doubt we'd be able to install software on this computer anyways. 8( AISB, the alternative approach used in SELFHTML is to use software other than a client-side ECMAScript implementation to generate the index on a computer where you can install software, and use that index on another computer where you can not necessarily install software. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-13 01:23 -0700
Re: Implement offline site search? Tim Slattery <Slattery_T@bls.gov> - 2013-02-13 09:04 -0500
Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-13 15:23 +0100
Re: Implement offline site search? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-13 15:33 +0100
Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-13 15:06 +0100
Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-17 02:24 -0700
Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-17 13:18 +0100
Re: Implement offline site search? John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-17 16:14 +0000
Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-17 11:54 -0700
Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-17 20:52 +0100
Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-17 15:10 -0700
Re: Implement offline site search? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-17 23:16 +0100
Re: Implement offline site search? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-18 09:54 +1100
Re: Implement offline site search? John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-18 10:17 +0000
Re: Implement offline site search? "Robert Crandal" <rcranz143101@gmail.com> - 2013-02-18 11:43 -0700
Re: Implement offline site search? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-19 06:27 +1100
Re: Implement offline site search? Andrew Poulos <ap_prog@hotmail.com> - 2013-02-19 06:33 +1100
Re: Implement offline site search? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-18 12:23 +0000
Re: Implement offline site search? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-02-13 10:23 -0700
Re: Implement offline site search? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-14 10:56 +0100
Re: Implement offline site search? John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-14 10:20 +0000
Re: Implement offline site search? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-14 11:26 +0100
Re: Implement offline site search? Wally W. <ww84wa@aim.com> - 2013-02-14 08:07 -0500
Re: Implement offline site search? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-14 22:47 +0000
Re: Implement offline site search? Scott Sauyet <scott.sauyet@gmail.com> - 2013-02-14 18:49 -0800
csiph-web