A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: iframe and get url driving me nuts!!!

  1. #1
    aidanmack.co.uk
    Join Date
    Dec 2001
    Location
    York, UK
    Posts
    400

    iframe and get url driving me nuts!!!

    Howdy guys, i have used this code a million times before and now its suddenly stopped working, this is my code in the html for iframe...

    Code:
    <iframe src="home.html" name="content" width="342" marginwidth="0" height="458" scrolling="yes" frameborder="0"></iframe>

    and this is my code in flash...
    Code:
    on (release) {
    	getURL("about.html","content");
    	}
    so basically flash should be loading the html page "about.html" in to the iframe called "content".
    Instead its just opening content in a new window.

    I dont know what on earth im doin wrong.
    Ive done a search and this fella seems to be having the same problem....

    http://board.flashkit.com/board/show...geturl+iframes

    any body else had the same problem?

    Cheers
    Aidan

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    I've seen the same problem with framesets.
    I had to test it on the server so that it would work correctly, i.e., I had to have an address lke
    http://domain.com/page.html
    (domain.com can be localhost)

  3. #3
    aidanmack.co.uk
    Join Date
    Dec 2001
    Location
    York, UK
    Posts
    400
    Caunt believe ive been tearing my hair out for so bloody long with this! Yeah its a local problem, as soon as i upload it works fine!! cheers fella.

  4. #4
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    Cool!
    This seems happen with Flash Player 8 (or later) only.
    Like you said, I also remember this working fine - iFrames and frames.

  5. #5
    Twansparant Twandeman's Avatar
    Join Date
    May 2004
    Location
    Amsterdam
    Posts
    197
    Hi,
    I was reading this post because I have the exact same problem.
    I'm also using an iframe in the same html page as the .swf is in:
    Code:
    <div id="HTML-CONTENT">
    	<iframe name="content" width="745px" height="500px" scrolling="auto" frameborder="0"></iframe>
    </div>
    From flash I want to load content pages into the iframe called "content":
    Code:
    on (release) {
    	getURL("work/interior/test.html","content");
    }
    It works..... in Internet Explorer .... in Firefox it just opens a new window , what the hell am I doing wrong?
    Anyone an idea?
    Thanks!
    Toine Kamps | Design & Coding
    toinekamps.com

  6. #6
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi Twandeman,

    But are you testing it on the server?
    Your code appears to be just fine.

  7. #7
    Twansparant Twandeman's Avatar
    Join Date
    May 2004
    Location
    Amsterdam
    Posts
    197
    Yeah, I was testing it on a server. But I fixed it, my flash window wasn't transparent, so I couldn't 'see' the iframe.
    But now that I've got your attention, maybe you could help me with a slightly different problem .
    To understand what I mean, take a look:

    http://www.rovorm.nl/testtoine/

    Go to the 'work' section and then drop down 'interior', as soon as the mouse hits the html section (top of the photo), the drop down goes away, while in the .swf itself it works fine.
    Any idea?

    Thanks for your time!
    Toine Kamps | Design & Coding
    toinekamps.com

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center