Am 25.09.2012 17:13, schrieb Christian Fischer:
Am 28.08.2012 17:09, schrieb Chris Geer:
On Tue, Aug 28, 2012 at 7:12 AM, Christian Fischer
<[email protected]>wrote:
Hi all,
the Holidays are over, so it's time to integrate my Code for the
Inter-Widget-Communication-Helper into RAVE.
What i have done so far:
apache-portal-resources -> integrated my custom JavaScript and CSS
through
the custom_js.tag and custom_css.tag. This works quite well
everytime the
Page loads :)
The Problem is, that i must inject a little piece of Code into EACH
Widget
without manipulating the original widget - everytime a iframe gets
loaded.
Example:
original Widget:
<html><head><script src="widget_script.js"> ... </head>...</html>
loaded Widget with Code-Injection:
<html><head><script src="widget_script.js"> ... <script
src="myscript.js">
... </head>...</html>
Is this possible with RAVE? At this point, I have found nothing in the
sources that would make it possible. I Think the only way is to use a
custom build of wookie that injects the script for me.
The rave-providers -> W3CWidgetRenderer just loads the List of Widgets
from the Wookie-Store and builds the Block for the rave.registerwidget
function (At least I think that).
It would be nice if i can inject the code to all widgets when
loading the
page, whether they are OpenSocial or W3C Widgets.
Has anyone suggestions for me?
Is it possible to load a "default feature" for each widget?
I don't believe there is a way to do this at the moment at a Rave
level. On
the OpenSocial side I'm sure you could modify one of the shindig core
features that gets loaded with every widget and add your code to that
but I
don't know about the Wookie side.
Hi Chris,
i get the things up and working fine for W3C widgets by using a custom
build of wookie.
For Opensocial Gadgets you said, that there should be a way with the
shindig core features that gets loaded with every widget.
Can you explain a litte more about that?
I need to insert my custom JS-File reference to each Gadget and i need
to enable the pubsub-2 feature in each gadget without modifying any
source core of the original gadget.
I tried to use a custom build of shindig with rave but i get security
errors when loading OpenSocial Gadgets:
"Unable to render OpenSocial Gadget: Gadget is not trusted to render
in this container."
Have you any hint for this problem? (Current Shindig Snapshot)
The Error above: "Unable to render OpenSocial Gadget..." exists only
with the current RAVE-Snapshot, it is not a Shindig fault.
I used the latest SVN version today which causes the error. With an
older 0.16 snaphot it works quite well.
However, when i access
http://localhost:8080/samplecontainer/samplecontainer.html i get a
malformed-security-token error.
Is this a RAVE related Bug?
Thanks,
Christian