web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Show Modal Dialog Size Problem in IE

(0) ShareShare
ReportReport
Posted on by 242

Hi,

I am working on CRM 2011 (UR13) and trying to display an HTML Web resource (which contains a Silverlight XAP file) as a Modal Dialog from a Ribbon Button.

The Ribbon action XML is as below.

           <Actions>

             <Url Address="$webresource:new_Wizard.htm" PassParams="true" WinMode="1" WinParams="dialogHeight=100; dialogWidth=100" />

           </Actions>

In both Chrome and Firefox, the dialogHeight and dialogWidth values are honoured.

However, in IE these are ignored and the pop-up window is huge (almost full screen).

Has anyone else seen this behaviour or know a way to fix it?

Best Regards,

Shaun Harvey

*This post is locked for comments

I have the same question (0)
  • Peter72 Profile Picture
    1,815 on at

    Have you tried height and width instead of dialogHeight and dialogWidth?

  • Verified answer
    Shaun W Harvey Profile Picture
    242 on at

    Hi,

    Yes I did try that and Internet explorer was happy!

    However that broke the Chrome and Firefox browsers that were already working.....

    I have actually managed to find a different solution.

    I am opening up the HTML Web Resource from a Javascript Function instead (triggered by the click of the Ribbon Button).

    This function uses the Xrm.Utility.openWebResource() method introduced in Roll-Up 8  of CRM 2011.

    msdn.microsoft.com/.../jj602956(v=crm.5).aspx

    The Function call allows you to specify the web resource URL, and the size of the pop-up window.

    Xrm.Utility.openWebResource("new_webResource.htm?typename=account&userlcid=1033", null, 300, 300);

    Shaun Harvey

  • felipegs Profile Picture
    95 on at

    You can try resizing the screen in the onload event using a JS script instead of sending the params.

    use this:

    window.resizeTo(480, 250);

    hope this helps at least as general culture!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans