PDA

View Full Version : Window Widget - dialog window?



Shift4SMS
01-31-2008, 06:22 PM
1) Script Title: Window Widget

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

3) Describe problem: I want to use the pop-up window as a modal dialog window without the minimize icon -- is there a configuration option to remove or at least disable the icon on the window?

If not, I do see where the image is displayed in the source but I do not see where the click event attached to the image is defined. I'm afraid if I simply prevent the image from displaying that it will break something.

ddadmin
01-31-2008, 10:52 PM
Sure, to prevent the minimize icon from showing, just add the code in red to the below line in the .js:


domwindowdata+='DHTML Window <div class="drag-controls"><img src="'+this.imagefiles[0]+'" title="Minimize" style="display:none" /><img src="'+this.imagefiles[1]+'" title="Close" /></div>'

Shift4SMS
01-31-2008, 11:31 PM
Thank you - perfect. This solution is so easy that I had to bonk myself in the head and say duh.