-
March 15th, 2007, 03:12 PM
#1
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)
-
March 25th, 2008, 02:55 PM
#2
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
-
By Mone in forum Client SDKs
Replies: 1
Last Post: July 10th, 2012, 06:06 PM
-
By ggalante in forum Adapter SDKs
Replies: 2
Last Post: August 29th, 2011, 06:39 PM
-
By Rakot in forum General
Replies: 1
Last Post: May 14th, 2010, 11:06 AM
-
By ctranfd in forum Client SDKs
Replies: 3
Last Post: August 31st, 2009, 08:07 AM
-
By tuongkha in forum Adapter SDKs
Replies: 4
Last Post: January 15th, 2008, 09:15 AM
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 08:02 AM.
Bookmarks