PL- SQL and JavaScript Arrays

Tutorials Shared by the Internet Community

Advertisements


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.

Statistics

  • Total Hits - 37966

  • Total Votes - 123 votes

  • Vote Up - 52 votes

  • Vote Down - 71 votes

  • Domain - joelennon.com

  • Category - Oracle/Oracle Misc

  • Submitted By - Shekhar

  • Submitted on - 2008-04-15 01:52:43

Description

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.

Source Website

Please use the following link to visit the site. There is a possibility that this content has been removed from the given URL or may be this site has been shut down completely.

http://joelennon.com/?q=plsql-jsarrays

Broken  |   Save  |   Liked  |   Down

Advertisements