Skip to main content
4 of 13
added 4 characters in body
CodeDiva
  • 163
  • 3
  • 12

Javascript not working in Landing Page

I am using this simple JavaScript to retrieve a row form a data extension in a landing page and then displaying on page(just for testing).

<div id="data"></div>
<script> 
var birthdayDE = DataExtension.Init("birthdayDE");
var filter = {Property:"EmailAddress",SimpleOperator:"equals",Value:"[email protected]"};
var data = birthdayDE.Rows.Retrieve(filter);
document.getElementById("data").innerHTML= data;
</script>

Somehow it doesn't seems to give me any output. I am not sure if this code works in Landing page or not.

CodeDiva
  • 163
  • 3
  • 12