I've got a page with two <script>
blocks on it, one running locally, one running on the ExactTarget server:
<script type="text/javascript">
var results = localStorage.getItem('results');
var results = JSON.parse(results);
</script>
<script runat=server>
Platform.Load("Core","1");
Write(Stringify(results)); //this returns a 'null' value
var campaignsupdate = DataExtension.Init("0DB9904F-CE05-45E7-8052- 7C6935B4B012");
for(var i=0; i < results.length; i++) {
var rowid = results[i]["ROWID"];
var title = results[i]["title"];
campaignsupdate.Rows.Update({title: title},["ROWID"], [rowid]);
}
</script>
At the moment, calling 'results' in the 'runat=server' block returns a null value. How do I access the 'results' array in the 'runat=server' block?