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

[mboxCreate()] document.currentScript is missing or not supported/Track event request failed

Avatar

Avatar
Validate 1
Level 2
robinders871029
Level 2

Likes

4 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile

Avatar
Validate 1
Level 2
robinders871029
Level 2

Likes

4 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
View profile
robinders871029
Level 2

26-07-2018

Using this to Generate a mbox on click of element , but Getting error in the console.

$(document).ready(function() {

       mboxCreate('mboxClickTrack_showRegister');

    

       var hits = 1; //->variable

       // Everything below this line is called "binding" a handler to an event (click event)

       $('#element_1').click(function() { // --> handler or listener

           if (hits === 1) //for only first hit.

           {

               // do Something over here for hits = 1

               console.log('hits_numbers ' + hits);              

               adobe.target.trackEvent({

                   'mbox': 'mboxClickTrack_showRegister',                  

               });

           } else { // for hits +1

               adobe.target.trackEvent({

                   'mbox': 'mboxClickTrack_showRegister',                  

               });

               console.log('hits_numbers ' + hits);

           }

           hits++;

           return false;

       });

   });
I can see that new mbox is getting Generated on the click through

Adobe Experience Cloud Debugger BETA

But Receiving error in the console.

[mboxCreate()] document.currentScript is missing or not supported.

If I am not using mboxCreate, I am getting this error:

Track event request failed {mbox: "mboxClickTrack_showRegister", params: {…}, timeout: 15000, success: ƒ, error: ƒ} {status: "error", error: "abort"}

Replies

Avatar

Avatar
Boost 5
Level 4
pranavkaushik
Level 4

Likes

39 likes

Total Posts

37 posts

Correct Reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile

Avatar
Boost 5
Level 4
pranavkaushik
Level 4

Likes

39 likes

Total Posts

37 posts

Correct Reply

13 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
pranavkaushik
Level 4

29-07-2018

Hi Robin,

Can you confirm if you are running mboxCreate from console??

mboxCreate is not supposed to be run from the console, as it tries to detect the DOM element it was called from (which in case of the console call is nonexistent). The recommended way is to use mboxCreate in inline scripts.

Hope this helps.

Thanks

Pranav