Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Why is the the default value of mboxDefault visibility: hidden?

Avatar

Avatar
Validate 1
Level 1
ruthl35345966
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ruthl35345966
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
ruthl35345966
Level 1

16-02-2016

 
     

I'm trying to wrap a banner on a webpage with an mbox div but it disappears once I run it on my local host because the visibility is set to hidden. I know that I can force the visibility to visible by doing this:

<div class="mboxDefault" style="visibility: visible;"> content abc </div> <script type="text/javascript">mboxCreate('mboxabc');</script>

but is that the correct way to go about it? Do I really have to add styling to force it to show my default content? I thought mbox will only set my visibility to hidden when I chose to pull in snippets.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
kimenw
Employee

Likes

12 likes

Total Posts

20 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Employee
kimenw
Employee

Likes

12 likes

Total Posts

20 posts

Correct Reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
kimenw
Employee

16-02-2016

The style for mboxDefault is hidden at first so default content doesn't show on the screen before the Target content returns. The response from Target triggers the visibility to change on the mboxDefault div (if no offer response returned), or the mboxDefault div is replaced by the offer content div.

Are you making calls out to Target on your localhost and getting responses? If so, then the visibility shouldn't be a problem.

 

-Kimen Warner

Group Product Manager, Adobe Target

Answers (0)