
February 7th, 2008, 02:00 AM
|
|
Developer Shed
|
|
Join Date: Jun 2007
Posts: 9,703
Time spent in forums: < 1 sec
Reputation Power: 11
|
|
|
PL/SQL and JavaScript Arrays
Today I was working on part of a web application, and I encountered the need to populate a textbox with a value from the database, based on what value the user had selected from a drop-down list. I needed to incorporate this functionality without changing the value of list items. Because of the nature of web pages, this is trickier than you might think. The solution I came up with was to load the required data into an array, indexed by the drop-down list values. This allowed me to set the value of the textbox to the relevant value in the array, without a page refresh in sight.
Read the full article here: PL/SQL and JavaScript Arrays
|