The WebOffice map widget supports Cross Domain Scripting scenarios. Cross Domain Scripting will be necessary in cases where WebOffice map widget is hosted in other applications (consequently in other domains) than it is implemented.
Note: When using cross domain scripting, the extension parent. of all callback functions will be needless.
To use Cross Domain Scripting following settings are prerequisite:
•The use of parameter &useXD=true in WebOffice map widget URL. By default, the parameter useXD is set false, which means that Cross Domain Scripting has to be activated explicitly.
•Within the file callback.js, which is implemented in the user's project, the variable mapWidgetUrl has to include the used WebOffice map widget host address. (The file callback.js is located within the WebOffice application, <WebOffice-Application>/client_mapwidget/Scripts/callback.js.)
Example for using Cross Domain Scripting:
•Activating the parameter useXD within in the WebOffice map widget URL:
http://<mapWidgetUrl>:<Port>/<WebOffice-Application>/client_mapwidget/default.jsp?baseURL=http://<mapWidgetUrl>:<Port>/<WebOffice-Applikation>&project=<Projektname>&width=600&height=400&useXD=true
•Indicating the WebOffice map widget URL within the variable mapWidgetUrl of the file callback.js:

Indication of the URL, where WebOffice map widget is hosted.
Note: After adjustments in file callback.js it's necessary to delete the browser history, otherwise the settings will be ignored.