473,769 Members | 4,985 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Loading HTML-page without activating it

Hi

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

Creating the search-function is easy. I can do that myself.

The problem is that I can not find a way to load the HTML-pages
without activating them. Whenever a page is loaded into e.g. an
<OBJECT> or <IFRAME> it is activated. And if the body onload-event has
an alert-message, the user will be shown 50 alert-boxes, if there are
50 pages to go through. Not very smart ...

I need a way to pass the loaded document into a string before it is activated.

Best regards,

Jeppe Andersen
Jul 20 '05 #1
1 2661
"Jeppe 1971" <je*******@jubi imail.dk> wrote in message
news:bc******** *************** ***@posting.goo gle.com...
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>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.
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1627
by: Chris | last post by:
I would like to include a file that is generated by an php script. I am currently loading a html template: my $template = HTML::Template->new(filename => "template/mainpage.template", die_on_bad_params => 0);
3
1970
by: stan k. | last post by:
First of all let me clarify - I am not talking about having a bunch of images loaded all at once (or preloaded) and then controlling the display of the images after that point -- I know that can be done. I am talking about controlling the loading of those images themselves. I was told that the only way to do this was to dynamically write the html code via javascript and put time delays inbetween the dynamic creation of that html such as:
3
3280
by: Jacques Chaurette | last post by:
Hello all , thanks in advance for any help. While looking for a solution to how to replace the grey box while an applet loads, a search of Google got me an article by Glenn s. Peffers that claims to solve the problem. You can find the article at http://www.codeproject.com/java/javaappletwaitmsg.asp I have adapted the code to my situation but can't get it to work. Maybe someone has an idea how to fix it... Here is the code Cheers, Jacques...
4
44087
by: zborisau | last post by:
Hey good people, I've been given a problem to solve recently - and stuck with the solution for a good 4 days already. i have a link which leads to popup window. the purpose of that popup window is to redirect user to the one of available servers. so i need to check which server is available. i have decided to download some 1pixel image from every server and if it was downloaded
2
2056
by: christopher.secord | last post by:
I would like have a little "loading..." tab not unlike the one that gmail uses and I would like to display that tab while an ajax call is made. The javascript to display the tab works. The javascript to hide the tab works. But when I put the two together inside the function that calls the ajax service, they don't work. What seems to happen is that calls to change DOM object properties are queued up, and then all executed...
9
25848
by: Jason Boardman | last post by:
Can anyone tell me how I can write HTML to a WebBrowser control in Visual Basic 6? I want to display HTML in the browser that is generated from within my VB program (as opposed to loading it from a file or URL). Is this possible? Jason
5
10368
by: toffee | last post by:
Hi all, I've seen a really cool effect which i would like to use on an intranet site. Am referring to the 'LOADING..' animation you see when switching pages. I've seen it somewhere on a website that was using php (cant remember the url). I've tried googling but came up with nothing - so does anyone know what function of php allows to display a little animation while a sql query is being run ? Many thanks
4
2053
by: basha9 | last post by:
Hi everybody , Can u tell me how to load .xml file from javascript in IE.If u can provide the code it's very greatefull to u.. ---Tq.
5
2973
Claus Mygind
by: Claus Mygind | last post by:
The following code loads fine in fireFox but does not load in IE. The list box loads but the options in the list box fail to load function writeMenu(cPage) { /anny8.html" onclick="goNext(\'/ABC/anny8.html\'); return false">An(n)y Geocaching</a>/&nbsp;' if (cPage == "anny8") { document.getElementById("myMenu").innerHTML += '<select id="getNextGeoPage" onchange="navigate(this)" name="getNextGeoPage">;' ...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10211
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9863
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8870
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7408
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.