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

scripts

Avatar

Avatar
Validate 1
Level 1
melissae6854041
Level 1

Likes

3 likes

Total Posts

8 posts

Correct Reply

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

Avatar
Validate 1
Level 1
melissae6854041
Level 1

Likes

3 likes

Total Posts

8 posts

Correct Reply

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

09-05-2016

Is it possible to create a profile script to qualify users for a campaign if an HTML DOM is present on the page?

 

Typically the script to get an element id would be:

var x = document.getElementById("myAnchor").id;

Has anyone done something where they check if an id is present and based an audience off that?  

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

90 likes

Total Posts

817 posts

Correct Reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

15-05-2016

Hi ,

Profile script uses Server side "Javascript Rhino Engine" Hence Scripts are executed on back end and there is no access to DOM elements on the page.

Thanks & Regards

Parit Mittal

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 3
sabahatu1546489
Level 3

Likes

13 likes

Total Posts

30 posts

Correct Reply

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

Avatar
Validate 1
Level 3
sabahatu1546489
Level 3

Likes

13 likes

Total Posts

30 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
sabahatu1546489
Level 3

20-09-2017

does it mean its not possible?

We can not launch an activity based on the existence of the DOM element?