Problem w/ OpenSocial templates

5 views
Skip to first unread message

Ozéias Sant'ana

unread,
Nov 20, 2009, 11:16:22 AM11/20/09
to Orkut Developer Forum
Hey guys,

I've some applications using OpenSocial templates, but they stopped
working. Even a simple example does not work. The tag's - ${} - are
not executed.

Environment: sandbox and prod sandbox

XML: http://estrela.amanaie.com/ and http://209.20.67.239/
Simple XML example: http://estrela.amanaie.com/template.xml

Appreciate your help.

Thank you,
Ozéias Sant'ana 
Development Manager at SocialSmart
blog: http://railsbox.org
http://twitter.com/ozeias

Robson Dantas

unread,
Nov 25, 2009, 8:48:51 AM11/25/09
to opensoci...@googlegroups.com
Hello Ozéias,

Check out the simple example I´ve created. 


Let me know if you have any doubt.

Robson Dantas


2009/11/20 Ozéias Sant'ana <oz.sa...@gmail.com>

--

You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group.
To post to this group, send email to opensoci...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-ork...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.



Shishir Birmiwal (Google)

unread,
Nov 26, 2009, 12:54:52 AM11/26/09
to opensoci...@googlegroups.com
Hi,

I looked at http://estrela.amanaie.com/template.xml and saw that the process-on-server param is missing for opensocial templates.
Please take a look at http://birmiwal.net/shishir/apps/hello.xml on how to do this.

Thanks,
Shishir
--

Ogden Nash  - "The trouble with a kitten is that when it grows up, it's always a cat."

Ozéias Sant'ana

unread,
Nov 26, 2009, 2:12:09 PM11/26/09
to Orkut Developer Forum
Hi Guys,

Thank's for help. I found the problem.

If you add any <script type="text/javascript">anything</script> tag
inside of <script type="text/os-template">, all tags break.

But I need these tags, for example:

<script type="text/javascript" if="${owner.isViewer &&
profile.content.user.name != 'null'}">
$('ul.paging li').click(function() {
$.estrela(this, "${owner.id}", "<%= url -%>");
});
</script>

Any suggestions?

Thank you guys,
Ozéias Sant'ana 

Robson Dantas

unread,
Nov 26, 2009, 5:21:29 PM11/26/09
to opensoci...@googlegroups.com
Which view are you testing ? Profile or Canvas?

On Profile view, container will strip all script tags.

Regards,

Robson

2009/11/26 Ozéias Sant'ana <oz.sa...@gmail.com>

Ozéias Sant'ana

unread,
Nov 27, 2009, 7:18:07 AM11/27/09
to Orkut Developer Forum
On Canvas. Stopped working after the new orkut!

Thank you,
Ozéias Sant'ana

On Nov 26, 8:21 pm, Robson Dantas <biu.dan...@gmail.com> wrote:
> Which view are you testing ? Profile or Canvas?
>
> On Profile view, container will strip all script tags.
>
> Regards,
>
> Robson
>
> 2009/11/26 Ozéias Sant'ana <oz.sant...@gmail.com>
>
>
>
> > Hi Guys,
>
> > Thank's for help. I found the problem.
>
> > If you add any <script type="text/javascript">anything</script> tag
> > inside of <script type="text/os-template">, all tags break.
>
> > But I need these tags, for example:
>
> > <script type="text/javascript" if="${owner.isViewer &&
> > profile.content.user.name != 'null'}">
> >    $('ul.paging li').click(function() {
> >      $.estrela(this, "${owner.id}", "<%= url -%>");
> >    });
> > </script>
>
> > Any suggestions?
>
> > Thank you guys,
> > Ozéias Sant'ana 
> > blog:http://railsbox.org
> >http://twitter.com/ozeias
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Orkut Developer Forum" group.
> > To post to this group, send email to opensoci...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > opensocial-ork...@googlegroups.com<opensocial-orkut%2Bunsubscrib e...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages