Page 1 of 1
WU Rapid Fire
Posted: Mon 13 Jan 2014 10:47 pm
by PaulMy
I have the following code
<a target="frame1" href="
http://www.wunderground.com/swf/Rapid_F ... 6">Station Rapid Fire</a><br />
as a link to my WU Rapid Fire page but it does not display. However, entering that URL
http://www.wunderground.com/swf/Rapid_F ... ONTARIO226 directly in the browser does display correctly. Anyone have a reason why one way works and not the other?
The link is in my
http://www.komokaweather.com site, left side menu down to
Weather Underground: and
Station Rapid Fire
Paul
Re: WU Rapid Fire
Posted: Mon 13 Jan 2014 11:24 pm
by RayProudfoot
Hi Paul,
I don't know enough to be able to help but if you look at the source code for my home page you may be able to get yours working.
I have the Rapid Fire display half-way down my main page.
http://www.cheadlehulmeweather.co.uk
Re: WU Rapid Fire
Posted: Tue 14 Jan 2014 4:17 am
by PaulMy
Thanks for looking Ray. I have looked at your code but hadn't planned to display mine on the home page like yours is and preferred to have it as a link on the side menu with the other WU pages.
Actually the issue is not as serious as I first thought as the page actually does show BUT it is way down so one must scroll down to see it. I have tried many edits of my index.html page but have not been able to come up with the right code to have this page show at the top like all the other linked pages do. It likely is because of the iframe however all the other links that are coded the same way work fine. Could I impose again for anyone that might give me a suggestion with this and that would be another learning experience.
Paul
Re: WU Rapid Fire
Posted: Tue 14 Jan 2014 5:35 am
by N0BGS
Paul:
Try something like this:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
<br/>
<object id="Flash1" width="800" height="600" type="application/x-shockwave-flash"
data="http://www.wunderground.com/swf/Rapid_Fire.swf?units=metric&station=IONTARIO226">Station Rapid Fire"
</object>
</body>
</html>
See it here:
Removed link
--Kurt
Re: WU Rapid Fire
Posted: Tue 14 Jan 2014 6:46 pm
by PaulMy
Thanks Kurt for your suggestion, and that works well as a stand-alone page. I also tried that by taking your code and making a new html page and then linking to that in the left side menu but the same result as before, the Rapid Fire page still moves to below and not visible unless one scrolls down. I have tried <span vertical-align="top" and <span height=" and similar but without any change. If I add a new <tr and <td then it changes the whole left side menu and right side frame layout in incorrect proportion. It is not very important to have this on my site but it should be possible, and has now given me a challenge from which I will learn.
It likely is something simple to those that are familiar with html code but with my very limited knowledge I don't understand why it works for my many other menu links and not this particular one.
Paul
Re: WU Rapid Fire
Posted: Tue 14 Jan 2014 8:38 pm
by N0BGS
Hmmmmmmmmmmmm.....
Seems to work here:
http://www.kpw3.com/hermon.php
Using div id's.
Code: Select all
<div id="main-copy">
<h1><?php langtrans('Hermon Weather'); ?></h1>
<p></p>
<object width="676" height="450">
<param name="movie" value="http://www.wunderground.com/swf/Rapid_Fire.swf?units=english&station=KMEHERMO4" />
<embed src="http://www.wunderground.com/swf/Rapid_Fire.swf?units=english&station=KMEHERMO4"
type="application/x-shockwave-flash" width="676" height="450" />
</object>
</div><!-- end main-copy --
--K
Re: WU Rapid Fire
Posted: Tue 14 Jan 2014 10:27 pm
by PaulMy
Thanks Kurt for looking at it again.
Your response triggered me to add it to my Saratoga site and there I have it working fine
http://www.komokaweather.ca/wxWUrapidfire.php
Just can't get it to show up at the top of the frame in my Cumulus
www.komokaweather.com site. Still working on it though and may have to partially abandon and put it on the home page like Ray has.
Paul
Re: WU Rapid Fire
Posted: Tue 14 Jan 2014 11:04 pm
by N0BGS
No, don't give up yet!

This became a personal challenge for me.
Discussing this with a friend of mine and we think we have a fix for you.
The reason this is happening is because your iframe is vertically huge!
Code: Select all
<iframe name="frame1"
src="/weather/index.htm" frameborder="0" height="10150" scrolling="no" width="100%">
</iframe><br />
So when Station Rapid Fire is inserted into the frame with no resizing it centers it in the middle to those 10150 pixels.
Try this:
Create a new page called "rapid.htm" (or whatever you like)
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Komoka Weather</title>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
</head>
<body>
<div id="main-copy">
<p></p>
<object width="800" height="600">
<param name="movie" value="http://www.wunderground.com/swf/Rapid_Fire.swf?units=metric&station=IONTARIO226" />
<embed src="http://www.wunderground.com/swf/Rapid_Fire.swf?units=metric&station=IONTARIO226"
type="application/x-shockwave-flash" width="800" height="535" />
</object>
</div><!-- end main-copy -->
</body>
Then change the code on your home page that links the "Station Rapid Fire" shortcut to
Code: Select all
<!-- Weather Underground -->
<span style="font-weight: bold;">Weather Underground:</span><br />
<span align="top">
<a target="frame1" href="rapid.htm">Station Rapid Fire
</a>
</span><br/>
That will open the resized flash object as a new page within your iframe and at the top.
Only down side is when you click the "Station Rapid Fire" link you will now have to scroll UP to see it. Giant iFrame again.
Have fun!
--Kurt
Re: WU Rapid Fire
Posted: Tue 14 Jan 2014 11:07 pm
by Mperor
Yeah. What Kurt said.

Re: WU Rapid Fire
Posted: Wed 15 Jan 2014 5:11 am
by PaulMy
Thanks Kurt,
Too late this evening/morning to start on this so will be next evening when I can make the change.
Paul
Re: WU Rapid Fire
Posted: Thu 16 Jan 2014 3:58 am
by PaulMy
Ok

Kurt you and your friend's code has overcome my main issue, and I have found a way to help a user to navigate to the top

Now I can work on it for a better presentation form.
Thanks for your help and persistence, and I did learn from it too.
Paul
Re: WU Rapid Fire
Posted: Thu 16 Jan 2014 4:13 am
by N0BGS
That's great, Paul. I learned some things in the process, too.
Glad to help.
--K
Re: WU Rapid Fire
Posted: Thu 16 Jan 2014 5:09 am
by Mperor
You could try adding 'scrollTo' function in there:
<a
onClick="scrollTo(0,200);" target="frame1" href="http:\\
www.komokaweather.com/weather/wu/wu-rapidfire.html">
the two arguments are X and Y coordinates to scroll the browser to...
Seems to work fairly well and is very easy.
Re: WU Rapid Fire
Posted: Fri 17 Jan 2014 2:33 am
by PaulMy
Mperor, you're the master as that did the trick. Thank you,
Paul