Results 1 to 9 of 9

Thread: DHTML widget window BUG !

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

    Default DHTML widget window BUG !

    1) Script Title: DHTML Window Widget
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ndow/index.htm

    3) Describe problem:
    When centering the widget, ie center =1. opening the window (Via clickable link) a second time results in the widget window not being centered on the browser window.

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    On the demo page, it seems to work.
    Can you describe the exact circumstances when it occurs?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    May 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    happens all the time .. happening right now


    first image from left and 3rd image from left.. clicking on them a first time.. it works fine
    if you close those windows and then click on the same picture you selected the first time.... it will not be centered...

    http://www.designerportraits.com.au/test/

    its the second and subsequent time you select the same link that the problem occurs

    any help is much appreciated
    Last edited by Nabil-A; 05-03-2007 at 04:55 AM.

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

    Default

    The problem seems to be something specific to your page. My best guess right now is that the content you're loading into the DHTML window (flash gallery) is causing the page to stretch in width. Thus, the second time around when the window is launched, the script uses the new window width to calculate what is center, which is much larger.

    To confirm this, either:

    1) Switch from using the "ajax" mode to "iframe" instead for the DHTML window content. This should prevent any content from the external page from affecting the main page.

    2) Switch the external pages themselves (ie: http://www.designerportraits.com.au/test/portraits.php) to a simple blank page instead.

    BTW, please note that your page is currently in violation of our usage terms, since the credit notice doesn't appear inline on the page. Please reinstate the credit notice:

  5. #5
    Join Date
    May 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i was mucking around with the thickbox script http://jquery.com/demo/thickbox/ which seems to have no centering issues... but is not as asthetically pleasing as the widget script.

    i really like the widget script.. i hope this can be fixed.

    i dont have the know how to adapt their centering technique but it seems to be css based and on a percentage base of screen.

    mmmm

  6. #6
    Join Date
    May 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Most importantly.. i have copied back the legal stuff... which i accidently removed in tinkering with this script

    i tried as a first measure doing it as a iframe (see first picture link) which results in the same problem as before.

    i have also tried just calling on a blank page... from my demo page (choose the second picture from left link) which still results in the second instance of the widget (second click on same link) of the link being selected not being centered

    the blank.php script only contains the following

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Model Gallery</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    </body>
    </html>
    the third picture link remains an ajax window call simliar to the second pic (but with link to flash as original) same problem.

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

    Default

    Ok, I've done some testing. Looks like there is in fact a bug with dhtmlwindow.js. Try the modified version attached, and let me know if it fixes the problem.

  8. #8
    Join Date
    May 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks a million

    that worked !!

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

    Default

    Great, I'll be making an official update to the script soon which will fix both this bug and another one raised earlier.

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
  •