Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2745
Error getting ajaxIndicator in Javascript source files for webdropdown
posted

Hello!

I have implemented a client-side script that should invoke the servers-side event ItemsRequested.

           function indexChanging(sender, eventArgs) {

var combo2 =$find('ctl00_ContentPlaceHolderHeader_ddEC3Country');

           var sel = eventArgs.getNewSelection()[0].get_text();

           combo2.loadItems(sel);

 

}

after the loaditems method i called, it jumps over to the serverside and executes the ItemsRequested methd. This method is 'empty' at the moment. 'After that method is called, it fails in a javascript function shown below which is included in the source files for the webdropdown control.

           _endRequest: function()

           {

           this._currentRequests--;

           if (this._callbackQueue.length > 0)

           this._popCallback();

           /* get ajaxIndicator: do not use ctl._pi, because, child grid does not have it and */

/* filters through ajaxIndicator of hierarchical grid */

var pi = this._control.get_ajaxIndicator ? this._control.get_ajaxIndicator() : null;

                      /* hide ajaxIndicator (do not reset _posted here) */

           if (pi)

           pi.hide();

           }

it is the getAjaxIndicator that seems to be null....

I have no ideas what this can be, someone?

/Henrik