Javascript IE 8 Issue
-
Hi, My application is having some issue with IE 8 (working fine with IE6 and IE 7). Below is my code My application current domain is "Main.Sub.com" now i am updating the domain to "sub.domain" document.domain="sub.domain"; after this i am setting below property in child page load. var child_window=window.opner; document.title=child_window.title after checking for some conditions I am againg setting domain document.domain="Main.Sub.com" Then I am creating popup MyPopup = window.createPopup(); my code is looks like below var curdomain="Main.Sub.com"; Var child_window; document.domain="sub.domain"; child_window=window.opner; document.title=child_window.title; . . . document.domain="Main.Sub.com"; MyPopup = window.createPopup(); Can any one please suggest how i can make this work in IE8 Thanks, Salmon
-
Hi, My application is having some issue with IE 8 (working fine with IE6 and IE 7). Below is my code My application current domain is "Main.Sub.com" now i am updating the domain to "sub.domain" document.domain="sub.domain"; after this i am setting below property in child page load. var child_window=window.opner; document.title=child_window.title after checking for some conditions I am againg setting domain document.domain="Main.Sub.com" Then I am creating popup MyPopup = window.createPopup(); my code is looks like below var curdomain="Main.Sub.com"; Var child_window; document.domain="sub.domain"; child_window=window.opner; document.title=child_window.title; . . . document.domain="Main.Sub.com"; MyPopup = window.createPopup(); Can any one please suggest how i can make this work in IE8 Thanks, Salmon
Have you forgotten to do something like... myPopup.show(100,100,100,200,document.body); Another problem maybe that you are giving focus to another element which closes the popup ? As for working in IE6 and IE7 but not IE8 well thats a mystery for now ?