|
Posted by Jonathan N. Little on 12/28/06 14:48
Alex wrote:
> Hello,
>
> I hope I can explain this properly. I'm writing an application with a
> tabbed-based navigation, and a form which gets filled out by users will
> be split into 5 subtabs. What I need is instead of the user needing to
> hit a SUBMIT button each time the form within a tab is complete (Before
> clicking the next tab), I want clicking any tab to submit the data.
> I'm affraid that by not doing this, people will fill out the data in
> tab 1, click tab 2, fill it out, click tab 3, and so on... and none of
> their data will be submitted.
<snip>
> Here's an example:
>
> <li><a href="/CaseRecord/?page=OR" class="here">Surgical/OR</a></li>
> <ul>
> <li><a href="/CaseRecord/?page=Surgical" class="here">Page 1</a></li>
> <li><a href="/CaseRecord/?page=Surgical2" >Page 2</a></li>
> <li><a href="/CaseRecord/?page=Surgical3" >Page 3</a></li>
> <li><a href="/CaseRecord/?page=Surgical4" >Page 4</a></li>
> <li><a href="/CaseRecord/?page=Surgical5" >Page 5</a></li>
> </ul>
>
<snip>
How about putting your submit buttons in the tabs and forego the
JavaScript and the links
<form action="/CaseRecord" ...
<ul class="tabbedButtons">
<li><input type="submit" name="page" value="Surgical"></li>
<li><input type="submit" name="page" value="Surgical2"></li>
<li><input type="submit" name="page" value="Surgical3"></li>
<li><input type="submit" name="page" value="Surgical4"></li>
<li><input type="submit" name="page" value="Surgical5"></li>
....
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|