When working with JavaScript, the best practice is to create your own custom classes. JavaScript functions are used to represent
class objects in the type system. The AJAX Library follows the pattern of declaring a function as the class constructor. JavaScript
allows you to modify the prototype of the function directly, which is how the AJAX Library creates class members. The class must
then be registered so that it can participate in the semantics of the type system.
Situation
Working with elements of Bible scripture such as Bible texts (e.g., "For God so loved the world..."), Bible references (e.g.,
Jn 3:16, Eph 2:8-9, 1 Cor 10:31), and Bible versions (e.g., NASB, NIV, KJ) is tedious, repetitive, and error-prone. Christian Web
developers are often distracted by these elements and lose focus on the bigger picture of creating appealing web pages that are
consistent with the church website styles and themes.
Target
Christian Web developers need a client framework to allow them to manage Bible texts, Bible references, and Bible versions.
They also need a way to generate Bible references in a consistent format (e.g., Jn 3:16 :: NASB).
Proposal
We will create a client framework based on the Microsoft AJAX Client Library to manage Bible texts, Bible references, and
Bible versions, and generate Bible references in the traditional format (e.g., Jn 3:16 :: NASB).
Sample Bible Text
"For God so loved the world, that He gave His only begotten Son, that whoever believes in Him shall not perish, but have eternal life."
Sample Bible Elements
Book: Gospel of John, Chapter: 3, Verse: 16, Version: New American Standard Bible (NASB)
Sample Bible Reference
Jn 3:16 :: NASB