Hi,
I have encountered a funny problem with toolbars.
In one toolbar the onclick-event does seem to not register correctly. Other toolbars, seemingly similar, have no problems.
MAINtoolbarTopAvd = new dhtmlXToolbarObject(“divToolTopAvd”);
MAINtoolbarTopAvd.setSkin(“dhx_terrace”);
MAINtoolbarTopAvd.setIconsPath(“v21js/dhtmlx_icons/”);
MAINtoolbarTopAvd.attachEvent(“onStateChange”, this.MAINtoolbarAvdEvent);
MAINtoolbarTopAvd.attachEvent(“onClick”, this.KARTAtoolbarAvdEvent);
A click on a Button or ButtonSelect gives:
TypeError: this.dhxevs.data[name][a] is undefined.
I have traced this to function obj.callEvent in dhtmlxcommon.js.
In the line: r = this.dhxevs.data[name][a].apply(this, params) && r;
name=‘onclick’, a = ‘6’ and params = ‘rapp-DYN’ ( which is the itemid ).
dhtmlx 4.4.
What could possibly cause this?
/BJDA