Thanks Rob. I tried that and I cannot see where there's an extra
">". Perhaps it's really a different issue. Note that one script
tag is beautified to two lines. Could a CRLF have been accidentally
inserted?
< script language = "cache"
runat = "server" >
here's the beautified code:
<script type="text/javascript">
EWD.sencha.init = function() {
EWD.sencha.widget.zewdSTindex44 = new Ext.List({
id: "mainMenu",
itemTpl: "{optionText}",
scroll: true,
store: zewdSTStoreindex44,
listeners: {}
});
EWD.sencha.addWidget('index', 'mainMenu');
EWD.sencha.widget.zewdSTindex36 = new Ext.Panel({
fullscreen: true,
id: "zewdSTindex36",
layout: "fit",
dockedItems: [{
dock: "top",
title: "EWD Mobile",
xtype: "toolbar",
items: []
}],
items: [EWD.sencha.widget.zewdSTindex44]
});
};
</script>
<script type="text/javascript">
< script language = "cache"
runat = "server" >
[[[[[[ ---- index.csp: 26Uncaught SyntaxError: Unexpected token <
d --- ]]]]
writeListData ^ % zewdST2("mainMenuOptions", sessid)
</script>
EWD.sencha.loadListData(zewdSTStoreindex44,EWD.sencha.jsonData);EWD.sencha.loadCardPanel('index','zewdSTindex36');
</script>
I'm using Cache and an object:
<ewd:config isFirstPage="true" cachePage="false"
prePageScript="##class(MyStuff.Test).getMainMenu">
Class MyStuff.Test [ Abstract ]
{
ClassMethod getMainMenu(sessid As %String) As %String
{
s list(1, "optionText")="hello world"
s list(2, "optionText")="ex 2"
s list(3, "optionText")="ex 3"
d saveListToSession^%zewdSTAPI(.list, "mainMenuOptions", sessid)
QUIT ""