The easiest way is to build a skeleton app as part of the gadget XML and have it refer to external script files. No need to add/remove app with adding params all the time, just reload the frame:
<?xml version="1.0" encoding="UTF-8"?> <Module> <ModulePrefs ...> <Content type="html"> <![CDATA[ <script type='text/javascript' src='[script goes here]'></script> <div id="panel"></div> ]]> </Content> </Module> :DG< On 11/2/07, Daniel C. Silverstein (cubes) <[EMAIL PROTECTED]> wrote: > > Yeah, caching is a pain on the Orkut sandbox, but critical for > performance in production. According to the Google staff, if you > append the url parameter bpc=1 to the page you are viewing in orkut, > it will force reloading of gadgets. > > E.g. if you were viewing my profile: > http://sandbox.orkut.com/Profile.aspx?uid=12673260502809730212 > > Adding the bpc=1 parameter, like so: > http://sandbox.orkut.com/Profile.aspx?uid=12673260502809730212&bpc=1 > will, in theory, cause all the gadgets on my profile to be reloaded > from the sources. > > (Dan) > > On Nov 2, 2007, at 7:18 PM, Rohit Kumar wrote: > > > how long is the caching time. i remember reading it in the docs but > > later lost it. > > > > On 11/3/07, Siddharth Uppal <[EMAIL PROTECTED] > wrote:You can > > always rename the gadget file and create a new application > > referencing the renamed file to work-around the caching issue. > > > > Sid > > > > > > On 11/2/07, Jay Hoover (Snapvine) <[EMAIL PROTECTED]> wrote: > > Hey everyone, > > > > I'm just getting started but I wonder if anyone has any good tips for > > new developers. For instance... > > > > The sandbox on Orkut doesn't seem to be refreshing my app. I've tried > > reinstalling my app but it seems to be getting cached. Is there a > > trick to getting Orkut to refresh the app? > > > > Does anyone have any useful tricks for debugging javascript in your > > gadget in Orkut? > > > > -jay > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenSocial Developers" group. To post to this group, send email to opensocial-api@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---