Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by dactar on Mar 24, 2008 09:52
open dhtmlx forum
dhtmlxwindows vs doctype strict mode

Hellow,

dhtmlxwindows is very cool except that the header of windows are not compatible with the doctype in strict mode. Can you do something ? I just use dhtmlxwindows.css and dhtmlxwindows_standard.css

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Thanks a lot :)
Answer posted by Support on Mar 25, 2008 04:07
Unfortunately problem can't be reconstructed locally. Is problem occurs on some standard samples or only  with your custom code ?
In second case please provide any kind of sample where it can be reconstructed ( you can send it directly to support@dhtmlx.com )
Answer posted by dactar on Mar 25, 2008 04:48
With very simple custom code (build in sample/init directory) :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
        <title>Very Very Minimal Init</title>

        <link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxwindows.css">
        <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxwindows_standard.css">

        <script  src="../../codebase/dhtmlxcommon.js"></script>
        <script  src="../../codebase/dhtmlxwindows.js"></script>

</head>
<body>
<script type="text/javascript">

        var dhxWins = new dhtmlXWindows();
        dhxWins.enableAutoViewport(false);
        dhxWins.setViewport(350, 50, 400, 400);
        dhxWins.vp.style.border = "#909090 1px solid";
        dhxWins.setImagePath("../../codebase/imgs/");
        dhxWins.createWindow(1, 0, 0,320, 200);
</script>
</body>



Answer posted by dactar on Mar 27, 2008 04:27
I'm using Firefox 2 if it can help :)
Answer posted by Support on Mar 27, 2008 07:12
Please check attached sample, it uses exactly the same code but works fine in case of FF
Attachments (1)
Answer posted by dactar on Mar 27, 2008 10:00
I've tested the attachment.
I've the same problem.

After many tests, I can say that :

   - there's no problem with FF and Windows
   - there's a problem with FF and Linux

Can you reproduce the problem on Linux ?
Answer posted by Support on Mar 28, 2008 02:44
In theory - there must not be difference on DOM level between FF on Windows and FF on Linux.
Can you provide some more details about problem - which version of FF you are using and on which Linux distributive ?
Answer posted by dactar on Mar 28, 2008 03:52
I'm using FF 2.0.0.12 with Ubuntu distribution and it's not ok.

I've also tried latest version of FF 2.0.0.13 and it's ok on windows but not on linux.

You can see the result on the attachment. (white color on the header is transparent).


Attachments (1)
3.png4.56 Kb
Answer posted by Support on Apr 01, 2008 10:26
Problem confirmed and fixed, fix will be available as part of next build if you need it ASAP, just add next rules to your local copy of dhtmlxwindow.css


div.dhtmlx_window_active table.dhtmlx_wins_standard td.dhtmlx_wins_td_header_full table.dhtmlx_wins_header td.dhtmlx_wins_td_header_middle {
    font-size:2px;
}

div.dhtmlx_window_inactive table.dhtmlx_wins_standard td.dhtmlx_wins_td_header_full table.dhtmlx_wins_header td.dhtmlx_wins_td_header_middle {
    font-size:2px;
}

Text in bold - name of used skin

Answer posted on Apr 02, 2008 14:20
Yes, it works ! Good Job ! :) Thanks a lot :)