flunky needs help. Using JS for IFrames

Discussion in 'Javascript' started by Clyde, Jul 6, 2005.

  1. Clyde

    Clyde Guest

    I have some HTML ads on server #1 that I want to display on server #2.
    I don't have any control over server #2.

    I need to display this ads in iframes since they are complete HTML
    pages including embedded CSS info.

    Since iframes don't autosize, I want to create the IFrame tag using
    width and height values that change from ad to ad.

    What I have is a JS file on my server containing ad info (adUrl,
    adHeight, adWidth arrays). I have a function that builds a complete
    IFRAME tag using the properties for a random ad. The function is
    called witin a document.write() statement.

    When the page initially loads, the iframe displays properly. But when
    the page is refreshed and a different ad URL is chosen, the iframe's
    height/width changes correctly but the IFrame's src doesn't change
    (the previous ad's HTML page is shown).

    Same behavior in IE & Firefox.
    Clyde, Jul 6, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gareth

    Using iframes in java.

    Gareth, Jul 28, 2003, in forum: Java
    Replies:
    1
    Views:
    403
    Marco Schmidt
    Jul 28, 2003
  2. xboxsnippets.com

    Using iFrames on your front page

    xboxsnippets.com, Jan 24, 2005, in forum: HTML
    Replies:
    4
    Views:
    509
    gonebye
    Jan 26, 2005
  3. Owen

    Using frames / iframes

    Owen, Sep 12, 2005, in forum: Javascript
    Replies:
    1
    Views:
    73
    Java script Dude
    Sep 13, 2005
  4. using iframes in Safari

    , Mar 16, 2007, in forum: Javascript
    Replies:
    5
    Views:
    166
  5. Snolly
    Replies:
    1
    Views:
    128
    Thomas 'PointedEars' Lahn
    Aug 9, 2008
Loading...

Share This Page