Expand my Community achievements bar.

SOLVED

scripts

Avatar

Level 2

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?  

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 3

does it mean its not possible?

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