View Full Version : Iframe alternative?

11-01-2006, 04:56 PM
i'm looking for a valid/standards friendly way to use the following code on my site.

<iframe name="wxButtonFrame" id="wxButtonFrame" height="135" src="http://btn.weather.ca/weatherbutton/template2.php?placeCode=CAQC0363&category0=Cities&placeCode1=BFXX0005&category1=Cities&placeCode2=GRXX0004&category2=Cities&placeCode3=FRXX0076&category3=Cities&placeCode4=MXXX0108&category4=Cities&containerWidth=100& btnNo=5736&backgroundColor=white&multipleCity=1&citySearch=1&celsiusF=C" frameborder="0" width="100" scrolling="no"></iframe>

This is an element generated from another site that the client requested, so it's neccessary. However, i'm hoping someone could help me think of another way to get it to work so it doesn't destroy my otherwise clean code like it's doing at the moment.

the site can be seen here:

Thank you! :thumbsup:

11-01-2006, 06:16 PM
Possibly server side includes, eg.

PHP : <? include("http://btn.weather.ca/weatherbutton/template2.php..."); ?>

SSI (with .shtml) : <!--#include virtual="http://btn.weather.ca/weatherbutton/template2.php..." -->

Edit: Actually that won't work for you as the document you wish to include (http://btn.weather.ca/weatherbutton/template2.php?placeCode=CAQC0363&category0=Cities&placeCode1=BFXX0005&category1=Cities&placeCode2=GRXX0004&category2=Cities&placeCode3=FRXX0076&category3=Cities&placeCode4=MXXX0108&category4=Cities&containerWidth=100& btnNo=5736&backgroundColor=white&multipleCity=1&citySearch=1&celsiusF=C) is not just HTML, rather a complete page. :o

11-01-2006, 06:19 PM
The include might work but I'm not sure if functionality will remain the same. Styling is lost. So you'll have to redo that.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum