Alex, You cant use javascript on profile view. As you might notice, orkut will remove any flash, javascript, external css, etc, etc. Profile is restricted and to make it work, you will need to use opensocial-templates and data-pipelining.
See a sample here: http://www.opensocial-br.org/exemplo/opensocialbr.xml <http://www.opensocial-br.org/exemplo/opensocialbr.xml>Let me know if you have any doubt. Robson Dantas 2010/7/3 Alex Porto <[email protected]> > Hi, guys. > > I've been facing this problem: registerOnLoadHandler work's fine for apps > on canvas view, but not for profile. I've made a very simple gadget code, > just to add text to a div's content on initialization, and it just works on > canvas: > > <Content type="html" > > <![CDATA[ > <html> > <head> > <script type="text/javascript" language="javascript"> > function init() > { > document.getElementById('mydiv').innerHTML = "</br>Ok"; > } > > gadgets.util.registerOnLoadHandler(init); > </script> > </head> > <body> > <center> > <div id="mydiv">Loading.....</div> > </center> > </body> > </html> > ]]> > > > Am I doing anything wrong here? > > Alex > > -- > You received this message because you are subscribed to the Google Groups > "orkut Developer Forum" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<opensocial-orkut%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/opensocial-orkut?hl=en. > -- You received this message because you are subscribed to the Google Groups "orkut Developer Forum" 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-orkut?hl=en.

