I have an xaf app that is being hosted within an iframe from a different domain. Meaning that attempts to access the window object from within the iframe will cause Access denied errors.
My app is a detail view with an associated list view. When I move my mouse over the listview, it raises an exception in the function xafMM() when it attempts to access the window object. When I debug the page, I can see that there are onmousemove events that call this function (as well as onmousedown and others).
Alternatively, is there a way I can hook into the cells and rows at the time of page creation to modify the onmousemove attribute myself? I was able to get into the Grid.HtmlRowCreated and add attributes to the row. I could also iterate through the cells, but it appears that when I add attributes to the cells, they get blasted by some processing that is happening later within the xaf framework.
I appreciate any help.
I have an xaf app that is being hosted within an iframe from a different domain.
I am afraid this usage scenario is not officially supported by XAF. So, we cannot recommend you use XAF here because we have not run our internal functionality and unit tests under such circumstances, and thus there may be other problems further on road.
Having said that, we cannot promise quick improvements to the CommonFunctions.js file, because it may fail in other places as well, although your suggestions look valid.
However, we had a few customer requests about supporting this scenario in XAF and will take your feedback into account when planning future XAF releases. For now, I already added a link to your ticket at Embed XAF view in iframe, which you may find helpful as well.
At this stage I can only recommend you recompile the XAF source code and modify the required script files according to your business needs: How to recompile the XAF source code.