Thanks for reaching out to Adobe community
You could use an mboxUpdate() call after your Ajax success event. Format of mboxUpdate is like :
You may also want to try using TNT.createGlobalMbox() if you are using the targetPageParams() function. See details at the bottom of this article: https://marketing.adobe.com/resources/help/en_US/target/ov/c_mbox_technical.html
Thanks for the idea, I have tried that before, but it's not working with my current configuration. I'm using a default target-global-mbox, with the auto-create global mbox option set as "true". I call targetPageParams() in my header along with the mbox.js call.
Should I set "mboxDefine()" and "mboxUpdate"? Or should it work only adding "mboxupdate('target-global-mbox','param1_balue1','param2=value2',...); into the Ajax success event?
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.
Hope that helps.
Can you please let us know whether the problem is solved or not ?. If not, Please let us know so that we can further look into the issue .
Thanks & Regards