Hello!
I am integratign AEM 6 with Adobe Target and have some problems with it.
Particularly, when I add "Adobe Target Mbox" component on the page - T&T request is sends but in console there is an error :
Uncaught TypeError: undefined is not a function.
I found that it throws when mboxOfferDefault.prototype.show(content)
function is called from /etc/clientlibs/foundation/testandtarget/util/source/init.js.
The problem is that this function calls this.hide(content)
which doesn't exists in mboxOfferDefault.prototype
and that's why I suppose this error is thrown.
Can anyone tell me why this function in init.js is overriding default mboxOfferDefault.prototype.show(content)
defined in mbox.js and
what will be the risks if i'll remove this function from /etc/clientlibs/foundation/testandtarget/util/source/init.js?
I will be appreciated if some one will help me with this problem.
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi There,
Here is the answer to this question:
For the future, if someone has this error, please check if you have this lib int the head of the page:
<cq:include script="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp”/>
Thanks!
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi There,
Here is the answer to this question:
For the future, if someone has this error, please check if you have this lib int the head of the page:
<cq:include script="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp”/>
Thanks!
Views
Replies
Total Likes
Hi, Nikhil,
Thank you for reply. I'm already followed steps from doc to integrate Adobe Target, but the problem is not gone.
If I replace file /etc/clientlibs/foundation/testandtarget/util/source/init.js from CQ5.6 the problem will be gone but in AEM 6 it is still appears.
Fo my vision there is a lack of mboxOfferDefault.prototype.hide() function in init.js as there is a call to it (316 line of code in /etc/clientlibs/foundation/testandtarget/util/source/init.js in AEM 6).
Thanks!
Views
Replies
Total Likes
In this case let me check on this with the relevant team and get back to you.
Thanks
Nikhil
Views
Replies
Total Likes
Hello Nikhil,
We have the same issue, do you have any updates?
Thanks.
Views
Replies
Total Likes
Hi Alex and Weltens,
I checked on this with the relevant team and would request you to kindly file a ticket with the client care team as this issue would need some more research. Please refer to this doc for more details on how a supported user can log a ticket.
Thanks
Nikhil
Views
Replies
Total Likes
For the future, if someone has this error, please check if you have this lib int the head of the page:
<cq:include script="/libs/cq/cloudserviceconfigs/components/servicelibs/servicelibs.jsp”/>
Views
Replies
Total Likes
Views
Like
Replies