Just to close the loop on this one.  Stefan found that there is an issue in
the DOCTYPE of the
gadget that can cause this issue, however there are still other problems
that are not taken care of
even with the updated doctype.  I've requested that a Jira issue be opened
on the Apache Shindig
project to track this.

Paul

On Sun, Aug 22, 2010 at 5:33 AM, StefanTheM <[email protected]> wrote:

> Hello People,
> We are currently developing an OS-application wihich makes excessive
> use of external templates and autoUpdate-features. Up to this point we
> have always tested in Firefox and had no problems with that.
> However, when we started cross-browser-testin, we were having major
> problem getting the most simple templates to run smoothly.
>
> Here is a example-gadget.xml to demonstrate my problem:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>    <ModulePrefs title="OS Templates Crossbrowser">
>        <Require feature="opensocial-0.9" />
>        <Require feature="views" />
>        <Require feature="dynamic-height" />
>        <Require feature="opensocial-data" />
>        <Require feature="opensocial-templates" />
>    </ModulePrefs>
>    <Content type="html">
>    <![CDATA[
>
>        <script xmlns:os="http://ns.opensocial.org/2008/markup";
> type="text/os-data">
>                <os:PeopleRequest key="friends" userId="@viewer"
> groupId="@friends"/
> >
>        </script>
>
>        <script type="text/javascript">
>                opensocial.data.DataContext.putDataSet( "fruit", "Passion
> Fruit" );
>
>               function doit()
>                {
>                       opensocial.data.DataContext.putDataSet( "fruit",
> "Coconut" );
>
> opensocial.data.DataContext.putDataSet( "friends", [{"name":
> {"givenName":"Mickey"}},{"name":{"givenName":   "Donald"}}] );
>                }
>        </script>
>
>    <script type="text/os-template" xmlns:os="http://ns.opensocial.org/
> 2008/markup" require="friends, fruit" autoUpdate="true">
>
>                <ul>
>                   <li repeat="${friends}">
>                        <span
> id="id${Context.Index}">${Cur.name.givenName}</span>
>                   </li>
>                </ul>
>
>                <button onclick="doit()">Click me</button>
>
>                <h3>Fruit in gadget.xml: <span>${fruit}</span></h3>
>
>        </script>
>
>        ]]></Content>
> </Module>
>
> IE doesn't display content inside the template becoz it seems that the
> context-object "fruit" has not been set and is required. However this
> works great in FF/Safari.
> Another issue is that IE seems not not care about autoUpdate. If the
> button is clicked, context-objects "friends" and "fruit" change and
> the template is re-rendered automatically in FF ans Safari, displaying
> the the content correctly - contrary to IE.
>
> We use OSDE for Eclipse in version 0.9
> Tested in Internet Explorer 7 and 8 (none works)
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenSocial Application Development" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<opensocial-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-api?hl=en.
>
>


-- 
Paul Lindner -- [email protected] -- linkedin.com/in/plindner

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en.

Reply via email to