Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Dec 2008
    Location
    Jakarta
    Posts
    10

    Two Instance in One Page Browser using IFrame

    I have a case, opening page like demo at : http://www.lightstreamer.com/demo/StockListDemo/, with data source like Hello World Socket.

    But this demo open twice in one page, by using iFrame.

    Then, I change item on one of iframe and refresh this iframe. I set SHARE_SESSION = "True" on create engine.

    Some time all pages, the two iFrame suddenly refreshing and server threat this as 2 new request again. Is this normal, why this is happen ?

    How to make this two instance (CMIIW), run smoothly without refreshing page case.

    Thx.


    Gani

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    973
    You have set up a demo in which multiple iframes coexist and you have had all these iframes share the same session.
    In this demo, you usually change an item in one of your iframes by performing a full refresh of the iframe.
    As a consequence, you notice that, sometimes, the data flow on all pages is restarted.

    Is the above equivalent to your description?
    This is possible with SHARE_SESSION, as closing or reloading the page that holds the Engine causes the connection to LS to be lost and the library must replace it with a new Engine and a new session.
    This also affects the other pages and the starting of the new flow may be noticeable.

    Is that effect causing you problems?
    What do you mean by "the two iFrame suddenly refreshing"? Do you refer to a full page refresh, as though location.reload() were issued? Nothing like this should be caused by LS directly.

 

 

Similar Threads

  1. Replies: 3
    Last Post: January 21st, 2010, 12:25 PM
  2. Master push page in iframe
    By ivailo in forum Client APIs
    Replies: 1
    Last Post: July 24th, 2008, 08:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 07:18 AM.