Wednesday, September 24, 2008

Dynamics CRM : Cannot focus on pop-up window when we use JavaScript

Cannot focus on pop-up window when we set the URL in JavaScript parameter, instead in Url Parameter then set WinMode="2" of your isv.config.xml.

Scenario : I need to call the crmForm.Save(); function in JavaScript before I open a pop-up window. We cannot user Url parameters then set WinMode="2" anymore.

Solution :

Call the save function in JavaScript parameter then call the new window.



Then on the NewPopUpWindow.aspx add this code on the Body tag onBlur="window.focus();"

No comments: