Skip to main content
2 of 13
added 30 characters in body
Eric
  • 54.4k
  • 11
  • 104
  • 196

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("abandon_cart24hr");
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 sure if this code works in Landing page or not.

CodeDiva
  • 163
  • 3
  • 12