View Full Version : DHTML Window Widget

Jim King
02-18-2009, 03:54 PM
1) Script Title:

2) Script URL (on DD):

3) Describe problem: I'm try to load a window with an html page that resides on a different server. The code below does not seem to work can someone advise on the correct method to do this. Here is the code (WMi02 is the server name)

onclick ="ajaxwin=dhtmlwindow.open('WO_A1W', 'ajax', 'file:////Wmi02/WMI Programs/EquipManuals/Dc00000676.html', 'Equipment Manual', 'width=980px,height=620px,left=50px,top=100px,resize=1,scrolling=1');return false" onmouseout="this.style.backgroundColor='#FFFFFF'" href="#" >


02-19-2009, 01:35 AM
Check that the full path "file:////Wmi02/WMI Programs/EquipManuals/Dc00000676.html" is valid (ie: enter it into your browser and see if it loads the desired page). Different browsers seem to differ in what they consider a valid file:/// path, so you should also make sure that path works across browsers.

Jim King
02-19-2009, 04:05 PM
Thanks for the help,
I got it to work using the following;

onclick ="ajaxwin=dhtmlwindow.open('WO_A1W', 'iframe', 'file:////Wmi02/WMI Programs/EquipManuals/Dc00000676.html', 'Equipment Manual', 'width=980px,height=620px,left=50px,top=100px,resize=1,scrolling=1');return false"

I still have one problem the scroll bar does not appear when the window is loaded even through there is data below the window view. Any ideas?
Thanks again

02-20-2009, 04:58 AM
Hmm it's hard to say without seeing a live example why the scrollbar doesn't appear. It must be something within your page. Try experimenting by replacing parts of your page with arbitrary content to isolate which section of the page is the culprit.