
January 29th, 2004, 10:25 AM
|
|
Registered User
|
|
Join Date: Jan 2004
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Populating Textareas depending on listbox selection
Hi,
I am currently developing my company's Intranet, adding new pages and modifying existing, using ASP VBScript and client side Javascript. I have hit a problem as follows:-
I populate a listbox during page load, using a SQL Server stored procedure. This is no problem, but when a user selects from this listbox I need to populate some textareas with data held in the database, related to the users selection. I am trying to do this without any user intervention, i.e. they change the listbox and the textareas are populated with the relevant data. Can anyone help with how I can retrieve the related data after the user has made their selection and then how I can populate the textareas at this point. I have tried using the onChange handler within the text area definition, this works fine and calls the specified Javascript, from which I can write hardcoded data into the textareas, but I can't figure how to retrieve the data at this point then write this retrieved data to the textarea. Any help would be appreciated. Thanks.
|