Create an mbox with at.js 2.x

Avatar

Avatar

LordOfTheRings

Avatar

LordOfTheRings

LordOfTheRings

03-04-2020

Hi Team,

 

mboxCreate method doesn't work with at.j.
How could we create an mbox div at page level?

I tried with below code but no luck :

 

<div class="mboxDefault">
adobe.target.getOffer({
"mbox": "customTestMbox",
"params": {
"status": "true"
},
"success": function(offer) {
adobe.target.applyOffer( {
"mbox": "customTestMbox",
"offer": offer
} );
},
"error": function(status, error) {
console.log('Error', status, error);
}
});
</div>

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

surebee

Employee

Avatar

surebee

Employee

surebee
Employee

04-04-2020

Hi @LordOfTheRings,

Try closing your <div> tag before the script. Please see https://docs.adobe.com/help/en/target/using/implement-target/client-side/upgrading-from-atjs-1x-to-a... for a sample.

 

Thanks!

Answers (1)

Answers (1)

Avatar

Avatar

Amelia_Waliany

Employee

Avatar

Amelia_Waliany

Employee

Amelia_Waliany
Employee

22-04-2020

Hi @LordOfTheRings

 
Our next Adobe Target Skill Builder Webinar is right around the corner on May 5th, and will be presented by Adobe Target Product Management on migrating Adobe Target’s mbox.js to At.js. Check out this community discussion to register today. Hope you can make it!
 
Warmly,
Amelia