By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,624 Members | 1,643 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,624 IT Pros & Developers. It's quick & easy.

Howto store a website in a variable?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
> 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 discussion thread is closed

Replies have been disabled for this discussion.