Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sunchaser on Oct 26, 2008 13:12
open dhtmlx forum
dhtmlxLayout - only works in firefox and in fullscreen mode

Hi

Another question from my side, about the dhx layout object that I'll surely need but didn't know how to work with in my particular environment.
I've used this code first:
"
<!-- JS -->
<script src="http://127.0.0.1:80/c83/cgi-bin/dhtml/layout/codebase/dhtmlxcommon.js"></script>
<script src="http://127.0.0.1:80/c83/cgi-bin/dhtml/wnd/codebase/dhtmlxcommon.js"></script>

<!-- layout -->
<script src="http://127.0.0.1:80/c83/cgi-bin/dhtml/layout/codebase/dhtmlxlayout.js"></script>
<script src="http://127.0.0.1:80/c83/cgi-bin/dhtml/wnd/codebase/dhtmlxwindows.js"></script>

<!--CSS-->

<!-- layout -->
<link rel="STYLESHEET" type="text/css" href="http://127.0.0.1:80/c83/cgi-bin/dhtml/layout/codebase/dhtmlxlayout.css">
<link rel="STYLESHEET" type="text/css" href="http://127.0.0.1:80/c83/cgi-bin/dhtml/layout/codebase/skins/dhtmlxlayout_dhx_blue.css">
<link rel="STYLESHEET" type="text/css" href="http://127.0.0.1:80/c83/cgi-bin/dhtml/wnd/codebase/dhtmlxwindows.css">
<link rel="STYLESHEET" type="text/css" href="http://127.0.0.1:80/c83/cgi-bin/dhtml/wnd/codebase/skins/dhtmlxwindows_dhx_blue.css">

<div id="dlayout"></div>
<script>
try
{
var obj = document.getElementById("dlayout");
if (obj!=null)
{
    var m_lo = new dhtmlXLayoutObject(document.getElementById("dlayout"), "3L");
}
else
{
    alert("null");
}
}
catch(err)
{
    alert('desc error: ' + err.decription);
}
</script>
"
but I had to change this:
"
<div id="dlayout" style="width:1080px;height:580px"><div style="visibility:hidden;">a</div></div>
"
so that I can have the layout on the page.
But the real problem is that I can't use it in my environment -> a web page generated by Cognos report studio engine, even if there is nothing else in the page.
I don't what to check to find the solution.
Funny thing: if if try in full screen mode, it is working but only in Firefox. (but I have to use only IE).

Thanks.
Answer posted by Support on Oct 27, 2008 03:43
Hello,

1. There is no need to attach dhtmlxcommon.js twice - the code is the same in both files.
2. Try to add position:abolute to div id="dlayout" - probably without content it has zeroized height.

If problems still occured could you please give us direct link or attach a demo?
Answer posted by Sunchaser on Oct 27, 2008 16:45
Hi,

Sorry for the late answer,
The problem is still here.

I put the source code of the test page in attachments, but I should notice to you that the main part of the page is generated by Cognos engine, and that I can insert HTML / javascript inside but i do not manage the all process of the page.
dhtmlxGrid (that I use in pro version) is working fine, dhtmlxTab pro and dhtmlxToolbar, dhtmlxTree, dhtmlxWindows in standard version are working fine in 90 % of cases.

I didn't have good result with Layout, accordion, editor in this environment.

I hope I will find a solution because the idea was to use many of yours objects in our system.

Thanks,
Regards.
Attachments (1)
Answer posted by Support on Oct 28, 2008 02:42
Hello,

There are a lot of additional js/css files included in your code. It's hard to define the reason of the bug.
Could you please provide us direct link or better build the demo with all included files?
Answer posted by Sunchaser on Oct 28, 2008 15:56
Hi,

When you say "build the demo with all included files", if it means that the code in this included files will visible, in that case I think I can't do that -> these files are from Cognos "engine" (I've the licence to use this product of course) and I don't think that I've the right to put them "out of their environment".
I think I'm going to see with them too what could be the problem (they are supposed to know perfectly the process that generate the structure of the page)
Thanks.
Answer posted by Support on Oct 29, 2008 09:30
Maybe you can provide us direct link?
You can sent it to support@dhtmlx.com if it is secure.
Answer posted by Sunchaser on Oct 29, 2008 16:46
Hi,

I finally successed in using dhtmlxLayout in my "environment" (Cognos html page), at the same time with the tabbar, grid, windows.
It's pretty fine.

In the same time, I found a solution for the dhtmlxEditor, even if I still have few layouts problems but it's more due to few errors from my side, so I won't talk about it.

The clue is hard to explain, but in fact (as the page is finally pretty complex) I had to understand correctly when I have to do the init() and attach() objects to each others, etc ... and found few "work around" to load the page with Cognos.

Great thanks, it's really good products, nearly I'll have a really nice thing.