Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Iframe alternative?

    i'm looking for a valid/standards friendly way to use the following code on my site.

    Code:
    <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!

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 is not just HTML, rather a complete page.
    Last edited by mark87; 11-01-2006 at 07:20 PM.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •