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

Exclude from Activity after page loads

Avatar

Avatar
Boost 5
Level 2
benjamin247
Level 2

Likes

7 likes

Total Posts

5 posts

Correct Reply

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

Avatar
Boost 5
Level 2
benjamin247
Level 2

Likes

7 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
benjamin247
Level 2

11-05-2018

Is there a way to exclude a visitor from an activity after a page loads?  I have this scenario:

- On initial load I have body class ="classA"

- After about a second, the page gets updated with body class "ClassB" added. 

Is there a way for me to exclude this visitor from the activity once "ClassB" is added?

Replies

Avatar

Avatar
Boost 5
Level 4
russpainter
Level 4

Likes

49 likes

Total Posts

40 posts

Correct Reply

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

Avatar
Boost 5
Level 4
russpainter
Level 4

Likes

49 likes

Total Posts

40 posts

Correct Reply

7 solutions
Top badges earned
Boost 5
Boost 3
Boost 25
Boost 10
Boost 1
View profile
russpainter
Level 4

11-05-2018

Target can't interact with the DOM to determine what HTML selector is present. You'd have to pass a parameter through the mbox to be able to Target. You could use a simple javascript function to check the DOM if the class exists and if it does pass a parameter into the mbox. Then you could build and audience with the class value.

Another option would be to insert the javascript in your offer that would look at the DOM, once loaded, and then call another mbox in the offer.

If you have more details of what you are attempting to do. Their might be some other solutions.