This happens frequently -- in some circumstances most of the time, in
others, occasionally. I don't understand exactly why.

I'm using multiple iframes, and AJax (not the stuff in prototype, at
least not at the moment). I frequently get an error dialog, which
through painful tracing appears to happen somewhere either in or
shortly prior to delivery of the readystatechange event:

--- begin dialog
One or more ActiveX controls could not be displayed because either:
1) Your current security settings prohibit running ActiveX controls on
this page, or
2) You have blocked a publisher of one of the controls

As a result, the page might not display correctly.
--- end dialog

I have no ActiveX controls, other than the native Ajax XMLHttpRequest
object (I removed the legacy ActiveXObject versions in the process of
narrowing this down).

After a long session of divide-and-conquer elimination, I've traced
this down to the function checkDeficiency(tagName), apparently applied
to 'object'. (I didn't circle back and verify whether it also happens
with 'applet').

A quick workaround, probably not ideal, is to add this line to the
Prototype.Browser object:

IE8: !!(navigator.userAgent.indexOf('Trident/' > -1)),

and this line as the first line of checkDeficiency():

        // Makes you get an ActiveX warning, on page unload?
        if (Prototype.Browser.IE8) return false;

I don't understand exactly what deficiency is being worked around
here, so I don't know if there are any consequences in short-
circuiting this test.

I'm also not completely sure of my characterization of when and where
this dialog is triggered. However, it really does not seem to happen
on initial page load?

However, this patch does seem to reliably eliminate the error dialog.
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to