Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Dominik on Nov 14, 2007 23:59
open dhtmlx forum
Form within Tabbar with submit button outside tabbar

I would like to have a form within a tabbar and a submit button outside the tabbar. How can I submit the values in the form WITHIN the tabbar (or access these values from outside the tabbar) on the same page?
Answer posted on Nov 15, 2007 01:09
If tabbar uses default or ajax based mode - the form is part of page and can be accessed directly

<form name="a1"...


document.forms['a1'].submit();


If tabbar uses iframes form can be accessed as

mytabbar.tabWindow(id).document.forms['a1'].submit();

where id - id of tab in which form loaded