Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Billy D on Oct 04, 2008 23:03
open dhtmlx forum
access a js function in tabbar iframe

Hi,
I created a tabbar using iframe, now in the setOnSelectHandler handler, i want to access a JS function that is included in the active tab's HTML. How do i do it?

I'm looking something like the following: window.frames[0].a_function();

Thanks,
Billy
Answer posted by Support on Oct 06, 2008 03:16
Tabbar has a tabWindow method , so call of method inside tab's iframe will look as

tabbar.tabWindow(tabID).a_function();