IE9 CrossDomain problem

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
My code is working on IE8 and other web browsers. It stop working when IE9 was installed.
I have the following code :
<p style="text-indent:0.5in http://Test-WebApp.MyDomain.com/QuoteOverview.aspx?Data=QT|WPCLB0000007622|10|37
On Client side Click of a print button of the QuoteOverview.aspx page I have the following JavaScript code
<p style="background:white <span style="color:black <span>
window.showModalDialog(NewURL, dialogArguments, <span style="color:maroon center:yes;resizable:no;scroll:no;status:no;dialogWidth:725px; dialogHeight:500px;<span style="color:black );
<p style="background:white
<p style="background:white <span style="color:black where NewURL = http:// Test-WebApp.MyDomain.com/QuoteDocument?Data=QT|WPCLB0000007622|10|37
in my quote document html I have
<pre style="background:white <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt <<span style="font-family:Calibri,sans-serif; color:maroon; font-size:11pt div<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt class<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="line [/code]
<pre style="background:white <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt <<span style="font-family:Calibri,sans-serif; color:maroon; font-size:11pt embed<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt id<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="pdfViewer"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt runat<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="server"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt type<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="application/pdf"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt name<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="pdfViewer"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt toobar<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="false"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt width<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="700"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt height<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="400"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt Visible<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="false"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt />[/code]
<pre style="background:white <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt <<span style="font-family:Calibri,sans-serif; color:maroon; font-size:11pt asp<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt :<span style="font-family:Calibri,sans-serif; color:maroon; font-size:11pt Label<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt ID<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="lblNoDocument"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt runat<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="server"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt Text<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt =""<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:red; font-size:11pt Visible<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt ="false"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt />[/code]
<pre style="background:white <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt </<span style="font-family:Calibri,sans-serif; color:maroon; font-size:11pt div<span style="font-family:Calibri,sans-serif; color:blue; font-size:11pt >[/code]
In my code behind
<pre style="background:white <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt <span> pdfViewer.Attributes.Add(<span style="font-family:Calibri,sans-serif; color:#a31515; font-size:11pt "src"<span style="font-family:Calibri,sans-serif; color:black; font-size:11pt , PdfURL);<span> // <span style="font-family:Calibri,sans-serif; font-size:11pt <span> <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt PdfURL = <span style="font-family:Calibri,sans-serif; font-size:11pt http://test-pdfproxy.MyDomain.com/PDFGenerator.aspx?Data=QT|WPCLB0000007622|10|37[/code]
PDF does not display.
<pre style="background:white <span style="font-family:Calibri,sans-serif; font-size:11pt I tried using <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt document.domain = <span style="font-family:Calibri,sans-serif; color:maroon; font-size:11pt <span style="font-family:Calibri,sans-serif; font-size:11pt MyDomain.com<span style="font-family:Calibri,sans-serif; color:maroon; font-size:11pt <span style="font-family:Calibri,sans-serif; color:black; font-size:11pt ; <span> but I get error Microsoft JScript runtime error: Invalid argument. [/code]
My understanding is that the document.domain property is read only in IE.
<span lang="EN-GB" style="color:#000066 Regards,
<p style="text-autospace:
<p style="text-autospace: <span lang="EN-GB" style="color:#000066 Angel L. Bermudez, Jr.

View the full article
 
Back
Top