Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

"Alert.show" function in the library Alert.js not working in IE

Posted on by Microsoft Employee

I am using the "Alert.show" function to open custom HTML pop-up from the javascript library "Alert.Js" downloaded from "github.com/.../alertjs".

The function "Alert.show" is working fine in Google Chrome but it's giving an error at runtime (as shown in the image) while executing in IE.ipmsgclip_5F00_r_5F00_1508837340_5F00_0.png

*This post is locked for comments

  • JayeshAC Profile Picture
    JayeshAC 1,157 on at
    RE: "Alert.show" function in the library Alert.js not working in IE

    Glad you have resolved it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Alert.show" function in the library Alert.js not working in IE

    Thanks you Jayesh

    I resolved the issue before your comment but yes you are right, I didn't specified it at the TOP level.

  • Verified answer
    JayeshAC Profile Picture
    JayeshAC 1,157 on at
    RE: "Alert.show" function in the library Alert.js not working in IE

    Hi Jeet,

    This code should work in IE.

    Please check the below prerequisites.

    1. Added Alert.js in the form library at the TOP Level.

    2. Parameter required for Alert.show method are correct and valid.

    As per the error mentioned in your screenshot, it seems that you have not provided the required parameter to Alert.show method.

    Regards,

    Jayesh

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Alert.show" function in the library Alert.js not working in IE

    Jeet,

    I dont know if these links helps you, but kindly look into it

    stackoverflow.com/.../object-expected-error-using-jquery-only-in-ie8

    www.adspeed.com/.../Object-Expected-error-Internet-Explorer.html

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Alert.show" function in the library Alert.js not working in IE

    Thanks for the suggestion Vignesh.

    I need to use Alert library is to customize the name of the button in the pop-up and now I have implemented the functionality but it is not working in IE only.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Alert.show" function in the library Alert.js not working in IE

    Thanks for the reply.

    But my requirement is to resolve the error and I do not want to place notification on form.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "Alert.show" function in the library Alert.js not working in IE

    Hi Jeet,

    You can directly use alert("Your message") in Html to embed in CRM. Alert library is not needed.

    Thanks,

    Vignesh Mohan

  • arif imteyaz Profile Picture
    arif imteyaz 375 on at
    RE: "Alert.show" function in the library Alert.js not working in IE

     Xrm.Page.ui.setFormNotification("This Request is Rejected.", "INFORMATION") (CRM 2016)

    or

           alert("Error in '" + status + "' :" + e);

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans