473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Howto store a website in a variable?

Hello,

can anyone tell me how i can code the following:

i want to store certain parsed data in variables. The data comes from a
specific website. Can this be done with 'open'?

var load =
open('http://www.meteo.be/nederlands/pages/Verwachtingen/verwachtingen6479NL.html','r');

I wanted to write an firefox plugin that can retrieve local weather
information of my country, like forecastfox does. I looked in the source of
forecastfox but couldnt find usefull for me...
tia

Jul 23 '05 #1
1 1132
> i want to store certain parsed data in variables. The data comes from a
specific website. Can this be done with 'open'?


the following code works:

xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET",
"http://www.meteo.be/nederlands/pages/Verwachtingen/verwachtingen6479NL.html",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) { //when complete
alert(xmlhttp.responseText)
}
}
xmlhttp.send(null)

Is this the best way? Or is there a better way to parse the data out of that
website?
Jul 23 '05 #2

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

Similar topics

15
by: Bob | last post by:
I've tried everything; and I can't seem to get past this VERY (seemingly) simply problem. I want to work with an array variable within a function(s). I can't get it to work; if I: 1) global...
6
by: Dan Sikorsky | last post by:
How do you use server.mappath to update a access database on a completely different computer? One of my websites needs to update a database on a completely different website. Example: My ASP...
1
by: Eranga Udesh | last post by:
Hi All, In my ASP file, located at the "/test" directory of the website, I include another ASP file as below. <!--#include file="../templates/_header.asp"--> Inside the _header.asp file,...
4
by: SteveK | last post by:
Hi... first off... still a novice here, I subscribe to a cable-ISP... no CGI, PERL, etc... I've built a webpage and want to "gather info" from someone looking at my webpage. So far, I've tried...
5
by: Radu | last post by:
Hi. I have data which comes as a string like "... Store #61" but sometimes it is "... Store 61" and sometimes it is "... Store 061"
1
by: Serdge Kooleman | last post by:
howto make website similar to microsoft website. could you advise a book or walktrough... i want to repeat this website thank you
1
by: iThinkData | last post by:
Should these 3 items, .Net 2.0 Website, SQLServer 2005, Reporting Services 2005. all reside on the same computer? I know that the website issues a configuration error saying it can't find...
1
by: kurt sune | last post by:
I am having trouble publishing a website for RELEASE. 1. web.config: <compilation defaultLanguage="vb" debug="false"> 2. in Configuration manager I set the configuration to Release for the...
8
by: reuce-google | last post by:
Hi folks, I want to store an exception and rethrow it later: CException m_pEc = NULL; // Class variable. try { throw new CMemoryException(); }
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.