Page History
...
Running Servoy Web Client inside a Frame or IFrame
By default, a Servoy Web Client runs in the main browser window. It is possible though to run the Web Client inside a Frame/IFrame inside other webpage.
When running a Servoy Web Client inside an Frame or IFrame (here onwards just called frame) and the domain of the page into which the frame is embedded (for example: http://www.mycompany.com/pagewithframes.html) does not equal the domain from which the Web Client is hosted for example (for example http://mycompany.hostingcompany.com), there is a possible issue with the ability of storing HTTP Cookies.
...
The Servoy Web Client uses HTTP Cookies to save the position and location of dialogs . Also and the functions application.setUserProperty(...) and application.getUserProperty(...) utilize Cookies in the Web Client.
If no dialogs are used in the application and User Properties are not used, there is no issue. Also when the page hosting the frame (for example: http://www.mycompany.com/pagewithframes.html) and the page inside the frame are hosted from the same domain (for example http://www.mycompany.com:8080/servoy-webclient/ss/s/solutionName) there is also no issue.
However, if dialogs or User Properties are used and are deemed important and the domains do not match, extra steps are required to make use that the application will function properly.
...
Option 2: Adding a "Compact Privacy Policy" to the Web Client
http://forum.developers.facebook.com/viewtopic.php?pid=204805
Download FilterP3P.jar and place it in <serverUrl>/application_server/server/webapps/ROOT/WEB-INF/lib (create the lib directory iif it doesn't yet exist).
Secondly, open <serverUrl>/application_server/server/webapps/ROOT/WEB-INF/web.xml and and the filter configuration shown below between the "</servlet-mapping>" and "</web-app>" tags.
Replace the value of the param-value with the CP value from the earlier generated Policy, for example CP="CAO PSA OUR"
Code Block | ||
---|---|---|
| ||
... </servlet-mapping> <filter> <filter-name>P3PHeaderFilter</filter-name> <filter-class>com.servoy.extensions.tomcat.filter.P3PHeaderFilter</filter-class> <init-param> <param-name>P3P-value</param-name> <param-value>CP="CAO PSA OUR"value>.....</param-value> </init-param> </filter> <filter-mapping> <filter-name>P3PHeaderFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app>... |
http://www.alphaworks.ibm.com/tech/p3peditorhttp://www.w3.org/P3P/implementations.html