views:

1875

answers:

3

I’m working on an application that uses the ajax control toolkit 1.0.20229.0, jquery 1.3.2 and thickbox 3.

We are in the process of removing the ajax control toolkit, but since it’s a large app it will take several versions before we can completely remove it.

When I click a link that pops up a thickbox modal containing iframe it works, most of the time. In IE7 I sometimes get either “Access Denied” or “Object doesn’t support this property or method” it seemingly random, but the errors always seem to be happening in the ajax control toolkit javascript.

Has anyone seen this before or have any suggestions on how to track it down?

+1  A: 

This sounds like your browser is trying to access the dom before its ready.

Are you wrapping your javascript in a (jQuery example)

$(document).ready(function(){ ...do your stuff here ...});

?

That would be the first thing I'd try.

Lewis
That or the control library simply isn't being loaded.
altCognito
It's not my code that's being called, it's the stuff in the ajax control toolkit.
ilivewithian
or the iframe access would be x-domain
annakata
+3  A: 

"Access is denied" usually comes when there is cross domain referencing. Check if you are some how referencing any page from a different domain than the one which is running your jQuery. Ajax Control Toolkit itself does not do cross domain referencing.

Kartik Sehgal
Is there a way to allow this happen? My page tries to access currency exchange rate feed information from another server and comes up with this error... Thanks.
Jimbo
A: 

I am having same problem like that and in my case i am sure i am calling other page from the other domain. its like website A click on link and it shows a modal page holding the content of website B from the other domain and placed in the iframe container of websiteA. and i got an error "Access is denied" is there any other work around?

jeff