IE7 RC1: open XML doc with window.open  
Author Message
dgracey





PostPosted: Internet Explorer Web Development, IE7 RC1: open XML doc with window.open Top

I quite often open XML documents via script using window.open().  These XML documents are then displayed as HTML using a reference an external XSL Transform using the xml-stylesheet processing instruction as so:

 < xml version="1.0" encoding="utf-8" >

< xml-stylesheet type="text/xsl" href="transform.xsl" >

<object>

<somexml>stuff</somexml>

</object>

Normally, I like to include an HTML button (generated by the XSLT) that calls window.close() onclick.  This works fine in IE6 but in IE7, users are presented with "The webpage you are viewing is trying to close the tab. Do you want to close this tab ".

Does anybody know why this might be happening   Does IE7 consider the XSLT reference insecure or something   Does IE7 some how forget that the window was opened via script in this case

Thanks, David



Internet Explorer Development3  
 
 
dgracey





PostPosted: Internet Explorer Web Development, IE7 RC1: open XML doc with window.open Top

By they way, this made it into IE7 final release. Has anybody come across a fix for this

Thanks, David