Page 1 of 1

Change web page content when user selects a value from Combo

Posted: Thu Sep 26, 2002 7:43 pm
by vikaspa
Dear All,

Please help me !!

I want to sort the data displayed on web page on click of button.


I have a combo in which all user have to select the sort order in which he wants to see the data...(The combo box or drop down box contains values "Name, Department Salary and Grade)

The user select the order (say name) by clicking the combo box or drop down box.

The moment the user releases the combo or drop down box, I want to refresh the page with new sort order.

Posted: Fri Sep 27, 2002 12:35 am
by DoppyNL
add this attribute to you're select field.

Code: Select all

onchange="submit();"

make sure that the field is in a correctly configured form, it will then automaticly post when the value is changed.
for browsers wich have no javascript you can add a small button to submit the form.

Greetz Daan