View Full Version : DHTML widget window BUG !
05-03-2007, 03:50 AM
1) Script Title: DHTML Window Widget
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/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.
05-03-2007, 03:54 AM
On the demo page, it seems to work.
Can you describe the exact circumstances when it occurs?
05-03-2007, 04:49 AM
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...
its the second and subsequent time you select the same link that the problem occurs
any help is much appreciated
05-03-2007, 05:12 AM
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:
05-03-2007, 05:13 AM
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.
05-03-2007, 05:37 AM
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">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<body bgcolor="#FFFFFF" text="#CCCCCC" link="#CCCCCC" vlink="#CCCCCC" alink="#CCCCCC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
the third picture link remains an ajax window call simliar to the second pic (but with link to flash as original) same problem.
05-03-2007, 06:19 AM
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.
05-03-2007, 06:27 AM
thanks a million
that worked !!
05-03-2007, 06:44 AM
Great, I'll be making an official update to the script soon which will fix both this bug and another one raised earlier.
Powered by vBulletin® Version 4.2.1 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.