This is a migrated thread and some comments may be shown as answers.

DatePicker not opening IE7, IE8 in iframe (access is denied)

1 Answer 155 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
David Forehand
Top achievements
Rank 1
David Forehand asked on 03 Dec 2009, 05:36 PM
I am having a problem with the DatePicker. It is not opening properly in IE7 or IE8 when accessed via an iframe. It works fine when it's not accessed via an iframe. The Javascript error I am getting is below.

This problem does not happen in Chrome or Firefox. 
When using Telerik version 2008.2.286.20, it only happened on IE7 and did not happen on IE8. 
After upgrading to version 2009.3.1103, it not happens on IE7 and IE8.

Has anyone ever seen this before?

Error:

Message: Access is denied.

Line: 6

Char: 73478

Code: 0

URI: /Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_cphSurvey_RadScriptManager1_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d1.0.61025.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f0f78f9-0731-4ae9-b308-56936732ccb8%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1103.20%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3afa29fa87-3646-4a1f-8f90-45263b4e63e9%3a16e4e7cd%3aed16cbdc%3af7645509%3a8674cba1%3ab7778d6c%3ac08e9f8a%3a59462f1%3aa51ee93e

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 08 Dec 2009, 12:37 PM
Hi David,

The error is caused by the Sys.UI.DomElement.getLocation method, which is part of the MS Ajax client framework. You options are:

1) the main page and the iframe page should be in the same domain
or
2) implement the workaround suggested here


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Calendar
Asked by
David Forehand
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or