Getting error with at.js | Community
Skip to main content
manoharr9972070
February 28, 2018
Solved

Getting error with at.js

  • February 28, 2018
  • 3 replies
  • 1476 views

Hi Team,

I am now moving from mbox.js to at.js. The functionality was working fine with mbox.js and not in at.js. Below is the changes I had. Please let me know what could be the issue

1. I had added below script before a button for which a link was to be changed for Experience B

<div class="mboxDefault"></div><script type="text/javascript">

    mboxCreate('target-global-mbox','profile.test=test');

</script>

2. I added an Audience based on the value profile.test = test value

3. For this Audience I am editing the link of a button for Experience B using the Enhanced composer.

So the above worked fine for mbox.js implementation. I am getting the error "uncaught TypeError: c(...).addClass is not a function".

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by manoharr9972070

I found the issue and fixed it. The way the button was selected using the CSS selector was not helping with at.js though it worked with mbox.js. Once it was modified the same test worked fine. Thanks!

3 replies

Amelia_Waliany
Adobe Employee
Adobe Employee
March 5, 2018

Hi there and thanks for your question! If you are still experiencing this, would you mind sharing the details with us in a bug report (you can shoot an email to Customer Care so that one can be opened on your behalf)? This way we can have our engineers take a look. Thanks!

manoharr9972070
manoharr9972070AuthorAccepted solution
March 6, 2018

I found the issue and fixed it. The way the button was selected using the CSS selector was not helping with at.js though it worked with mbox.js. Once it was modified the same test worked fine. Thanks!

Amelia_Waliany
Adobe Employee
Adobe Employee
March 6, 2018

Awesome! Thanks for sharing the fix here -  it may help other community members!