Hello guys,
i have created a simple .NET adapter. Now I need to create a simple web page that would connect to LS server and get everything that the adapter sends out. LS is running locally on my developement machine. I created an HTML code like this:
Code:
<html>
<head>
<title></title>
<script src="ls/lscommons.js"></script>
<script src="ls/lspushpage.js"></script>
</head>
<body>
</body>
<script language="javascript" type="text/javascript">
var schema = "hdln smbl body tpcid cmnd";
var lsPage = new PushPage();
lsPage.context.setDomain(null);
lsPage.onEngineCreation = startEngine;
lsPage.onEngineReady = engineReady;
lsPage.bind();
lsPage.createEngine("SLEngine", "LS/lsengine.html");
function startEngine(eng)
{
eng.policy.setMaxBandwidth(30);
eng.policy.setIdleTimeout(30000);
eng.policy.setPollingInterval(1000);
eng.connection.setLSHost("localhost");
eng.connection.setLSPort("8080");
eng.connection.setAdapterName("HEADLINESDEMO");
eng.changeStatus("STREAMING");
}
function engineReady ()
{
var newTable = new NonVisualTable("item",schema,"MERGE");
newTable.onItemUpdate = updateItem;
lsPage.addTable(newTable, "1");
}
when I open this page I am getting an error message "ER Bind Unable to find Engine..check your.. bla bla".
Could you please point me out how do I create a client application?
Thanks
Bookmarks