Categories | Question details Back To List | ||
dhtmlxtabbar i'm using dhtmlxtabbar....... on each tab calling i'm calling action class......to show each tab selected i'm using screenName variable to decide which tab will open. and include innerhtml for tab content using ajax. <div id="a_tabbar" hrefmode = 'ajax-html' class="dhtmlxTabBar" imgpath="<%=request.getContextPath()%>/images/" style="width:975px; height:350px; margin:auto" skinColors="#FFFFFF,#AADAFD" > <%if(screenName.equals("Create")){ %> <div id="create" name="Create" selected='<%=(screenName=="Create"?"1":"0")%>' href='tab_create.jsp' style="overflow:hidden"></div> <%} else if(!screenName.equals("Others")){ %> <div id="create" name="Create" selected='<%=(screenName=="Create"?"1":"0")%>' href='advancefind.do?dispatch=init&tasktype=Create' style="overflow:hidden"></div> <%}%> <%if(screenName.equals("Maintain") ){ %> <div id="maintain" name="Maintain" selected='<%=(screenName=="Maintain"?"1":"0")%>' href='tab_maintain.jsp' ></div> <%} else if(!screenName.equals("Others") ) { %> <div id="maintain" name="Maintain" selected='<%=(screenName=="Maintain"?"1":"0")%>' href='advancefind.do?dispatch=init&tasktype=Maintain' ></div> <%}%> </div> now in tab_maintain i have two links..in wich again i'm calling action class...... now my probelm is when i fwd it to parentpage......it again call action automatically.......without clciking nay of tha tab...... Please halp me out..it's really very urgent for me....... Answer posted by Support on Oct 21, 2008 07:58 After init from HTML tabbar check the value of "select" attribute of main tabbar container, and if it empty - it selects the first tab. ( it not possible to init tabbar and have not any tab selected ) Instead of <div id="create" name="Create" selected='<%=(screenName=="Create"?"1":"0")%>' href='tab_create.jsp' style="overflow:hidden"></div> you can use <div id="a_tabbar" select="'<%screenName%>" ... <div id="create" name="Create" href='tab_create.jsp' style="overflow:hidden"></div> |