You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by Eric Woods <wo...@gmail.com> on 2010/09/07 16:22:41 UTC
Albums/MediaItems Gadget Not Rendering
Hey guys,
I need help. I'm encountering an issue when rendering a gadget using
Shindig's latest trunk (downloaded and built Friday evening, 9/3). My
gadget uses JavaScript/DOJO and interacts with the recently implemented
Albums & MediaItems services. Inclusion of a single line in the gadget XML
file, a CSS import from Google's CDN, causes the gadget to render blank:
<link rel="stylesheet" type="text/css" href="
http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css
">
Removing the line enables the gadget to render and function fine (minus
tundra.css styling as expected). Interestingly, this exact same gadget
gadget worked with the 2.0.x build as of last week, so I know the gadget
ought to work and it's not a minor syntax issue in the gadget itself. Is it
possible Shindig includes some CSS styling that might interfere with
tundra.css? The example gadgets included with Shindig work. Any ideas or
suggestions?
The gadget has been uploaded to JIRA for inclusion in Shinidg:
https://issues.apache.org/jira/browse/SHINDIG-1410.
Screenshots of how out ought to look are here:
https://docs.google.com/leaf?id=0B-zwcqgujo7CYmExNWRhNjItOGViNS00ZjMzLWE4MTktNGQ5ZTcxNzU0YmQ3&hl=en
Thanks so much,
Eric W.
Re: Albums/MediaItems Gadget Not Rendering
Posted by Eric Woods <wo...@gmail.com>.
Brief update on this issue, which has not yet been resolved.
It seems inclusion of CSS files via a <link ... /> tag causes the
gadgets.util.registerOnLoadHandler() mechanism to not fire. These has been
confirmed with at least two CSS files (including Google's CDN of tundra.css)
and with simple sample gadgets that are bundled with Shindig today. Until
the problem is identified and fixed, a work-around is to register with
DOJO's load handler directly.
For example, rather than this:
gadgets.util.registerOnLoadHandler(function() { dojo.addOnLoadHandler(init);
});
Do this directly:
dojo.addOnLoad(init);
Hope this helps,
Eric W.
On Tue, Sep 7, 2010 at 10:22 AM, Eric Woods <wo...@gmail.com> wrote:
> Hey guys,
>
> I need help. I'm encountering an issue when rendering a gadget using
> Shindig's latest trunk (downloaded and built Friday evening, 9/3). My
> gadget uses JavaScript/DOJO and interacts with the recently implemented
> Albums & MediaItems services. Inclusion of a single line in the gadget XML
> file, a CSS import from Google's CDN, causes the gadget to render blank:
>
> <link rel="stylesheet" type="text/css" href="
> http://ajax.googleapis.com/ajax/libs/dojo/1.5/dijit/themes/tundra/tundra.css
> ">
>
> Removing the line enables the gadget to render and function fine (minus
> tundra.css styling as expected). Interestingly, this exact same gadget
> gadget worked with the 2.0.x build as of last week, so I know the gadget
> ought to work and it's not a minor syntax issue in the gadget itself. Is it
> possible Shindig includes some CSS styling that might interfere with
> tundra.css? The example gadgets included with Shindig work. Any ideas or
> suggestions?
>
> The gadget has been uploaded to JIRA for inclusion in Shinidg:
> https://issues.apache.org/jira/browse/SHINDIG-1410.
> Screenshots of how out ought to look are here:
> https://docs.google.com/leaf?id=0B-zwcqgujo7CYmExNWRhNjItOGViNS00ZjMzLWE4MTktNGQ5ZTcxNzU0YmQ3&hl=en
>
> Thanks so much,
> Eric W.
>