You could also do this with an iframe which should be easier.
The outline of your page would be sort of like this.
--------------------------
<script>
function fetchuserinfo(uid){
vIframe = document.getElementById('m
vIframe.src = '/fetchuser.asp?uid=' + uid
}
</script>
<select name='userlist' onchange='fetchuserinfo(th
<option value='1'>Bob</option>
<option value='2'>Doug</option>
</select>
<iframe width='100%' height='350px' id='myiframe' src='' frameborder='0' scrolling='auto' />
--------------------------
fetchuser.asp would contain your call to the db and return the HTML to disply the user details.
Main Topics
Browse All Topics





by: vincent_figoPosted on 2006-05-19 at 02:19:29ID: 16716350
You need AJAX to do that, and you'll have to build a webservice... I suggest you dig in into these topics... you can find lots of tutorials on the net regarding these options... Explaining them here would be quite hard... :)