PDA

View Full Version : OnChange Event


Jenise
06-09-2003, 06:53 PM
Hello,

I want to give users the ability to update a form and see their results instantly. Is there a way I can combine the OnChange event with ASP so when they update a text box or drop down list, I can update the database record during this event?

If I can't use the onchange event, what way would you suggest.

Thank You,
Jenise

skriptkiddie
06-09-2003, 11:33 PM
Most used method is when you update the form have it submit where it inserts the change and then redirects back to the page which will then show the updated data.

Hope that makes sense.

Jenise
06-10-2003, 10:52 AM
Thanks for the advice.

amir
06-12-2003, 11:59 AM
if you mean that you want to display the data selected as it is selected you can use this:
<script lang="javascript">
function submit(){NameOfForm.submit;}
</script>
<body>
<form name="NameOfForm">
<select onchange="submit()">