I have a classic ASP site I maintain for a friend, part of which consists of a framework providing a "wizard" interface with navigation buttons (i.e., "Next" and "Previous"). The buttons have the same name and id of 'navButton', and have an onClick() event that invoke a function to perform some client-side validation prior to actually allowing the form.submit() to proceed. The server-side code manages navigation by detecting which button the user has clicked. This code has been working for years.
Now we're getting feedback from some users that navigation doesn't work. On inspection, I've found that if the users are running a WebKit-based browser (Chrome, Safari, etc.), the navigation button object ('navButton') is missing from the query string returned by the Request object. In both IE and FireFox, the button is present in the query string.
I've found this to be the case for both type='submit' and type='button'. The only workaround is to use a hidden field to pass the identity of the clicked button, which should not be necessary.
Has anyone else seen this behavior? This would seem to be a bug in WebKit, though I don't know whether the spec requires browsers to pass inputs of type submit or button.
Thanks!
Now we're getting feedback from some users that navigation doesn't work. On inspection, I've found that if the users are running a WebKit-based browser (Chrome, Safari, etc.), the navigation button object ('navButton') is missing from the query string returned by the Request object. In both IE and FireFox, the button is present in the query string.
I've found this to be the case for both type='submit' and type='button'. The only workaround is to use a hidden field to pass the identity of the clicked button, which should not be necessary.
Has anyone else seen this behavior? This would seem to be a bug in WebKit, though I don't know whether the spec requires browsers to pass inputs of type submit or button.
Thanks!