• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Web Application: how to add ressources (images, CSS, javascript,...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web Application: how to add ressources (images, CSS, javascript,...)


  • Subject: Re: Web Application: how to add ressources (images, CSS, javascript,...)
  • From: Art Isbell <email@hidden>
  • Date: Mon, 25 Aug 2003 15:23:41 -1000

On Monday, August 25, 2003, at 11:22  AM, Dev WO wrote:

-All the stamp will be in a MySQL database/tables, is there any way to generate some part of the web pages (like the list of the stamp for a collection, or the form where you select them to add to the shopping cart)? How would you do that?

Direct To Web takes an eomodel and creates Web pages that support fetching, inserting, deleting, and updating objects. But these pages are usually not exactly what a developer wants to end up with, so they must usually be customized. For someone new to WO, concentrating on a traditional WO app might be a better way to start. You'll probably learn more by creating your own Web pages yourself at first.


-Is there a sample shopping cart for WO available somewhere to see how it works?

Because a shopping cart page is usually designed specifically for the intended use, a generic shopping cart implementation may not be too useful.


Basically, a shopping cart can be implemented by declaring in your Session class a NSMutableArray instance variable with appropriate accessor methods (e.g., addToShoppingCart(), removeFromShoppingCart(), shoppingCart()). Then in each page in which objects can be added to the shopping cart, invoke ((Session)session()).addToShoppingCart(anObject). You would also include a ShoppingCart page that displays the shopping cart items in a WOTable with a WORepetition that adds a table row for each object in ((Session)session()).shoppingCart(). The shopping cart table's columns would display attributes of the object (e.g., description, price) that would allow the customer to identify each object. You would also want to be able to specify the quantity of each item, be able to delete items, recalculate the total price, etc. This isn't difficult to implement in WO.

Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: shopping carts
      • From: Arturo PĂ©rez <email@hidden>
References: 
 >Web Application: how to add ressources (images, CSS, javascript,...) (From: Dev WO <email@hidden>)

  • Prev by Date: Re: 4.5 question - _holdMe array trick
  • Next by Date: the height is still not working...
  • Previous by thread: Re: Web Application: how to add ressources (images, CSS, javascript,...)
  • Next by thread: Re: shopping carts
  • Index(es):
    • Date
    • Thread