marconiduarte / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

Flash & IE URL hash problem #293

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Including any flash in a page, dynamically or not
2. Redirecting to the page with a hash in its url http://url#hash
3. In IE7 the tabs and windows title are changed appending the #hash to the
window's/tab title

What is the expected output? What do you see instead?
In all other browsers the title remains unmodified, only in IE the #hash is
appended into the title.

What version of the product are you using? On what operating system?
All swfobject versions i tried will reproduce it

Please provide any additional information below.
This is a Flash reported bug and also in IE, after googling a bit I thought
that there was a way to make a workaround for this. I just added this timer
in the createSWF function, just for IE
// Try to clean windows title in IE
                // http://bugs.adobe.com/jira/browse/FP-240
                try{
                    var wT = doc.title // get the title before being bug
                    // clean the title if needed
                    if(wT.indexOf('#')!=-1) wT=wT.substring(0,wT.indexOf('#'));
                    var iv = setInterval(function () {
                            // Whenever its loaded just push in the old title again
                            if (r.readyState == 4) {
                                clearInterval(iv)
                                doc.title = wT;
                            }
                        }, 100)
                }
                catch(e){ }

I also attach the last snapshot of swfobject modified with this workaround.
Hope helps someone

Original issue reported on code.google.com by iagoto...@gmail.com on 2 Apr 2009 at 10:18

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your feedback, next time please post in in the discussion group 
instead:
http://groups.google.com/group/swfobject

Original comment by bobbyvandersluis on 2 Apr 2009 at 10:47