Ç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/
C#, .NET, .Net Core
ASP.NET MVC, ASP.NET Web Forms, ASP.NET Core
HTML 5, CSS 3, Javascript, jQuery, Bootstrap
Entity Framework, NHibernate, Dapper
Sql Server, MySql, Oracle
Windows Server, Ubuntu, Debian, Pardus
Xamarin Forms, Android Studio
--- The future of the open web platform is looking very bright!
--- .NET is a free, cross-platform, open source developer platform for building any app.
Google Analytics İzleme
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder