I developed a web part that is loading a dialog, something like:
var dialog = SP.UI.$create_DialogOptions();
dialog.url = '_layouts/page.aspx';
etc..
Inside this dialog I have several stuff and what I want to do is to load an iframe and that iframe should access the javascript code from its parent. When I try to do this:
parent.triggerFunction()
it complains about cross domain issues. How can I solve this? I'm using SharePoint 2010