client side way

G

Guest

hey all,

i have an asp.net page that has a drop-down list databound to a table. i
like the auto postback feature in that as soon as a user selects an item in
the dropdownlist it takes that value and places it in a summary textbox.

however, i don't like the fact that it has to make trip to the server to do
this (the page flickers and the experience is interrupted).

is there a way to do all this on the client-side with like javascript?

thanks,
rodchar
 
D

darrel

is there a way to do all this on the client-side with like javascript?

google 'ajax.net' for an option.

-Darrel
 
B

Bruce Barker

yes. get any book on javascript. but the code is trival.

<html>
<form>
<input type="text" id="myText" name="myText">
<select
onchange="getElementById('myText').value=this.options[this.selectedIndex].text">
<option value=1>value 1</option>
<option value=2>value 2</option>
<option value=3>value 3</option>
</select>
</form>
</html>

-- bruce (sqlqowkr.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,127
Latest member
CyberDefense
Top