7. Specification 1
The application should disable the Alternate
Number field until the Phone Number field is
filled in.
– When: Phone Number is null
– Action : Disable
– What : Alternate Phone
– ( False: Enable Alternate Phone )
8. Specification 2
The application should hide the List Price and
Product Image if the Product Available is No.
– When: Product Available = ‘N’
– Action : Hide
– What :
• List Price
• Product Image region
– Opposite :
• Show List Price
• Show Product Image region
9. Specification 3
The application should have a button that
allows users to increase all customers credit
limit.
– When: Button clicked
– Action : Update credit limit
– What : [none]
10. Specification 4
The application should set Credit Limit’s color
according to the amount (green if < 5000, red
if > 5000).
– When : Credit Limit changes
– Action : Change color
– What : Credit Limit itself
15. Learn about HTML and the DOM
• What is the DOM?
– Document Object Model
– How your browser “sees” a web page
– Allows access /manipulation of content
• Methods
– Select elements
– Traverse the hierarchy
– Manipulate elements
• Events
– User actions fire events in DOM
– We can attach code to these events
• Like triggers in the DB
16. Learn JavaScript (jQuery)
• What is JavaScript?
– Well… it’s not Java!
– Client side (browser) scripting language
– Allows us to make HTML applications interactive
• jQuery & jQuery UI built in
– JavaScript libraries that make things easier
• Dynamic Actions are generating JavaScript
17. Learn CSS
• What is CSS?
– Cascading Style Sheets
– Rules that are applied to element
• Pertain to visual aspects: location, fonts, colors, etc.
– Closest rule wins (almost always)
• Selectors
– Used to target which elements rules are applied to
– Common selectors include
• HTML tag: input
• HTML ID: #the_elements_id
• Class: .the_elements_class
• Pseudo-class: a:hover
18. Specification 5
Edit customer in popup window and reflect
the changes immediately in the report.