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


Groups > comp.lang.javascript > #18476 > unrolled thread

Implement offline site search?

Started by"Robert Crandal" <rcranz143101@gmail.com>
First post2013-02-13 01:23 -0700
Last post2013-02-14 18:49 -0800
Articles 20 on this page of 25 — 10 participants

Back to article view | Back to comp.lang.javascript


Contents

  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

Page 1 of 2  [1] 2  Next page →


#18476 — Implement offline site search?

From"Robert Crandal" <rcranz143101@gmail.com>
Date2013-02-13 01:23 -0700
SubjectImplement offline site search?
Message-ID<haWdnRUFFpDr0IbMnZ2dnUVZ5uidnZ2d@giganews.com>
Our website is stored on a local hard-drive on a computer
that has no Internet access.  It's basically an offline website
that only our company can use.

Is it possible to add a search feature to this website using
Javascript?  I want to let users type a search string, and
then somehow search all the HTML documents on the
hard drive for string matches, then display a new HTML
page with the search results.  Can Javascript do this?  How?

Thanks

[toc] | [next] | [standalone]


#18478

FromTim Slattery <Slattery_T@bls.gov>
Date2013-02-13 09:04 -0500
Message-ID<v87nh8dh631haahfq0k5lftojl83d7epv0@4ax.com>
In reply to#18476
"Robert Crandal" <rcranz143101@gmail.com> wrote:

>Our website is stored on a local hard-drive on a computer
>that has no Internet access. It's basically an offline website
>that only our company can use.

>Is it possible to add a search feature to this website using
>Javascript? I want to let users type a search string, and
>then somehow search all the HTML documents on the
>hard drive for string matches, then display a new HTML
>page with the search results. Can Javascript do this? How?


IMHO, Javascript is the wrong approach for this. This needs to be done
server-side, instead of having the client download all pages on the
site (which is what would have to happen).

-- 
Tim Slattery
Slattery_T@bls.gov

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


#18480

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-02-13 15:23 +0100
Message-ID<1908423.2Y9J27GeCn@PointedEars.de>
In reply to#18478
Tim Slattery wrote:

> "Robert Crandal" <rcranz143101@gmail.com> wrote:
>> Our website is stored on a local hard-drive on a computer
>> that has no Internet access. It's basically an offline website
>> that only our company can use.
>> 
>> Is it possible to add a search feature to this website using
>> Javascript? I want to let users type a search string, and
>> then somehow search all the HTML documents on the
>> hard drive for string matches, then display a new HTML
>> page with the search results. Can Javascript do this? How?
> 
> IMHO, Javascript is the wrong approach for this. This needs to be done
> server-side, instead of having the client download all pages on the
> site (which is what would have to happen).

There is no “Javascript”, and there is no server here.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


#18481

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2013-02-13 15:33 +0100
Message-ID<XnsA1669E5315E4eejj99@194.109.133.133>
In reply to#18478
Tim Slattery wrote on 13 feb 2013 in comp.lang.javascript:

> "Robert Crandal" <rcranz143101@gmail.com> wrote:
> 
>>Our website is stored on a local hard-drive on a computer
>>that has no Internet access. It's basically an offline website
>>that only our company can use.
> 
>>Is it possible to add a search feature to this website using
>>Javascript? I want to let users type a search string, and
>>then somehow search all the HTML documents on the
>>hard drive for string matches, then display a new HTML
>>page with the search results. Can Javascript do this? How?
> 
> 
> IMHO, Javascript is the wrong approach for this. This needs to be done
> server-side, instead of having the client download all pages on the
> site (which is what would have to happen).

There is no contradiction between Javascript and Serverside.

Javascript works fine, using serverside Javascript.

If you have a Windows-pc, configure a local website and implement ASP.

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

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


#18479

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-02-13 15:06 +0100
Message-ID<1605051.1mSJY5JTrl@PointedEars.de>
In reply to#18476
Robert Crandal wrote:

> Our website is stored on a local hard-drive on a computer
> that has no Internet access.  It's basically an offline website
> that only our company can use.
> 
> Is it possible to add a search feature to this website using
> Javascript?  I want to let users type a search string, and
> then somehow search all the HTML documents on the
> hard drive for string matches, then display a new HTML
> page with the search results.  Can Javascript do this?  How?

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.

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.

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.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


#18519

From"Robert Crandal" <rcranz143101@gmail.com>
Date2013-02-17 02:24 -0700
Message-ID<79CdndDtp9VePL3MnZ2dnUVZ5radnZ2d@giganews.com>
In reply to#18479
"Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message 
news:1605051.1mSJY5JTrl@PointedEars.de...
> Robert Crandal wrote:
> >
> 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.   Do you think are Web browser is recent enough?
Is it possibly already equipped with this XMLHttpRequest API that you
mention?

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

>
> 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.  I doubt we'd be able to
install software on this computer anyways.   8(

Robert

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


#18520

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-02-17 13:18 +0100
Message-ID<680559024.28dSeFvmuz@PointedEars.de>
In reply to#18519
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.

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


#18525

FromJohn G Harris <niam@jghnorth.org.uk.invalid>
Date2013-02-17 16:14 +0000
Message-ID<7sx0JCBPHQIRFwaq@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD>
In reply to#18520
In message <680559024.28dSeFvmuz@PointedEars.de>, Thomas 'PointedEars'
Lahn wrote:
>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.

But only in Germany.

Besides, he only needs to add two spaces in front of "news:" to make it
one official line.

  John
-- 
John Harris

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


#18526

From"Robert Crandal" <rcranz143101@gmail.com>
Date2013-02-17 11:54 -0700
Message-ID<39udnZOV79LWurzMnZ2dnUVZ5oKdnZ2d@giganews.com>
In reply to#18520
"Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message 
news:680559024.28dSeFvmuz@PointedEars.de...
> 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>
>


Last time I checked, nobody owns the Internet or Usenet.


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


#18527

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-02-17 20:52 +0100
Message-ID<1554589.vE7aatGJ18@PointedEars.de>
In reply to#18526
Robert Crandal wrote:

> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message
> news:680559024.28dSeFvmuz@PointedEars.de...
>> 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>
> 
> Last time I checked, nobody owns the Internet or Usenet.

Last time I checked, basic politeness towards those whom you
ask for help was not dependent on whether they own anything.

Either change your attitude or go away, please.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


#18528

From"Robert Crandal" <rcranz143101@gmail.com>
Date2013-02-17 15:10 -0700
Message-ID<7q6dnVlX7YvQyLzMnZ2dnUVZ5uOdnZ2d@giganews.com>
In reply to#18527
"Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message 
news:1554589.vE7aatGJ18@PointedEars.de...
>>>>> Robert Crandal wrote:
>>>>> >
>>>
>>> <http://www.netmeister.org/news/learn2quote.html>
>>> <http://jibbering.com/faq/#posting>
>>> <http://PointedEars.de/faq#posting>
>>
>> Last time I checked, nobody owns the Internet or Usenet.
>
> Last time I checked, basic politeness towards those whom you
> ask for help was not dependent on whether they own anything.
>
> Either change your attitude or go away, please.
>


Not possible.  You are not the Internet police and you do not own
Usenet or Internet.   Take your OCD mentality elsewhere.

Stop worrying so much about who violates news posting etiquette.
I did nothing wrong here and you are clearly wasting your time
and energy and such trivial maters.

8P

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


#18529

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-02-17 23:16 +0100
Message-ID<3926971.RMklTmz8SY@PointedEars.de>
In reply to#18528
Robert Crandal wrote:

> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message
> news:1554589.vE7aatGJ18@PointedEars.de...
>>>>>> Robert Crandal wrote:
>>>>>> >
>>>>
>>>> <http://www.netmeister.org/news/learn2quote.html>
>>>> <http://jibbering.com/faq/#posting>
>>>> <http://PointedEars.de/faq#posting>
>>>
>>> Last time I checked, nobody owns the Internet or Usenet.
>>
>> Last time I checked, basic politeness towards those whom you
>> ask for help was not dependent on whether they own anything.
>>
>> Either change your attitude or go away, please.
> 
> Not possible.  You are not the Internet police and you do not own
> Usenet or Internet.   Take your OCD mentality elsewhere.
> 
> Stop worrying so much about who violates news posting etiquette.
> I did nothing wrong here and you are clearly wasting your time
> and energy and such trivial maters.

You are right, and thank you for reminding me that I can ignore you and your 
ongoing impoliteness with much less effort than is required to help you.  

*PLONK*

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


#18530

FromAndrew Poulos <ap_prog@hotmail.com>
Date2013-02-18 09:54 +1100
Message-ID<7P-dnf_Q9MwDwrzMnZ2dnUVZ_rKdnZ2d@westnet.com.au>
In reply to#18528
On 18/02/2013 9:10 AM, Robert Crandal wrote:
> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message
> news:1554589.vE7aatGJ18@PointedEars.de...
>>>>>> Robert Crandal wrote:
>>>>>> >
>>>>
>>>> <http://www.netmeister.org/news/learn2quote.html>
>>>> <http://jibbering.com/faq/#posting>
>>>> <http://PointedEars.de/faq#posting>
>>>
>>> Last time I checked, nobody owns the Internet or Usenet.
>>
>> Last time I checked, basic politeness towards those whom you
>> ask for help was not dependent on whether they own anything.
>>
>> Either change your attitude or go away, please.
>>
>
>
> Not possible.  You are not the Internet police and you do not own
> Usenet or Internet.   Take your OCD mentality elsewhere.

Your "freedom" also implies responsibility. Its good that it is pointed 
out to you when you forgo responsibility.

Andrew Poulos

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


#18534

FromJohn G Harris <niam@jghnorth.org.uk.invalid>
Date2013-02-18 10:17 +0000
Message-ID<nlsFizCV$fIRFwpF@J.A830F0FF37FB96852AD08924D9443D28E23ED5CD>
In reply to#18530
In message <7P-dnf_Q9MwDwrzMnZ2dnUVZ_rKdnZ2d@westnet.com.au>, Andrew 
Poulos wrote:
>On 18/02/2013 9:10 AM, Robert Crandal wrote:
>> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message
>> news:1554589.vE7aatGJ18@PointedEars.de...
>>>>>>> Robert Crandal wrote:
>>>>>>> >
>>>>>
>>>>> <http://www.netmeister.org/news/learn2quote.html>
>>>>> <http://jibbering.com/faq/#posting>
>>>>> <http://PointedEars.de/faq#posting>
>>>>
>>>> Last time I checked, nobody owns the Internet or Usenet.
>>>
>>> Last time I checked, basic politeness towards those whom you
>>> ask for help was not dependent on whether they own anything.
>>>
>>> Either change your attitude or go away, please.
>>>
>>
>>
>> Not possible.  You are not the Internet police and you do not own
>> Usenet or Internet.   Take your OCD mentality elsewhere.
>
>Your "freedom" also implies responsibility. Its good that it is pointed 
>out to you when you forgo responsibility.

You've forgotten what Thomas said recently :

"Which is why politeness here is (as usual) a good idea, but, as you can 
see in many postings by several people, it is *optional*.  For example, 
if someone thinks that you are telling or doing nonsense, you will be 
told upfront, in public, that what you are telling or doing *is* 
nonsense.  You will not be told that it would be “not quite right” 
in order to pamper your oversensitive customer soul."

Or do you think that no-one is allowed to be "upfront" towards Thomas ?

   John
-- 
John Harris

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


#18544

From"Robert Crandal" <rcranz143101@gmail.com>
Date2013-02-18 11:43 -0700
Message-ID<cKKdnT5KL7X_67_MnZ2dnUVZ5rednZ2d@giganews.com>
In reply to#18534
"John G Harris" <niam@jghnorth.org.uk.invalid> wrote
>>
>> For example, if someone thinks that you are telling or doing nonsense,
>> you will be told upfront, in public, that what you are telling or
>> doing *is* nonsense.
>>

No serious violation was committed in my first reply to Thomas.
He was simply upset because my reply contained too much
text for his liking.   I've been posting on Usenet for 20 years
and NOBODY has ever complained about my netiquette before.
I know what I'm doing, and I don't need the Usenet Nazi Police
to tell me how to post here.

And, your above statement goes both ways.  I felt like Thomas
was being rude and his request was nonsense.... so, it was my
right to tell him upfront in public that HE was full of nonsense.

Anyhow.... we can drop this trivial nonsense and move on
to better issues related to JavaScript.  Thanks!

8P

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


#18545

FromAndrew Poulos <ap_prog@hotmail.com>
Date2013-02-19 06:27 +1100
Message-ID<94WdnW3dBfJYHb_MnZ2dnUVZ_t-dnZ2d@westnet.com.au>
In reply to#18544
On 19/02/2013 5:43 AM, Robert Crandal wrote:
> "John G Harris" <niam@jghnorth.org.uk.invalid> wrote
>>>
>>> For example, if someone thinks that you are telling or doing nonsense,
>>> you will be told upfront, in public, that what you are telling or
>>> doing *is* nonsense.
>>>
>
> No serious violation was committed in my first reply to Thomas.
> He was simply upset because my reply contained too much
> text for his liking.   I've been posting on Usenet for 20 years
> and NOBODY has ever complained about my netiquette before.
> I know what I'm doing, and I don't need the Usenet Nazi Police

<http://en.wikipedia.org/wiki/Godwin%27s_law> :-)

Andrew Poulos

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


#18546

FromAndrew Poulos <ap_prog@hotmail.com>
Date2013-02-19 06:33 +1100
Message-ID<XYGdnb7L97KCH7_MnZ2dnUVZ_qydnZ2d@westnet.com.au>
In reply to#18534
On 18/02/2013 9:17 PM, John G Harris wrote:
> In message <7P-dnf_Q9MwDwrzMnZ2dnUVZ_rKdnZ2d@westnet.com.au>, Andrew
> Poulos wrote:
>> On 18/02/2013 9:10 AM, Robert Crandal wrote:
>>> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> wrote in message
>>> news:1554589.vE7aatGJ18@PointedEars.de...
>>>>>>>> Robert Crandal wrote:
>>>>>>>> >
>>>>>>
>>>>>> <http://www.netmeister.org/news/learn2quote.html>
>>>>>> <http://jibbering.com/faq/#posting>
>>>>>> <http://PointedEars.de/faq#posting>
>>>>>
>>>>> Last time I checked, nobody owns the Internet or Usenet.
>>>>
>>>> Last time I checked, basic politeness towards those whom you
>>>> ask for help was not dependent on whether they own anything.
>>>>
>>>> Either change your attitude or go away, please.
>>>>
>>>
>>>
>>> Not possible.  You are not the Internet police and you do not own
>>> Usenet or Internet.   Take your OCD mentality elsewhere.
>>
>> Your "freedom" also implies responsibility. Its good that it is
>> pointed out to you when you forgo responsibility.
>
> You've forgotten what Thomas said recently :
>
> "Which is why politeness here is (as usual) a good idea, but, as you can
> see in many postings by several people, it is *optional*.  For example,
> if someone thinks that you are telling or doing nonsense, you will be
> told upfront, in public, that what you are telling or doing *is*
> nonsense.  You will not be told that it would be “not quite right” in
> order to pamper your oversensitive customer soul."
>
> Or do you think that no-one is allowed to be "upfront" towards Thomas ?

Are you asking me for permission to be rude to other people?

Andrew Poulos

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


#18549

FromDr J R Stockton <reply1300@merlyn.demon.co.uk.invalid>
Date2013-02-18 12:23 +0000
Message-ID<NQplf0C00hIRFwv6@invalid.uk.co.demon.merlyn.invalid>
In reply to#18527
In comp.lang.javascript message <1554589.vE7aatGJ18@PointedEars.de>,
Sun, 17 Feb 2013 20:52:54, Thomas 'PointedEars' Lahn
<PointedEars@web.de> posted:

>
>Last time I checked, basic politeness towards those whom you
>ask for help was not dependent on whether they own anything.
>
>Either change your attitude or go away, please.
>


Why should he?  You have often ignored a similar request.  You remind me
of a chap I once saw in Red Square.

-- 
(c) John Stockton, nr London UK.  ???@merlyn.demon.co.uk  Turnpike v6.05  MIME.
 Web  <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
     Check boilerplate spelling -- error is a public sign of incompetence.
    Never fully trust an article from a poster who gives no full real name.

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


#18484

FromMartin Leese <please@see.Web.for.e-mail.INVALID>
Date2013-02-13 10:23 -0700
Message-ID<kfgi4k$6ke$1@dont-email.me>
In reply to#18476
Robert Crandal wrote:
> Our website is stored on a local hard-drive on a computer
> that has no Internet access.  It's basically an offline website
> that only our company can use.
> 
> Is it possible to add a search feature to this website using
> Javascript?  I want to let users type a search string, and
> then somehow search all the HTML documents on the
> hard drive for string matches, then display a new HTML
> page with the search results.  Can Javascript do this?  How?

This approach would be OK only for
occasional searches of a small website.  An
approach that scales would be to search your
website once and create an index.  Then
search the index multiple times.  (Obviously
the index would need to be rebuilt when the
website changes, but this could be done
overnight or whenever the system is little
used.)

JavaScript could be run on your intranet
server to build the index, but is more
typically run via the clients' web browser.
The program to build the index could be
implemented in any number of languages; I
see no particular advantage in using
JavaScript for this.  Using JavaScript on
the clients to search the index makes sense.

-- 
Regards,
Martin Leese
E-mail: please@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/

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


#18486

From"Evertjan." <exxjxw.hannivoort@inter.nl.net>
Date2013-02-14 10:56 +0100
Message-ID<XnsA1676F62F3772eejj99@194.109.133.133>
In reply to#18484
Martin Leese wrote on 13 feb 2013 in comp.lang.javascript:

> This approach would be OK only for
> occasional searches of a small website.  An
> approach that scales would be to search your
> website once and create an index.  Then
> search the index multiple times.  (Obviously
> the index would need to be rebuilt when the
> website changes, but this could be done
> overnight or whenever the system is little
> used.)

Methinks the index, being a database, needs only to be corrected on a 
parhaps nightly basis. The serverside action can very well identify pages 
that are changed since the last correction, and only rebuild the data of 
that page.

Now and then, a hand-started total new index database could be done.

> JavaScript could be run on your intranet
> server to build the index, but is more
> typically run via the clients' web browser.

"Typically"? [as in: "typically programmers are very inefficient"?]

What is "run via", do you mean "initialized by" or "run on" a web page? 

> The program to build the index could be
> implemented in any number of languages; I
> see no particular advantage in using
> JavaScript for this. 

I do, this is a Javascript NG, so presumably  the audience is well versed 
in this language.

> Using JavaScript on the clients to search the index makes sense.

Why? Does it just make sense or does it make mor sense than to do this on 
the server?

If the client would index the text-result of the pages loaded to index 
that, it would be sensible, but forgoing selected pages that have changed,
and not being able to interact efficiently with the database on the server 
would not.

Depending on size and dynamics of a site, I would vote for serverside 
updating.






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

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


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.javascript


csiph-web