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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates

Mbox content does not update on immediate page load


Level 1

I have created an mbox using mboxCreate().

Whenever I change parameters, the content does not change immediately on page load.

Only after 2-3 refreshes, I am shown the correct data.

Following is the code snippet.


    window.onload = function(e){

          var cat = gup('category', location.href);


          function gup( name, url ) {

            if (!url) url = location.href;

            name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");

            var regexS = "[\\?&]"+name+"=([^&#]*)";

            var regex = new RegExp( regexS );

            var results = regex.exec( url );

            return results == null ? null : results[1];




The data is to be fetched from custom criteria defined in Target Recommendations.

I am using "at.js".

I am new to adobe target recommendations.

Thanks in advance.

0 Replies