Utility methods
Ojay has a handful of utility functions that don’t really fit into any of its specific
modules and are available through the Ojay namespace.
Required files
http://yui.yahooapis.com/2.6.0/build/yahoo-dom-event/yahoo-dom-event.jshttp://yui.yahooapis.com/2.6.0/build/selector/selector-beta.jshttp://yoursite.com/ojay/js-class.jshttp://yoursite.com/ojay/core.js
Available methods
Ojay.byId(id)– can be used to grab an Ojay collection by ID in situations where your page contains IDs that will trip up the CSS interpreter. For example:var myElement = Ojay.byId('site:model.user.email');
Ojay.getDocumentSize()– returns an object withwidthandheightproperties representing the size of the document.
Ojay.getScrollOffsets()– returns an object withleftandtopproperties that represent the current scroll state of the page.
Ojay.getViewportSize()– returns an object withwidthandheightproperties representing the size of the visible area of the document within the window.
