Cross Domain Scripting

Cross Domain Scripting is necessary, if you want to host the WebOffice 10.9 SP1 on another domain than the domain, where you want to integrate the WebOffice map widget.  Following adaptions have to be performed:

Adaptions in the file callback.js'
The file C:\Tomcat\webapps\<WebOffice Application>\client_mapwidget\Testcontainer\callback.js contains default Callback Functions for the WebOffice map widget Testcontainer and those functions, which have to be individually adapted. Integrate the following Callback Functions in your application and change the first lines of the file to:

 

callback.js - Adaption of mapWidgetURL

callback.js - Adaption of mapWidgetURL

 
Change the Variable mapWidgetURL to the desired Host-URL of the Domain, where the WebOffice 10.9 SP1 Application is going to be hosted, e.g.

 

callback.js - Example

callback.js - Example

 

Note: You will find further information on the Callback Function parameters in the chapter Callback Function Parameters.

 

Usage of the parameter for Cross Domain Communication
Add the parameter &useXD=true to the WebOffice map widget URL. This parameter will ensure, that the Cross Domain Communication will be applied.

 

Parameter for Usage of the Cross Domain Communication

Parameter for Usage of the Cross Domain Communication