spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column120


IBuySpy Store, Part II: JScript Components

Sr Instructional Designer D2L-Moodle,Clearance
WSI Nationwide, Inc.
US-NJ-Fort Monmouth

Justtechjobs.com Post A Job | Post A Resume
Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs


Compiling Components

IBuySpy Store does most of its business logic and interaction with the MSSQL database through five JScript .NET components. These .js files reside in the Components folder under the Web site's root, C:\StoreDOCJS\StoreDOCJS. These are the five JScript .NET files:

  • CustomersDB.js
  • OrdersDB.js
  • ProductsDB.js
  • ReviewsDB.js
  • ShoppingCartDb.js

As you can tell from the names, each component's role is to take care of another part of the Web site's business activity: customers, orders, products, reviews, and the store shopping cart.

The sixth file in the Components folder is the make file, mk.bat, which compiles all five components into a single dll file, StoreJS.dll. This is what the file mk.bat looks like:

jsc /t:library
  /out:..\bin\StoreJS.dll
  /r:System.dll /r:System.Web.dll /r:System.Xml.dll
    /r:System.Data.dll
  CustomersDB.js OrdersDB.js ShoppingCartDB.js
    ReviewsDB.js ProductsDB.js

As you can see, the dll file is stored in the bin folder, next to the Components folder. In fact, StoreJS.dll is the only file in the bin folder.


Next: The contents of the JScript components

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: October 7, 2002
Revised: October 7, 2002

URL: http://www.webreference.com/js/column120/5.html