loading image on html web resource when fetchxml takes more time RRS feed

  • General discussion

  • Hi ,

    I have a html web resource, Where i am retrieving records using fetchxml, When there are more records, after 2 mins , It is giving an alert saying " Script is taking long time". 

    Instead of this, I want to show a loading(rotating) image till it retrieves the records. I am not sure how we can achieve this in crm 2011.

    Any help is appreciated..



    Sreeni Pavalla

    Tuesday, January 21, 2014 8:50 PM

All replies

  • Hi,

    It can be done with this mechanism:

    1. Before calling your FetchXML request, show your image loading.

    2. When your FetchXML is done (async or sync), hide your image loading.

    function(data) {
    // Success
    function(error) {
    // Fail

    I suppose you already have your image with loading animation.

    Hope it helps.

    Wednesday, January 22, 2014 2:42 AM