|
Posted by Alex on 12/28/06 14:54
Jonathan N. Little wrote:
> 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
Hi Jonathan,
Thanks for the reply, but the only problem I see is that how will the
browser know what page to forward the user to? If the user clicks the
tab for say page 3 and they're on page 1, I want it to forward the user
to page 3 and not whatever page is blindly set by Action in the FORM
tab.
As for submit buttons in of themselves, I'm trying to keep a themed
look and feel with the tabbed menus, and submit buttons up there will
look odd.
Thanks again for the suggestion, but I'm not sure if it'll work for my
application. Take care,
Alex
[Back to original message]
|