Google Analytics İzleme

07 Ocak 2010

çapraz farklı domainlerdeki sayfaları kaynak alan iframe'lerde asp.net ajax script çalışma problemi

Çapraz farklı domainlerdeki sayfaları kaynak alan iframe'lerde asp.net ajax'ta script çalışma problemi oluşmaktadır. Line 5959 Access Denied şeklinde internet explorer'da javascript çalışma hatası vermektedir. Bu sorun MicrosoftAjax.js 'de Sys.UI.DomElement.getLocation metodunu oluştururken çıkmaktadır.

this code on the line 5959 of one of MS AJAX files, in getLocation func, yield "Access denied" bugs in cross-domain scenarios. Or http with https iframe scenario in our case. top is obviously  inaccessible...
   var w = element.ownerDocument.parentWindow;
                                                var offsetL = w.screenLeft - top.screenLeft - top.document.documentElement.scrollLeft + 2;
            var offsetT = w.screenTop - top.screenTop - top.document.documentElement.scrollTop + 2;


Bu sorun net 3.5'da düzeltildi. net 2.0 için ise yama yapmanız gerekmektedir.

Kullanabileceğiniz kaynaklar:


Access denied bug: http://forums.asp.net/p/1075429/1579575.aspx

How to work around the access denied cross-domain frame issue in ASP.NET Ajax 1.0: http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx

Safely avoiding the "access denied" dialog [How to: Work around the access denied cross-domain IFRAME issue in the AJAX Control Toolkit]: http://blogs.msdn.com/delay/archive/2007/02/05/safely-avoiding-the-access-denied-dialog-how-to-work-around-the-access-denied-cross-domain-iframe-issue-in-the-ajax-control-toolkit.aspx
Ajax and validaters are not working in IFrame : http://forums.asp.net/p/1334037/2683461.aspx
http://aspnetqa.blogspot.com/2008_10_01_archive.html
http://aspnetqa.blogspot.com/

Hiç yorum yok: