...

View Full Version : Iframe alternative?



s.g.d
11-01-2006, 05: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:
http://www.westnetsolutions.com/dev/netvacations/

Thank you! :thumbsup:

mark87
11-01-2006, 07: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

_Aerospace_Eng_
11-01-2006, 07: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