Results 1 to 2 of 2

Thread: DHTML Window widget (v1.03)

  1. #1
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML Window widget (v1.03)

    1) Script Title: DHTML Window widget (v1.03)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem: I'm messing around with the iframe feature of this code trying to get it to display a webpage inside the frame. For testing purposes I tried linking to "http://bulletin.myspace.com/index.cfm?fuseaction=bulletin". The problem is, it seems to load the page in the iframe, but immediately after that, it redirects me to that page away from my page. Any suggestions? Here's the code to call the iframe:

    <a href="#"
    onclick="bulletinwin=dhtmlwindow.open('ajaxbox', 'iframe', 'http://bulletin.myspace.com/index.cfm?fuseaction=bulletin', 'Bulletins', 'width=650px,height=400px,left=300px,top=100px,resize=0,scrolling=1'); return false">Click
    Here</a>
    I also inluded a very basic test page to show what's happening, it's attached as text.txt if you're a visual person. To see it in action you just have to download and rename it as something.html and open it in your web browser.

    And I'm using the latest version of Firefox, if that has anything to do with it.

    Thanks,
    Kyle

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    It is a simple matter for those sites that choose to do so to add code to their page(s) that make them 'break out of frames'. This is done most commonly via javascript and cannot be overridden by a container page from another domain that also relies upon javascript.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •