Shared Tutorials

Tutorials Shared by the Internet Community
Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Basic Detail

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.
http://joelennon.com/?q=plsql-jsarrays
  • Total Hits: 16740

  • Average Rating :
    Tutorial RatingTutorial RatingTutorial RatingTutorial RatingTutorial RatingTutorial Rating

  •  

  • Total Votes: 147 votes

  • Average Rating: 2.81 out of  5

  • Category: Oracle/Misc

  • Set as Favorite

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.

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 38.1%  56
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.88%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.56%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.88%  16
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.57%  42

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements