Deselecting tabs in tabbar

I’ve this strange issue in this code.

if (… ) {

else {
parent.tabbar_application.setTabInActive();

dhtmlx.alert ({
title: “Avviso”,
type: “alert”,
text: “…”,
ok: “OK”
});

the issue is that when tabs are all unselected the following alert has not shown or better seems to be hidden under the unselected layout.

Talking of unselected layout in tabbar: is it possibile to attach something (image or layout object) to the unselected page of tabbar ?

Many thanks

Hi

Could you please provide us complete demo including all correspondnig js/css files?
Please also add information regarding current and expected behaviour.

Here is a small guide how to make a complete demo:
docs.dhtmlx.com/tutorials__auxil … pport.html

If you don’t want to share your demo here for any reasons - you can send it to support@dhtmlx.com, if so - please include link to this forum topic.

If you’re using PRO Edition please send your demo to support@dhtmlx.com

demobuild (2).zip (493 KB)

I built the attached demo to show the problem. Of course i built only a very small demo but how you can see the problem happens immediately. The strange issue is that the javascript alert has shown normally while the dhtmlx.message hasn’t shown.

surely it’ s due to the call made to parent.tabbar but why ?

In my previous post there is also another question !

Many thanks as Always.

Hi

thanks for demo. all works fine, the only thing you need is to add “parent” for dhtmlx.alert i.e. parent.dhtmlx.alert, because w/o it your alert appers in tab, but tab is hidden, that’s you can’t see it. you can execute your code, then just click on tab2 manually, tab becomes active you you will see hidden alert.

Great Andrei. It was the only one thing that i didn’t try. As always we try everything but the easiest way !!