Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ram Chander Singh on Feb 25, 2009 04:39
open dhtmlx forum
dhtmlxTabbar

Hi,

I have implemented Tabbar "a,b".

dhxTabbar.setHrefMode("iframe");
//dhxTabbar.setHrefMode("ajax-html");
dhxTabbar.addTab("a1","History","100px");
dhxTabbar.addTab("a2","LoadItem","100px");

dhxTabbar.setContentHref('a2','http://abc.com?addItem=item1');
dhxTabbar.setContentHref('a2','http://abc?addItem=item2');

Issue here is i have to reload 'abc.com' to add item, but iam not able to trace iframe to , it dosen't have id ,

Can you please help me how to trace iframe inside 'a2'.



Regards,
Ram
Answer posted by Support on Feb 25, 2009 05:23
You can access window inside the tab as
         dhxTabbar.tabWindow("a2")
or just use 
         dhxTabbar.forceLoad("a2","some new url")
Answer posted on Feb 25, 2009 06:05
Iam getting errot "this._hrefs is undefined".

var dhxTabbar =workspaceLayout.cells("b").attachTabbar();
    dhxTabbar.setImagePath("/javascripts/dhtmlx/dhtmlxTabbar/codebase/imgs/");
    dhxTabbar.setHrefMode("iframe");
    dhxTabbar.addTab("a1","History","100px");
    dhxTabbar.addTab("a2","Loaditem","100px");
  dhxTabbar.forceLoad("a2","abcdemo.com?addItem=item1")
Answer posted by Support on Feb 25, 2009 06:16
There are two commands in tabbar 
   dhxTabbar.setContentHref - assign url to the new tab
   dhxTabbar.forceLoad - reload already existing tab with new url
Answer posted on Feb 25, 2009 06:30
if iam using "dhxTabbar.forceLoad" function iam getting error:

this._content[tab.idd] is undefined

Can you help in findout why iam getting this error?


Regards,
Ram