"Jeppe 1971" <jeppe1971 (AT) jubiimail (DOT) dk> wrote
Quote:
Does anyone know of a way to load a HTML-page and examine
the document without activating the code?
I am trying to create a search-function in javascript.
The idea is that the function goes through all the
HTML-pages on a site looking for words entered by the user.
The results is thereafter presented to the user (it's a kind
of a search-engine). |
What you are proposing is that for _each_and_every_ search request made
the user downloads the entire web site. You have got to be on broadband
(or something better) to even be considering such a ridiculous scheme.
<snip>
Quote:
I need a way to pass the loaded document into a string before
it is activated. |
Generally you can't but if you are willing to only impose this nonsense
on the users of a couple of types of web browsers you could look at
XMLHttpRequest and its ActiveX (near) equivalent. You will be able to
find references and examples searching on Google (note: that is a real
search engine and will not make you download the entire world wide web
in order to find out what is on it).
Richard.