Global

Oracle® JavaScript Extension Toolkit (JET)
3.2.0

E87541-01

QuickNav

Fields

Version:
  • 3.2.0

Fields

oj

Global exported Oracle JET namespace
Properties:
Name Type Description
version String JET version number
build String JET build number
revision String JET source code revision number
Source:

Methods

ajax(settings) → {Object}

Master Ajax entry point for all oj.Model and oj.Collection server interactions, when they are using the default sync implementations. oj.ajax passes through to jQuery ajax by default. See http://api.jquery.com/jquery.ajax/ for expected parameters and return value.
Parameters:
Name Type Argument Description
settings Object <optional>
optional ajax settings
Source:
Returns:
xhr object
Type
Object

sync(method, model, options) → {Object}

Master server access method for all models and collections. Replace oj.sync with a new implementation to customize all oj.Model and oj.Collection server interactions
Parameters:
Name Type Argument Description
method string "create", "read", "update", "patch", or "delete"
model Object Model (or Collection to be read) to be read/saved/deleted/created
options Object <optional>
to control sync
success: called if sync succeeds
error: called if sync fails
others are passed to jQuery
Options that would normally be passed to a customURL callback are also included
Source:
Returns:
xhr object
Type
Object