$(document).ready() ready seems to fail in IE 6 when embedding flash
I don't think this is related to the other discussions that have
focused on $(document).ready(). Correct me if I am wrong.
I have windows.js file that is loaded onto every page. I use it to
change the behavior of external links on my site. The top of the file
has a couple of global objects that are used to identify external
links by URLs or domains.
I use $(document).ready() to iterate over the links on the pages and
set link targets and/or onclick events to call window openers
depending on the global objects mentioned above.
The code works great except on pages that I have an object tag that is
used to embed flash videos. If I put the videos in an iframe then
everything is fine. (... and the reason I can't use an iframe is
because there are links in videos which I can not control that to not
have their target="_top").
I tried to a simple test by alerting the variable document.isReady
from the address bar but it's alway true when I do it (not sure if the
test if valid).
I have another function that populates an input element based on a
cookie that is also called using $(document).ready() witch fails in
the same manner. This is done in a file that loads before the
windows.js file.
Here is the code if anybody wants to see it.
// xgoto is a global var used to pass url to other fuctions
var xgoto //global var to pass url to other fuctions;
// txt is the global disclaimer message.
var txt = '<strong>You are now leaving AXA Equitable</strong><br/><br/