Apr 01, 2009, 12:13 PM
Need help with Ajax Tab
Hi,
I'm building a dynamic tabpanel which build the tabs base on user setting. Here's the code that build the tab
Thanks
newbie
I'm building a dynamic tabpanel which build the tabs base on user setting. Here's the code that build the tab
// Start adding individual tab
CL.Tab tab = new CL.Tab();
tab.ID = tabID;
tab.Title = sTitle;
tab.Height = 498;
tab.AutoScroll = true;
tab.AutoLoad.Url = "chartTab.aspx?VTID=" + iTypeID.ToString();
tab.AutoLoad.ShowMask = true;
tab.AutoLoad.MaskMsg = "Loading...";
tab.AutoLoad.Mode = CL.LoadMode.IFrame;
tpWinSight.Tabs.Add(tab);
My question is, can I use a javascript function to render the URL for me and put in the tab.AutoLoad.Url like this:...
tab.AutoLoad.Url = someJavascriptFunct(iID);
...
I try to put the javascript function in there but it render "someJavascriptFunct(iID)" as string instead of the result of that javascript function. Thanks
newbie