[eluser]jtotheb[/eluser]
I've got an app that i've made but i'm not happy with the way it works for the end user, i feel it may be a bit counter intuitive so i hoped someone could provide some advice.
The app is a series of forms for the user to select or deselect options. The forms are split into tabs. So there are 5 tabs, and each tab contains a form. Each tab is a real page and not ajax tabs.
The way it works at the moment is that someone makes their amendments on a tab and then click a submit button that runs a query with the new values and gives them a number back. Then they move on by clicking another tab to go to another form. You don't have to fill the forms in any particular order and you can go back and forth too. What i'm finding is that people are using the form but then clicking on a new tab and forgetting to click the submit button and so losing their changes.
What i think i want to happen is that when they click on another tab, it submits the form and then moves them onto the new tab that they clicked on. The only trouble is i don't know how to make the tabs submit the current form and then move onto the relevant tab they clicked on. Is this something i can do with javascript? Could anyone provide a bit of sample code if so?
I'd really appreciate any help with this!