Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Charlie R Chisholm on Feb 07, 2009 06:06
open dhtmlx forum
tabWindow() is null

I am trying to run a function that is inside a tabbar content page usiing tabWindow(tab_id) and I get a  'tabbar.tabWindow(...)' is null or not an object error message. 

I have tried....

var f = tabWindow('t3');

tabWindow('t3').functionName();

and several other variations and always get the message above.   The tabbar IS named tabbar and the tabbar works fine.

Answer posted by Alex (dhtmlx support) on Feb 09, 2009 06:30

Do you use iframe-based mode ? 

If yes, please, check that you call function when the content of the iframe is already loaded. Possibly you need to set some timeout. tabWindow returns the window object of the page inside iframe.

window_object = tabbar.tabWindow(tabId);