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

Dynamically sending new data to the global mbox - Ajax page

Avatar

Avatar
Level 1
timi_balogun
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
timi_balogun
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
timi_balogun
Level 1

02-06-2016

How do folks send new data to the global mbox on an ajax page for example?

For the regular mboxes there was mbox define/ mbox update. Still not clear on what it is for the global mbox when we use targetPageParams()

Replies

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

06-06-2016

Hi Timi,

You could use an mboxUpdate() call after your Ajax success event. Format of mboxUpdate is like : 

  1. mboxUpdate('target-global-mbox','param1=value1','param2=value2',...);

 

Use mboxUpdate in your callback method of Ajax call.

 

Please refer the following link for more info : https://marketing.adobe.com/resources/help/en_US/tnt/help/c_About_Dynamic_Mboxes.html

 

Thanks & Regards

Parit Mittal

Avatar

Avatar
Level 1
timi_balogun
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
timi_balogun
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
timi_balogun
Level 1

06-06-2016

Thanks  Parit, didnt realize we could reference the target-global-mbox directly in mboxUpdate, good to know.

Tested this out though and I didnt get the expected behavior, it seemed to deliver the offer a second time after the mboxUpdate.

Note: our  targetPageParams() is in the head tag not the body.

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

09-06-2016

Hi Timi ,

Please clarify when is your Ajax event fired? If it is triggered inside body, then it won't be able to set mbox parameters in targetPageParams() method which is inside head tag and consequently, mbox call with not have these params.

Try using mboxUpdate in your callback method of Ajax call.

Thanks & Regards

Parit Mittal

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

13-06-2016

Hi Timi ,

can you please let us know whether the above issue is resolved or not. If not , Please do let us know so that we can further help with the same.

Thanks & Regards

Parit Mittal

Avatar

Avatar
Level 1
timi_balogun
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
timi_balogun
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
timi_balogun
Level 1

13-06-2016

So that solution didn't work. The Ajax event is fired from the body and our targetPageParams() is in the head.

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

13-06-2016

Hi Timi ,

Have you Tried using mboxUpdate in your callback method of Ajax call.

 Also, Please let me know if it works.

Thanks & Regards

Parit Mittal