Results 1 to 2 of 2
  1. #1
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784

    Exclamation Safari & Konqueror --> location.replace while streaming

    Safari has a strange behavior dealing with the location.replace method.

    Safari delays each location.href setting (or location.replace call) if in the hierarchy of the page that is going to be replaced there is a frame that is downloading something.

    This issue does not casue any problem to Lightstreamer, but if you want to replace a page that contains in its hierarchy the lsengine.html file while streaming you will not be able to do it.

    To work-around the problem you can call changeStatus("DISCONNECTED"); near the location.replace call (or location.href setting). It is not important if it is called after it or before it because in any case Safari will remember where you want the page to be redirected and will apply the redirection as soon as it reaches its strange conditions.

    A test case is available here:
    http://app.lightstreamer.com/testMod...cationReplace/
    (when you click on the TEST link a location.replace is called)

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784

    Talking Safari 3.1 fixed the issue!

    Safari 3.1 fixed the issue!

    It is a good idea to not remove the work-around from your code to keep compatibility with older Safari and non-safari KHTML based browsers (e.g. the Nokia browser is not yet fixed)

 

 

Similar Threads

  1. Replies: 1
    Last Post: July 10th, 2012, 07:06 PM
  2. Logback Caller Location Information
    By ggalante in forum Adapter SDKs
    Replies: 2
    Last Post: August 29th, 2011, 07:39 PM
  3. Streaming connections limit
    By Rakot in forum General
    Replies: 1
    Last Post: May 14th, 2010, 12:06 PM
  4. Browser Popup Focus Behaviour on Safari (on Mac)
    By ctranfd in forum Client SDKs
    Replies: 3
    Last Post: August 31st, 2009, 09:07 AM
  5. Replies: 4
    Last Post: January 15th, 2008, 10:15 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 11:27 PM.