Occasional javascript exceptions in IE6
Hi all,
I have some problem with Lightstreamer Client API in IE. Sometimes data on a streaming page freeze, but sometimes messages with error 120 appears. I check this in IE6. Also this page is tested in Chrome, FireFox and Opera, where it works fine. I've fixed error 120 through reloading the page. But data continue to freeze sometimes. I allowed script debugging in Internet Explorer and then saw the next javascript exception:
Code:
msxml3.dll: The download of the specified resource has failed.
This exception occures in http://push.somedomain.com/lightstre...jax_frame.html, in function sendRequestExecution(...) on line 83.
Code:
requestObject.sender.send(_url);
I adduce source code of the streaming page:
Code:
//////////////// Master Push-Page Configuration
var pushPage = new PushPage();
pushPage.context.setDebugAlertsOnClientError(false);
pushPage.context.setRemoteAlertsOnClientError(true);
pushPage.context.setDomain("somedomain.com");
function reloadClient(code, text) {
if( code == 120 ) {
// sometime this error occures in IE
setTimeout( function(){location.href = location.href + "&Test=" + code;}, 10 ); // it helps
} else {
setTimeout( function(){alert("Error " + code + "\n" + text);}, 10 );
}
};
pushPage.onClientAlert = reloadClient;
pushPage.onEngineCreation = function(lsEngine) {
lsEngine.onClientAlert = reloadClient;
lsEngine.context.setDebugAlertsOnClientError(false);
lsEngine.context.setRemoteAlertsOnClientError(true);
lsEngine.connection.setLSHost("push.somedomain.com");
lsEngine.connection.setLSPort(80);
lsEngine.connection.setAdapterName("DATALISTADAPTER");
lsEngine.changeStatus("STREAMING");
};
pushPage.bind();
pushPage.createEngine("DataListEngine", "ls/", "SHARE_SESSION", true);
//////////////// Table Management
// create an OverwriteTable; item and field names will be grabbed from
// the corresponding HTML divs
var table = new OverwriteTable(null, null, "MERGE");
table.setDataAdapter("DATA_ADAPTER");
table.setSnapshotRequired(true);
table.onChangingValues = function(itemPos, visualUpdateInfo, itemName) {
// some highlighting effect
};
table.onItemUpdate = function(itemPos, updateItemInfo, itemName) {
// some field is added
};
// bind the table to the corresponding HTML divs
pushPage.addTable(table, "data");
What is incorrect in this code? Or how it may be change in order to avoid problems in IE?
NB 1. We don't use somedomain.com for this project, the streaming page and other its pages load from www2.somedomain.com. All listed domains are attached to different machines.
NB 2. The streaming page works through two iframe items.
1 Attachment(s)
Occasional javascript exceptions in IE 6 and IE 7
Hi all,
today I have deployed my pages in IIS and tested them with Lightstreamer on one local machine. Here is attached log file.
This exception occures with status CONNECTING. It reproduces also in Internet Explorer 7.0.5730.13.
Quote:
Originally Posted by DarioCrivelli
Is it possible that you open multiple engines in your application?
Otherwise, we need more information to proceed.
I sent source code that works with Lightstreamer in first post. Por se our application presents a page with one table (its javascript code is shown above), which works through two iframe tags.
Quote:
Originally Posted by DarioCrivelli
Please ensure that the "LightstreamerLogger.connections" category is set as DEBUG in the Server log configuration file when you get the log.
Done. Log file is attached, it consists my comments about when and what has occurred.