Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pyt on Jan 15, 2009 09:08
open dhtmlx forum
statusbar

Hi,
i'm trying to attach a statusbar to a window. I use this codes:

<script src=".../dhtmlx/dhtmlxwindows_sb.js"></script>
..
..
var w2 = dhxWins.createWindow("w2",0,0,200,200);
w2.setText("showNotes");
var stausBar = w2.attachStatusBar();
statusBar.setText("Test");

and i have this error:

uncaught exception: [Exception... "Component returned failure code: 0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMHTMLDivElement.appendChild]" nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: .../dhtmlx/dhtmlxwindows_sb.js :: anonymous :: line 28" data: no]

Can you help me?
Thanks in advance!
pyt
Answer posted by Support on Jan 16, 2009 05:09
Hello,

All work fine on our side. Here is a demo:
http://dhtmlx.com/docs/products/dhtmlxWindows/samples/components/status.html?un=1232111395000
Could you please provide completed demo?

Answer posted by pyt on Jan 23, 2009 07:11
It works.Thank you.
Is it possible to change the style and font of text in statusbar?
Answer posted by Support on Feb 03, 2009 09:31
Edit the dhtmlxwindows_dhx_blue.css file, find here:

div.dhtmlxWebStatusBarInWin_dhx_blue {
    ....