This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have one form with many links in it. Each link has its own specifics to be submitted. Let me try to make it simple and explain:
The first link is associated with sortKey="firstName" and orderKey="ASC" The second link is associated with sortKey="firstName" and orderKey="DESC" The third link is associated with sortKey="lastName" and orderKey="ASC" The fourth link is associated with sortKey="lastName" and orderKey="DESC"
Therefore, all the text fields, text area, menu selections in that form together with the link specifics are submitted when each link is clicked.
You could have 2 hidden fields. 1 for the sortKey and 1 for the orderKey. When you click a link, change the values of the hidden fields depending on which link you clicked and then to document.myForm.submit();