SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast subBlue's Avatar
    Join Date
    Jun 2001
    Location
    Edinburgh, UK
    Posts
    51
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrow iframes and javascript

    I'm starting to use some iframes in a div layer. I want to know if i can use javascript to change the size of the iframe (from the parent page containing the iframe).

    In IE i can use 100% width and height to fit the iframe to the layer, but in Netscape 6 the iframe doesn't appear if the height is set in % values - hence the need to be able to specify it dynamically as the layer wil change size.

    TIA
    Become Interactive because its all gone a bit subBlue

  2. #2
    Perl/Mason Guru Flawless_koder's Avatar
    Join Date
    Feb 2002
    Location
    Gatwick, UK
    Posts
    1,206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question?

    is there a quesiton here???!


    This might sound rude, and piss some people off... but i've given up trying to write JScript, vbs, Javascript for cross browser platforms.

    I normally have the luxuary of a controlled environment (because of the company i develop for), but even so i'd tend to not write for Netscape, or at the very best write Javascript / dhtml seperately and use a browswer switch to select the correct external Js file.

    The dom in ie specifies holder percentage differently from NN. You could try setting it dynamically to the pixelWidth and Height of the holding div.

    Flawless
    ---=| If you're going to buy a pet - get a Shetland Giraffe |=---


Bookmarks

Posting Permissions

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