Results 1 to 2 of 2

Thread: Automatic window "inline" call does NOT run {???} command…onClick does!

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Automatic window "inline" call does NOT run {???} command…onClick does!

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


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

    Code:
    <script type="text/javascript">
    var googlewin=dhtmlwindow.open("googlebox", "inline", "<p align='center'><font face='Arial' color='#333333'><embed height='88' width='701' menu='true' loop='true' play='true' scale='exactfit' wmode='Window' quality='1' type='application/x-shockwave-flash' src='/UserFiles/11/Flash/swf/csts shop.SWF' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></font>{shop}</p>", "#1: Disc Site", "width=690px,height=350px,resize=1,scrolling=1,center=1", "recal")
    
    googlewin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
    return window.confirm("Close window to exit eshop")
    }
    </script>

    DHTML automatic window "inline" call does NOT run {???} command… But with onClick "inline" call! They Work !fine! Why ??

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

    Default

    Opening inline windows automatically does work, as seen in demo #2 on the Demo Page. As far as why it doesn't on your page, it could be something within the HTML contents you're injecting into it; to confirm this, try changing the HTML from:

    Code:
    <p align='center'><font face='Arial' color='#333333'><embed height='88' width='701' menu='true' loop='true' play='true' scale='exactfit' wmode='Window' quality='1' type='application/x-shockwave-flash' src='/UserFiles/11/Flash/swf/csts shop.SWF' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed></font>{shop}</p>
    to something else/arbitrary:

    Code:
    This is some inline content. This is some inline content.
    DD Admin

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
  •