Skip to main content
added 120 characters in body
Source Link
CodeDiva
  • 163
  • 3
  • 12

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.

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

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 <= data.length; 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.

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 border='1' cellpadding='2' cellspacing='3' style='border-collapse:collapse;>");
    for (var i = 0; i <= data.length; i++) {
        var d = data[i];
        Write("<tr>");
        for (var key in d) {
            Write("<td>" + d[key] + "</td>");
        }
        Write("</tr>");
    }
    Write("</table>");} </script>

Somehow it does not show me any results nor give any errors.

deleted 33 characters in body
Source Link
CodeDiva
  • 163
  • 3
  • 12

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

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 <= data.length; 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.

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

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 <= data.length; 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.

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

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 <= data.length; 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.

formatted code and clarified the question to reflect ExactTarget
Source Link
Mark Pond
  • 23.1k
  • 2
  • 60
  • 104

Javascript not working in ExactTarget Landing Page

I am using a simple JavaScript to receive a row from data extension[Data Extension Server-Side JavaScript Functions] 1 in ExactTarget 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");
}
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 <= data.length; i++) {
        var d = data[i];
        Write("tr");
        for (var key in d) {
            Write("td" + d[key] + "/td");
        }
        Write("/tr");
    }
    Write("/table");
Write("/table");

Somehow it does not show me any results nor give any errors.

Somehow it does not show me any results nor give any errors.

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.

Javascript not working in ExactTarget Landing Page

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

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 <= data.length; 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.

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.
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading
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.
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading
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.
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading
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.
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading
edited tags
Link
CodeDiva
  • 163
  • 3
  • 12
Loading
added 32 characters in body
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading
added 4 characters in body
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading
deleted 6 characters in body
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading
added 30 characters in body
Source Link
Eric
  • 54.4k
  • 11
  • 104
  • 196
Loading
Source Link
CodeDiva
  • 163
  • 3
  • 12
Loading