Dynamically changing the href on a link with data-dialog-type = modal does not work For reference I am working on this issue for the Focal Point module...

I have a link whose href is updated dynamically using js based on a particular user interaction (moving the focal point on an image). The link may start as /admin/focal_point/preview/10/21x68 but after a user moves the focal point to another part of the image it is changed to /admin/focal_point/preview/10/75x28. In attempting to open this preview page open in a modal (as opposed to a new window) I'm finding that clicking the link loads the preview as though the link had not been changed. Any idea how to tell the ajax logic that loads modals to acknowledge the changed href?
Presumably, the JS used to generate the dynamic href is on the page that the modal opens?  If I'm not mistaken, iframes do not run their attached scripts by default.  So this page may be helpful:

https://stackoverflow.com/questions/251420/invoking-javascript-code-in-an-iframe-from-the-parent-page?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa

Since your requested iframe is on the same domain as your parent page, there shouldn't be any CORS issue.