scripts | Community
Skip to main content
melissae6854041
New Participant
May 9, 2016
Solved

scripts

  • May 9, 2016
  • 2 replies
  • 2035 views

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?  

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 ParitMittal

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

2 replies

sabahatu1546489
New Participant
September 20, 2017

does it mean its not possible?

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

ParitMittal
ParitMittalAccepted solution
New Participant
May 16, 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