Skip to main content
10 of 13
Here is the updated code I tried wrting the result in a table..Still it des not show ant results nor give me any errors.
CodeDiva
  • 163
  • 3
  • 12

Javascript not working in Landing Page

I am using a simple JavaScript to receive a row from data extension and display the retrieved row on Landing Page . As below

Platform.Load("core", "1"); Platform.Load("core","1");
var birthdayDE = DataExtension.Init("birthdayDE");
var filter = {Property:"EmailAddress",SimpleOperator:"equals",Value:"[email protected]"};
var data = birthdayDE.Rows.Retrieve(filter);
if (data.length > 0) {
Write("table border='1' cellpadding='2' cellspacing='3' style='border-collapse:collapse;");
for (var i=0;i var d = data[i];
Write("tr");
for (var key in d) { Write("td" + d[key] + "/td"); }
Write("/tr");
}
Write("/table");
Somehow it does not show me any results nor give any errors.
CodeDiva
  • 163
  • 3
  • 12