I am using a simple JavaScript to receive a row from [Data Extension Server-Side JavaScript Functions] 1 in ExactTarget and display the retrieved row on Landing Page . As below
<script runat="server"> 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"<table border='1' cellpadding='2' cellspacing='3' style='border-collapse:collapse;"collapse;>");
for (var i = 0; i <= data.length; i++) {
var d = data[i];
Write("tr""<tr>");
for (var key in d) {
Write("td""<td>" + d[key] + ""</td"td>");
}
Write(""</tr"tr>");
}
Write(""</table"table>");} </script>
Somehow it does not show me any results nor give any errors.