mboxDefine() and mboxUpdate() - at.js 1.x

Define and update an mbox in Adobe Target.


These functions are available for at.js versions 1.x only. These functions were deprecated with the release of at.js 2.x. These functions return default content if used with at.js 2.x.

mboxDefine() and mboxCreate() are tied to HTML DIV elements where the offer should be displayed. These HTML DIV elements should have the mboxDefault class. If the HTML elements won’t have this class attached, you could see some noticeable flicker.


Creates an internal mapping between a nodeId and an mbox name, but does not execute the request. Used in conjunction with mboxUpdate(). Built into at.js mostly to ease the transition from mbox.jsto at.js.


Executes the request and applies the offer to the element identified by the nodeId in the mboxDefine(). Can also be used to update an mbox initiated by mboxCreate. Built into at.js mostly to ease the transition from mbox.js to at.js. mboxDefine()/ mboxUpdate() could be replaced by adobe.target.getOffer() and adobe.target.applyOffer() using the selector option.


<div id="someId" class="mboxDefault"></div> 

On this page