-
October 26th, 2010, 06:31 PM
#1
CrossDomain Scripting issue - IE6
Hi,
Though it is discussed many times in the forum, I have a simple situation and still its not working. The push server URL(UNIX dev server) is something like
'push-s1.mycompany.com' and the web url( the web code is deployed in my local system) <<compname-number.mycompany.com"
I have the code like this:
lsPage.onEngineCreation = function(lsEngine)
{
lsEngine.context.setDebugAlertsOnClientError(true) ;
lsEngine.context.setRemoteAlertsOnClientError(true );
lsPage.context.setDomain('mycompany.com');
lsEngine.connection.setLSHost('push-s1.mycompany.com');
lsEngine.connection.setLSPort('8085');
lsEngine.connection.setAdapterName("SomeName");
// set the requested bandwidth
lsEngine.policy.setMaxBandwidth(actualBW);
}
But still I am getting 'Permission Denied' issue. The lightstreamer URL is:
http://'push-s1.mycompany.com:8085/lightstreamer/create_session.html?LS_phase=3622&LS_polling=true& LS_polling_millis=0&LS_idle_millis=30000&LS_client _version=4.3&LS_adapter=SomeName&
The server logs also show serving issue. Hence I think its cross domain scripting browser error only. I may need to move to HTTPS in sometime but I am facing issue with HTTP itself. Can somebody help me to overcome this issue?
-
October 27th, 2010, 09:00 AM
#2
You should issue lsPage.context.setDomain before calling createEngine (which, in turn, precedes the invocation to onEngineCreation).
When setDomain is invoked at the proper time, you should see your domain reported in the create_session URL.
Similar Threads
-
By DarioCrivelli in forum Client SDKs
Replies: 0
Last Post: February 17th, 2010, 05:10 PM
-
By DarioCrivelli in forum Client SDKs
Replies: 5
Last Post: February 4th, 2010, 09:55 AM
-
By Mone in forum Client SDKs
Replies: 1
Last Post: March 28th, 2007, 09:35 AM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: November 9th, 2006, 04:12 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 02:48 PM.
Bookmarks