coffak
03-28-2011, 09:36 PM
Hello, I am using the tab content control (http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/demo.htm) and I have text inputs in every tab, but when I click to submit the form, I am only receiving the active inputs. So my question is, what can I do to get all the input from all the tabs when I submit the form?
this is my code for the html page that contains the tab control
<form id="fm-form" method="post" action="send_inputs">
<p>
- First tab shows default, inline content directly added inside container DIV<br />
- 2nd and 3rd tabs show external pages fetched via <b>Ajax</b><br />
- 4th tab shows an external page fetched via <b>IFRAME</b><br />
</p>
<ul id="countrytabs" class="shadetabs">
<li><a href="/CodeIgniter_2.0.0/APPS_app/html/correspondencia_view.htm" rel="countrycontainer" class="selected">Tab 1</a></li>
<li><a href="tab1.htm" rel="countrycontainer">Tab 2</a></li>
<li><a href="tab2.htm" rel="countrycontainer">Tab 3</a></li>
<li><a href="tab3.htm" rel="#iframe">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>
<div id="countrydivcontainer" style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
<p>This is some default tab content, embedded directly inside this space and not via Ajax. It can be shown when no tabs are automatically selected, or associated with a certain tab, in this case, the first tab.</p>
</div>
<input name="Submit" value="registrar" type="submit" />
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
<p><a href="javascript: countries.expandit(3)">Dynamically select last Tab</a> | <a href="demo.htm?countrytabs=1">Reload page and select 2nd tab using URL parameter</a></p>
<hr />
</form>
Thanks in advance
this is my code for the html page that contains the tab control
<form id="fm-form" method="post" action="send_inputs">
<p>
- First tab shows default, inline content directly added inside container DIV<br />
- 2nd and 3rd tabs show external pages fetched via <b>Ajax</b><br />
- 4th tab shows an external page fetched via <b>IFRAME</b><br />
</p>
<ul id="countrytabs" class="shadetabs">
<li><a href="/CodeIgniter_2.0.0/APPS_app/html/correspondencia_view.htm" rel="countrycontainer" class="selected">Tab 1</a></li>
<li><a href="tab1.htm" rel="countrycontainer">Tab 2</a></li>
<li><a href="tab2.htm" rel="countrycontainer">Tab 3</a></li>
<li><a href="tab3.htm" rel="#iframe">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>
<div id="countrydivcontainer" style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
<p>This is some default tab content, embedded directly inside this space and not via Ajax. It can be shown when no tabs are automatically selected, or associated with a certain tab, in this case, the first tab.</p>
</div>
<input name="Submit" value="registrar" type="submit" />
<script type="text/javascript">
var countries=new ddajaxtabs("countrytabs", "countrydivcontainer")
countries.setpersist(true)
countries.setselectedClassTarget("link") //"link" or "linkparent"
countries.init()
</script>
<p><a href="javascript: countries.expandit(3)">Dynamically select last Tab</a> | <a href="demo.htm?countrytabs=1">Reload page and select 2nd tab using URL parameter</a></p>
<hr />
</form>
Thanks in advance