Categories | Question details Back To List | ||||||||
Internet Explorer cannot display the webpage Hi, I am trying to get a layout object to work. It works (mostly) in Netscape 7, but when I try to veiw the page in IE 7 i get the message "Internet Explorer cannot display the webpage". If i take out the layout obj creation code then the page loads fine (of course it doesn't work as intended becasue there is no layout object): <div id="_manageCustomerPage_layoutA" style="position: relative; width: 575px; height: 300px;"></div> <script> var dhxLayout__manageCustomerPage_layoutA = new dhtmlXLayoutObject("_manageCustomerPage_layoutA", "3L", "dhx_blue"); dhxLayout__manageCustomerPage_layoutA.setImagePath("../Images/htmlx"); </script> Answer posted by Support on Feb 04, 2009 02:48 Hello, Please try something like this: <body onload="doOnLoad();"> <div id="_manageCustomerPage_layoutA" style="position: relative; width: 575px; height: 300px;"></div> <script> var dhxLayout__manageCustomerPage_layoutA; function doOnLoad() { dhxLayout__manageCustomerPage_layoutA = new dhtmlXLayoutObject("_manageCustomerPage_layoutA", "3L", "dhx_blue"); dhxLayout__manageCustomerPage_layoutA.setImagePath("../Images/htmlx"); } </script> Answer posted by Mike H on Feb 04, 2009 06:55 Hi, I was able to ge the page to load in IE by doing that. Unfortunately do to the ordering, the layout object was being created AFTER the content was being added to the layout. So, i am now trying to call a sequence of javascript functions to first create the layout, then add each content area in turn. The first time i try to attach content to the layout in load_manageCustomerPage_layoutA_cella(){, it calls the alert, then does nothing else, and none of the other functionas are called. I have attatched the complete HTML file and higlhlighed the relevant javascript below.
<script> <script> <script> <script> <script>
Attachments (1)
|