|
Posted by Richard Cornford on 12/28/06 15:42
Alex wrote:
> Jonathan N. Little wrote:
>> Alex wrote:
<snip>
>>> ... . 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.
<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>
<snip>
> Thanks for the reply, but the only problem I see is that
> how will the browser know what page to forward the user to?
Why ask the browser to do the forwarding? Server side languages can do
that, and base their decision about where to forward to upon the value,
or name, of the submit button used.
<snip>
> 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.
<snip>
Submit buttons can be styled with CSS (more or less) and there are some
other options, such as <button type="submit">...</button> (though the
name/value pairs sent with that element are inconsistent across browsers
and so need extra work on the server to accomodate).
Richard.
[Back to original message]
|