Finalize and clarify any wording in the documentation or changelog regarding the Win/IE hidden element added for a default action. Which action is default? How can the developer specify or force a default?, etc. (Within our ability to understand browser default behavior.)
Actually, I think the “default” method in Marmot ignores any browser issues (or should). Rather than relying on what the browser may happen to pick as a default, Marmot sets the “default” as a hidden form item. Since PHP doesn’t cumulatively build values, any clicked button overwrites the hidden element of the same name, leaving us with the value of the button the user clicked.
If the user presses enter and the browser doesn’t submit a button name, the default value is used.
February 18th, 2004 at 2:47 pm
Finalize and clarify any wording in the documentation or changelog regarding the Win/IE hidden element added for a default action. Which action is default? How can the developer specify or force a default?, etc. (Within our ability to understand browser default behavior.)
February 19th, 2004 at 10:13 am
Actually, I think the “default” method in Marmot ignores any browser issues (or should). Rather than relying on what the browser may happen to pick as a default, Marmot sets the “default” as a hidden form item. Since PHP doesn’t cumulatively build values, any clicked button overwrites the hidden element of the same name, leaving us with the value of the button the user clicked.
If the user presses enter and the browser doesn’t submit a button name, the default value is used.