Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Phil on Sep 13, 2009 08:51
open dhtmlx forum
Statusbar

Hi,

I have this simple code in my project

var cadre = new dhtmlXLayoutObject(document.body, "2E");
var menu = cadre.attachMenu();
var status = cadre.attachStatusBar();
status.setText("Déconnecté");

With Firefox no problem on a PC or a Mac, but with Safari on a Mac an error occurs : status.setText is not a function.
Can you help me please ?

Thanks
Answer posted by Support on Sep 14, 2009 03:28
Hello,

Please try another variable name, not "status" (it seems "status" links to browser's status).
For example:
var sb = cadre.attachStatusBar();
sb.setText(...);