Use B2C Commerce JavaScript to customize your ecommerce storefront
application.
For details on specific B2C Commerce Script API , see the B2C Commerce
API documentation.
- Use B2C Commerce JavaScript to:
- Add new calculations and logic to business processes
- Create business objects (data)
- Call web services
- Integrate back-end systems
- Process XML data
- Share information across users
- Use client-side processing to:
- Validate user input (for example, checking values entered in
forms)
- Prompt users for confirmation and showing error or
informational boxes
- Conditionalize HTML
- Perform other functions not requiring information from the
server
Industry Standards
B2C Commerce JavaScript is Rhino JavaScript, including ECMAScript 5,
Mozilla extensions up to JavaScript 1.8, and E4X.
In addition B2C Commerce supports:
- Optional type specification support from JavaScript 2.0/ECMA 4th edition proposal and
ActionScript.
- ECMAScript 5 compatibility fix for the global parseInt(String)
function
B2C Commerce also reproduces a few nonstandard behaviors for older
compatibility modes.
var a: String
var p: dw.catalog.Product