-
March 28th, 2007, 09:35 AM
#1
Oooops...sorry I forgot to mention how this is related to Lightstreamer
If your Push-pages live inside a frameset, so that Page A is a Push-page that creates the engine with the createEngine method and Page B is another Push-page which wants to get data from the Engine created by Page A, and you have deployed your application in the canonical way (i.e. the web resources coming from a web server and the pushed data coming from Lightstreamer Server) then you should set the domain "by hand" on the frameset file or your app will not work with Opera browsers.
Example frameset:
Code html:
<html>
<script>
document.domain = "lightstreamer.com";
</script>
<frameset rows="50%,*">
<frame name="PAGE_A" src="pageA.html">
<frame name="PAGE_B" src="pageB.html">
</frameset>
</html>
Page A's javascript snippet
Code javascript:
var lsPage = new PushPage();
lsPage.context.setDomain("lightstreamer.com");
...
lsPage.createEngine("MyApplication","/LS/","SHARE_SESSION");
Page B's javascript snippet
Code javascript:
var lsPage = new PushPage();
lsPage.context.setDomain("lightstreamer.com");
...
lsPage.seekEngine("MyApplication", self.parent.frames.PAGE_A);
Similar Threads
-
By lightstreamDev in forum Client SDKs
Replies: 1
Last Post: October 27th, 2010, 09:00 AM
-
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: 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 06:20 AM.
Bookmarks