CRM 2011 Dialog Code and Modern Browser Issues

Khaled, Majed 0 Reputation points
2025-02-05T13:06:41.0566667+00:00

CRM 2011 uses window.showModalDialog and window.showModelessDialog, which don't work in modern browsers like Chrome and Edge. The code also uses window.parent, which should be updated to window.postMessage.

Questions:

  1. How to replace window.showModalDialog and window.showModelessDialog in CRM 2011?
  2. How to update the code from window.parent to window.postMessage?
Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,740 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,043 questions
Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
486 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.