Dynamic Loading (with Ajax)

Dynamic loading means loading data on request. The user can split data into parts by levels and decrease loading time this way.

The enableDynamicLoading() method should be used with the following parameters:

  • url - server-side script, transmitted parameters are action (set to "loadMenu") and "parentId" (will pass id of the selected complex item for loading its child items into sub-level polygon);
  • icon - true|false, replaces item's arrow icon while loading data with a "loading" icon to indicate the process of data loading.
myMenu.enableDynamicLoading(url, icon);

So, in our case we should write this line of code (without an icon):

myMenu.enableDynamicLoading("[script url]");
Back to top