locked
modal window from ribbon not working in IE RRS feed

  • Question

  • Hello,

      I tried this many ways, this forum is last call. I want to open modal window from ribbon bar that it would display my web-resource. I tried in ribbon xml file define url to my webresource like this

       <CommandDefinition Id="TTT.DashboardTab.Query.CustomSolution.Command">
          <EnableRules />
          <DisplayRules />
          <Actions>
            <Url Address="$webresource:prefix_/ddd/web/myfile.htm" WinMode="2" />
          </Actions>
        </CommandDefinition

    also tried to add javascript action which calls Xrm.Utility.openWebResource

    but in both cases it seems it does not get parent window context,

    when action defined as javascript then it open in new window, 

    when action is url it does open in modal window but does ignore window.top.resizeTo function, also tried window.parent.

    What i am missing? Either way i define those actions it works in other browsers.

    Thanks

    Tuesday, March 25, 2014 12:43 PM

Answers

  • Hi DeserPunk,

    I have faced this a couple of times, when it simply won't open up as a modal dialog even after a lot of tries. So, as a workaround, what I do is have the Action call a JavaScript function instead of an URL, and have that JavaScript function open up the html page using window.open(). That works for me always.


    Admin QuikView Solution for CRM 2013

    • Marked as answer by DeserPunk Tuesday, March 25, 2014 1:20 PM
    Tuesday, March 25, 2014 1:05 PM

All replies

  • Hi DeserPunk,

    I have faced this a couple of times, when it simply won't open up as a modal dialog even after a lot of tries. So, as a workaround, what I do is have the Action call a JavaScript function instead of an URL, and have that JavaScript function open up the html page using window.open(). That works for me always.


    Admin QuikView Solution for CRM 2013

    • Marked as answer by DeserPunk Tuesday, March 25, 2014 1:20 PM
    Tuesday, March 25, 2014 1:05 PM
  • Yes indeed, this does work, but i am not satisfied, because this one is unsupported method, don't understand why does "Xrm.Utility.openWebResource" js method does not work as it should. But still, it is working and it is good enough for me. Thanks
    Tuesday, March 25, 2014 1:22 PM