CRM 2011 Ajax Loading Message Screen with JQuery
When you use ajax request in CRM2011 (for example, the OData call), the user is not notified when this process happens in the background. Although this call is relatively fast, sometimes you can't predict the performance of it and you want some kind of notification that lets the user know what's happening. Fortunately with the power of JQuery you can easily make this happen. In my case, I have a custom 'Create Opportunity' button on my custom entity form that gets the data from that entity (and related entity) and create opportunity with those data. When creating the opportunity using the OData way, I will show the loading message popup with the animated OOTB CRM progress gif image. To make this happen, it's simple. Just put this function into your onLoad form: You notice the center() method above. This is an add-on to the jQuery method that you can safely put on your jQuery file: That's it. Now whenever there is an Ajax call on the form, you will...