Avatar of AsteaDev
AsteaDev

asked on 

IE9 RC, read the value of the object updated in showModalDialog

Hi,

I encountered in some problem:

(1) save following code as file "temp.html"

<script>
    function NewClass() {

        var m_DDLB = null;
    }
    var variable = new NewClass();  
    var retval = showModalDialog("temp2.html", variable);

    alert(variable.m_DDLB["temp"].xml);
</script>

(2) save following code as file "temp2.html"

<script>
var variable2;

 if(window.dialogArguments)
         {
          variable2 = window.dialogArguments;
         }
      variable2.m_DDLB = new Array();
      var ddlbArr = variable2.m_DDLB;

      var doc = new ActiveXObject("MSXML2.DOMDocument");
      doc.async = false
      doc.load("temp.xml");
      if (doc.parseError == 0) {
          ddlbArr["temp"] = doc.selectSingleNode("/root").cloneNode(true)
      }
 self.close();

</script>

(3) save following code as file "temp.xml"

<root>
   <node_id>checking</node_id>
</root>

When I execute code from temp.html in IE7, message box shows me the content of temp.xml.

When I execute code from temp.html in IE9, I did not get anything and in debug mode I can see that the value of the variable.m_DDLB["temp"] in temp.html is

variable.m_DDLB["temp"]              "Permission Denied"
  description                                  "Permission Denied"
  message                                    "Permission Denied"
  name                                          TypeError
  number                                       -2146828218
 
There is some problem in security that is different from the same security rules defined in previous versions.
 
Moreover I found another issue(see the link below), that was sing as  already corrected by Microsoft in the build 9.0.8112.16416
 
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/61347684-49d4-459d-b29c-65e3b6c4a3ee  (*)
 
I think that my problem is the same, but I am working with build 9.0.8112.16421, and the problem described in (*) was not resolved.
Please consist.

Thanks,

Polina
Web DevelopmentWeb Development Software

Avatar of undefined
Last Comment
Bernard Savonet
ASKER CERTIFIED SOLUTION
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

B-) Glad I could help. Thx for the grade and points!
Web Development
Web Development

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

77K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo