Results 1 to 2 of 2

Thread: Load window widget while hidden?

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

    Question Load window widget while hidden?

    1) Script Title:
    DHTML Window Widget

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/

    3) Describe problem:
    Can you load the window while it's hidden? What happens is when you re-open the window to fill it with new content, the old content is there while the new content is loading. Pretty distracting.

    Thanks in advance!

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    I assume you're talking about when using the "iframe" option. You can directly access the iframe and change the URL it displays while the DHTML window itself is still hidden. To access the iframe created by a DHTML window instance, the code looks like this:

    Code:
    window.frames["_iframe-"+t.id].location.replace("http://myothersite.com")
    where [icode]t.id[/icocde] is the ID of your DHTML window when you created it, for example:

    Code:
    var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
    Then:

    Code:
    window.frames["_iframe-googlebox"].location.replace("http://myothersite.com")

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
  •