I'm embedding a dashboard in a visualforce page using an iframe:
<iframe src="/01ZJ00000007JGa?isdtp=vw"/>
When I try to click on any component to load the underlying report, I get this javascript error:
Uncaught TypeError: Cannot read property 'Listener' of undefined iframeinterface.js:1
Sfdc.xdomain.IframeInterface.handleOnload iframeinterface.js:1
window.onload crossDomainProxy.html:6
The affected file is served from <SFHOST>/xdomain/iframeinterface.js and the specific line that's causing the error is:
("sfdc-console" === b ? top :
"undefined" !== typeof a.targetParentFrame ?
parent.frames[a.targetParentFrame].frames[b] :
parent.frames[b]
).Sfdc.xdomain.Listener.accept(a)
Any thoughts about what's going wrong and how I can fix it?
UPDATE
I was able to accomplish what I need to with the following hack described in this answer, made possible by the fact that I'm on the same domain. But I'll leave the question open, looking for a more thorough explanation and non-hackish way to embed a dashboard in Visualforce.
mn(although it's ugly) – Benj Feb 21 at 19:20