October 7, 2002 - IBuySpy's ReviewsDB Component | WebReference

October 7, 2002 - IBuySpy's ReviewsDB Component

Yehuda Shiran October 7, 2002
IBuySpy's ReviewsDB Component
Tips: October 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

The JScript .NET component ReviwsDB.js handles the business logic of the IBuySpy Store reviews. In particular, it extracts reviews from the database, and adds new reviews to the database.

All IBuySpy components share the same IBuySpy namespace. The ReviewsDB.js component includes a single class: ReviewsDB. The ReviewsDB class includes the following method declarations:

  public class ReviewsDB {
    public function GetReviews(productID : int) : SqlDataReader {...}
    public function AddReview(productID: int, customerName: String, 
      customerEmail: String, rating: int , comments: String ) : void {...}
  }