SBX - Search With Button

SBX - Forum Post Title

Script causing error in IE

Microsoft Dynamics CRM Forum

Wayne Loring asked a question on 16 Jul 2014 2:28 PM
My Badges

Question Status

Suggested Answer

IE crashes when this script runs , yet its fine in Chrome ??

function hidetabsifdm() {
    alert("WML_Running");
    {
        if (Xrm.Page.getAttribute("im_tmdm").getText() == "TM") {
            Xrm.Page.ui.tabs.get("tab_6").sections.get("tab_6_section_5").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_7").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_10").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_11").sections.get("tab_11_section_2").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_15").setVisible(true);
            Xrm.Page.data.entity.save();
            {
                alert("Value is TM");
            }
        }
        else if (Xrm.Page.getAttribute("im_tmdm").getText() == "DM") {
            Xrm.Page.ui.tabs.get("tab_6").sections.get("tab_6_section_5").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_7").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_10").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_11").sections.get("tab_11_section_2").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_15").setVisible(false);
            Xrm.Page.data.entity.save();

            {
                 alert("Value is DM");
            }
        }
    }
}

Error :

Problem signature:

  Problem Event Name:    APPCRASH

  Application Name:    IEXPLORE.EXE

  Application Version:    11.0.9600.17207

  Application Timestamp:    53a20c50

  Fault Module Name:    MSHTML.dll

  Fault Module Version:    11.0.9600.17207

  Fault Module Timestamp:    53a22b71

  Exception Code:    c0000005

  Exception Offset:    000714a5

  OS Version:    6.1.7601.2.1.0.768.3

  Locale ID:    1033

  Additional Information 1:    0a9e

  Additional Information 2:    0a9e372d3b4ad19135b953a78882e789

  Additional Information 3:    0a9e

  Additional Information 4:    0a9e372d3b4ad19135b953a78882e789

Reply
Nikhil Kumar Das responded on 18 Jul 2014 10:53 AM
My Badges

HI Wayne,

Is this IE 9 ?

IE 9 has a Hang Resistance Feature. The Hang Resistance feature is enabled by default in Windows Internet Explorer 9. Setting the HangRecovery value to 0 disables this feature; setting it to 1 enables it.

SOLUTION :

Eitehr you can use FIX it from microsoft web site :

support.microsoft.com/.../2698959

As a workaround, use the steps below to disable this feature:

1. Point to the Start menu, click Run, and then type regedit.

2. Navigate to HKEY_Current_User\Software\Microsoft\Internet Explorer\Main

3. Right-click Main, and then select new DWORD (32-bit) Value

4. Enter HangRecovery as the name.

5. The default value will be 0.

Thanks !

Reply
Wayne Loring responded on 1 Aug 2014 11:25 AM
My Badges

I can not roll back my entire company of users , but thanks

Reply
desjk responded on 16 Jun 2016 9:26 AM

same problem with me too

Reply
desjk responded on 17 Jun 2016 6:25 AM
Suggested Answer
hafizshakeel responded on 19 Jul 2016 2:03 AM

appreciated work. thanks for this favor... 

the-wowed.com/corel-draw-x8-portable-activation-code

Reply
Shah_ responded on 20 Jul 2016 9:42 AM
My Badges
Suggested Answer

HI,

       Can you try it using other version of IE.

Best Regards

Shah

Reply
vacey roy responded on 8 Oct 2016 9:20 AM

Well, Nice answers in return of this issue with real arguments and describing all regarding that Sims 4 game download for free

Reply
fawadgetful responded on 2 Jun 2018 7:14 AM

[Updated] Windows XP Product Keys Free for You - All Edition · October 21, 2017 ·

idm crack Serial Number · Product Keys Serial Number.

Reply
hpadmin responded on 14 Jul 2018 2:01 AM

Nice information thanks for sharing! Microsoft office crack

Reply
Sandeep Mishra responded on 15 Jul 2018 8:10 AM
My Badges
Suggested Answer
umar281 responded on 17 Jul 2018 1:36 AM
Suggested Answer

<a href="procracksoft.com/.../&quot;>anytrans crack</a> Great information.I will check out the rest of your blog.

Reply
jasonscript responded on 17 Jul 2018 2:30 AM
Suggested Answer

It looks like you have extra sets of  { }. Maybe IE is less "forgiving"? Try cleaning up the method and trying again

I've marked unnecessary { } in red

function hidetabsifdm() {
    alert("WML_Running");
    {
        if (Xrm.Page.getAttribute("im_tmdm").getText() == "TM") {
            Xrm.Page.ui.tabs.get("tab_6").sections.get("tab_6_section_5").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_7").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_10").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_11").sections.get("tab_11_section_2").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_15").setVisible(true);
            Xrm.Page.data.entity.save();
            {
                alert("Value is TM"); 
            }
        }
        else if (Xrm.Page.getAttribute("im_tmdm").getText() == "DM") {
            Xrm.Page.ui.tabs.get("tab_6").sections.get("tab_6_section_5").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_7").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_10").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_11").sections.get("tab_11_section_2").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_15").setVisible(false);
            Xrm.Page.data.entity.save();

            {
                 alert("Value is DM");
            }
        }
    }
}



Reply
Genya Akselrod responded on 16 Jul 2014 2:33 PM
My Badges
Suggested Answer

Hello,

Do you have any windows updates you have to install?

Do  you have any IE updates?

Thanks.

Reply
Genya Akselrod responded on 16 Jul 2014 2:53 PM
My Badges
Suggested Answer

Can you run a trace?

Reply
Effendy Lesmana responded on 16 Jul 2014 11:05 PM
My Badges
Suggested Answer

Have you try to using IE10?

because sometimes i also got error when using IE11..

Reply
desjk responded on 17 Jun 2016 6:25 AM
Suggested Answer
Shah_ responded on 20 Jul 2016 9:42 AM
My Badges
Suggested Answer

HI,

       Can you try it using other version of IE.

Best Regards

Shah

Reply
Sandeep Mishra responded on 15 Jul 2018 8:10 AM
My Badges
Suggested Answer
umar281 responded on 17 Jul 2018 1:36 AM
Suggested Answer

<a href="procracksoft.com/.../&quot;>anytrans crack</a> Great information.I will check out the rest of your blog.

Reply
jasonscript responded on 17 Jul 2018 2:30 AM
Suggested Answer

It looks like you have extra sets of  { }. Maybe IE is less "forgiving"? Try cleaning up the method and trying again

I've marked unnecessary { } in red

function hidetabsifdm() {
    alert("WML_Running");
    {
        if (Xrm.Page.getAttribute("im_tmdm").getText() == "TM") {
            Xrm.Page.ui.tabs.get("tab_6").sections.get("tab_6_section_5").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_7").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_10").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_11").sections.get("tab_11_section_2").setVisible(true);
            Xrm.Page.ui.tabs.get("tab_15").setVisible(true);
            Xrm.Page.data.entity.save();
            {
                alert("Value is TM"); 
            }
        }
        else if (Xrm.Page.getAttribute("im_tmdm").getText() == "DM") {
            Xrm.Page.ui.tabs.get("tab_6").sections.get("tab_6_section_5").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_7").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_10").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_11").sections.get("tab_11_section_2").setVisible(false);
            Xrm.Page.ui.tabs.get("tab_15").setVisible(false);
            Xrm.Page.data.entity.save();

            {
                 alert("Value is DM");
            }
        }
    }
}



Reply

SBX - Two Col Forum

SBX - Migrated JS