How to integrate custom javascript [message #824604] |
Mon, 19 March 2012 17:34  |
Eclipse User |
|
|
|
Hi,
currently I try to add web analytics tracking to my RAP application, but up-to-know I found no proper approach to add the custom javascript to various views and editors.
I tried to use the Browser widget and everything works fine, but the browser widget always consumes some space that destroys the layout.
Is there a way to add the javascript tagging in browser widget that has no size (using the browser widgets setSize method has no effect)?
Do you know any alternative approach for adding the javascript tags?
Thanks for your support.
Regards
Karsten
|
|
|
|
|
|
|
Re: How to integrate custom javascript [message #825767 is a reply to message #825114] |
Wed, 21 March 2012 04:32  |
Eclipse User |
|
|
|
Hi,
I changed my implementation approach and now I'm using the REST API for analytics tracking. The usage of JSExecutor is not really useful, since that is a RAP internal component.
> The entire approach of using JS seems very tricky to
> me. Can't you collect the data you need on the server?
No :-); I'm using PIWIK to collect the data, create dashboards, etc.; just like Google analytics (but with more data security for the user). If I start to track everything on my own I will be lost in creating the required reports. Using the REST API requires more coding than the javascript tacking, but thats OK.
|
|
|
Powered by
FUDForum. Page generated in 0.28316 seconds