object programming l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Object programming PowerPoint Presentation
Download Presentation
Object programming

Loading in 2 Seconds...

play fullscreen
1 / 5

Object programming - PowerPoint PPT Presentation


  • 332 Views
  • Uploaded on

Object programming Method Properties top.hidden cart.html with the following functions: 1.addcart(desc, price) 2.additem(desc, price, itemcnt) 3.viewcart() 4.prtitem(where) 5.delitem(itemcnt) jackson.html with the following buttons: Place order View order top.main

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Object programming' - paul


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
object programming
Object programming

Method

Properties

slide2

top.hidden

  • cart.html with the following functions:
  • 1.addcart(desc, price)
    • 2.additem(desc, price, itemcnt)
  • 3.viewcart()
    • 4.prtitem(where)
    • 5.delitem(itemcnt)
  • jackson.html with the following buttons:
  • Place order
  • View order

top.main

Jackson electronic example

shopping cart logic
Shopping cart logic
  • cart.html is always accessible in top.hidden frame
  • jackson.html is displayed in top.main frame
  • When the [Place Order] button is clicked, the addcart function is called, passing along the product description and price from the order
  • The addcart function will call the additem function to store the description, price, and current count of the item onto the shopping cart  an alert message is issued as confirmation that the additem function is successfully executed 
  • Steps 3 and 4 will be repeated until the user clicks the [View Order] button which triggers the viewcart function
  • The viewcart function will display the content of the cart object in top.main frame as a table by calling the display method of the cart object  prtitem function with a delitem function link
slide4

top.hidden

cart.html with the following functions:

1.additem(desc, price, itemcnt)

2.delitem(itemcnt)

3.addcart(desc, price)

4.prtitem(where)

5.viewcart()

banner.html with image map: banner.jpg

brkfst.html

lunch.html

dinner.html

top.main

Kelsey’s Diner example

shopping cart logic5
Shopping cart logic
  • cart.html is always accessible in top.hidden frame
  • Assume brkfst.html is displayed in top.main frame
  • user selected an item off the menu by clicking on the Orderlink which triggers the addcart function with its description and price
  • The addcart function will call the additem function to store the description, price, and current count of the item onto the shopping cart  an alert message is issued as confirmation that the additem function is successfully executed 
  • Steps 3 and 4 will be repeated until the user clicks the View Order link which triggers the viewcart function
  • The viewcart function will display the content of the cart object in top.main frame as a table by calling the display method of the cart object  prtitem function with a delitem function link