Ive googled this to death…i thought there would be lots of info on it but it seems not. I have a select box with options such as sort by price, sort by brand etc…i want to reload the page when the user chooses a new sort option from the drop down. So i dont want them to have to push a submit button or anything…the page just reloads as soon as they select…maybe this involves javascript but i think its a php related question so i posted here.
Before you do anything, be aware this is a bad thing from a usability point of view. Some browsers fire the onchange event when the mousewheel changes the selection, or the user moves up and down through the options with their cursor keys. If your page refreshes every time they do this, they’ve going to quickly get frustrated and go elsewhere.
If you are going to do it, make it unobtrusive. Give non-JS users a fully working form (with submit button) and then use javascript to modify your form to suit JS-users. AJAX might be a nice way of stopping the whole page from refreshing (although that comes with it’s own set of usability/accessibility gotchas).