Hi all, I have web application which is developed using struts,jsp and i have used WeBFX tabpane for tab everything is working fine but now i am trying to implement ajax in my applicaation.AJax is working fine but the problem i am facing in dynamic selection of tab .WEbFx code can be found in http://webfx.eae.net/dhtml/tabpane/tabpane.html.The tab object is created in jsp tp1 = new WebFXTabPane( document.getElementById( "tabPane1" ) );</SCRIPT> where tabpane1 is div and there after u keep adding tab by using
tp1.addTabPage( document.getElementById( "tabPage1" ) ); where tabPage1 is again div this way we create tab then particular tab can be selected by using tp1.setSelectedIndex(2); where 2 represent second div now in my ajax script function processStateChange1() { if (req.readyState == 4) { // Complete if (req.status == 200) { var decimal = document.getElementById('ajaxselectedh'); decimal.innerHTML = req.responseText; //setupAllTabs(); // tp1.setSelectedIndex(2); } else { alert("Problem with server response:\n " + req.statusText); } } } when i do tp1.setSelectIndex it is not working -- You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en