Displaying Text from FTP Site

R

Ricky

Hi,

I'm using FP2000. I'd like to display text (weather forecast) on a
simple page that is some how "pulled" from this site:
ftp://ftp2.bom.gov.au/anon/gen/fwo/IDW62823.txt

This forecast is also available in html format also at:
ftp://ftp2.bom.gov.au/anon/gen/fwo/IDW62823.html

I realize I can include this forecast if I use frames, though I want to
keep my site dead simple, without frames.

Can anyone advise how I might be able to include the forecast on a
simple web page?

Cheers, Ricky
 
T

Trevor Lawrence

Ricky said:
Hi,

I'm using FP2000. I'd like to display text (weather forecast) on a simple
page that is some how "pulled" from this site:
ftp://ftp2.bom.gov.au/anon/gen/fwo/IDW62823.txt

This forecast is also available in html format also at:
ftp://ftp2.bom.gov.au/anon/gen/fwo/IDW62823.html

I realize I can include this forecast if I use frames, though I want to
keep my site dead simple, without frames.

Can anyone advise how I might be able to include the forecast on a simple
web page?

Hi Ricky from me in Canberra

There are a couple of ways.

1. Use IFrames (in-line frames)
On my page http://tandcl.homemail.com.au/ I have 2 IFrames.
One is the News opened and closed with the button
"Open/Close News of this Site"

The code is simple
<button onclick="loadIframe('News','news.html')" title="Open/Close News of
this Site">
Open/Close News of this Site</button>
<iframe id="News" src=""></iframe>

It requires the HTML page (e.g "news.html")

It also requires JavaScript
function loadIframe(id,sPath) {
var x = document.getElementById(id)
if (x.style.display != 'block') {
x.style.display = 'block'
x.src = sPath
}
else
x.style.display = 'none'
}

There is also CSS
#News {
display: none; overflow: auto;
height: 250px; width: 400px; }
You can vary the size of the IFrame with this CSS

2. Open the page in a blank window
The Canberra Times Weather page opens in this way
<a href="http://canberra.yourguide.com.au/weather.asp" target="_blank">
<img src="images/display/canbtimes.gif"
alt="" title="Canberra Times Weather" height="40" /></a>

I have tested this it works fine. Just change the page name after href= to
ftp://ftp2.bom.gov.au/anon/gen/fwo/IDW62823.html (in quotes)
 
R

Ricky

Tks again Trevor - Just had a quick fiddle with the IFrames - magic!

Exactly what I was after.

Cheers, Ricky
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top