Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Umair on Jun 12, 2009 07:02
open dhtmlx forum
DHTML Window

Hi
I am crating Dhtmlx window using following code
var url = "address.php";
dhxWins = new dhtmlXWindows(); // dhxWins is global variable
dhxWins.enableAutoViewport(false);

dhxWins.setViewport(0, 0, document.body.scrollWidth, document.body.scrollHeight);

w1= dhxWins.createWindow("w1", 50, 50, 700, 470);
w1.setText("Send Arrival/Delivery Report");
dhxWins.window("w1").setModal(true);
dhxWins.window("w1").center();
w1.attachURL(url);

It works fine in Internet Explorer but not in Firefox.
In firefox it works only onece i.e. when i click a button that create dhtmlx window it creates the window fine, but when i close that window than no link works further.

Regards
Umair
Answer posted by Alex (support) on Jun 12, 2009 08:38

Hello,

if you want to define viewport that  occupies the whole page, please use either an automatic viewport or some overall html container as it is shown in the sample http://dhtmlx.com/docs/products/dhtmlxWindows/samples/viewports/render_as.html (dhtmlxWindows/samples/viewports/render_as.html in the window package). 

In your example the viewport is set over the page content and content is disabled.