iframe

Discussion in 'HTML & Website Design' started by dean5000v, May 20, 2008.

  1. #1
    ok well basically im creating a shop and i want the iframe height to be dynamic so if theres mroe items on a certain product then the ehight will just get bigger, does anyone know any javascript to do this ??

    heres the iframe i got so far


    <iframe
    src ="http://shop.safetynetdirect.com/cgi-bin/mk_cat.pl?cat=SSEF"
    scrolling="no" width="740px" height="100%" border="0px" frameborder="0" padding="0px" margin="0px">

    </iframe>
     
    dean5000v, May 20, 2008 IP
  2. Ulquiorra

    Ulquiorra Peon

    Messages:
    422
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Between head tags:

    Actual frame:

     
    Ulquiorra, May 20, 2008 IP
    Joehema likes this.
  3. dean5000v

    dean5000v Peon

    Messages:
    201
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok found found that you can't make a iframe height dynamic if the iframe src is from another domain i can get it working fine to my shop by doing this:


    <iframe id="myframe" src="../shop/cgi-bin/mk_cat.pl?cat=SSEF" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" ></iframe>


    but all of the images in the shop get broken within my iframe as they images are on the sub domain, so my website is:

    http://www.safetynetdirect.com/

    but subdomain is http://www.shop.safetynetdirect.com

    does anyone know how i can link my iframe to the subdomain by going through directories rather then a whole link.
     
    dean5000v, May 21, 2008 IP