MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in
Blogs from the OpenSocial JS Container Team

Container Updates: 04/21/2008

Notable Updates from Last Push

Browser Aware Resizing

    <button onclick="gadgets.window.adjustHeight();">&nbsp;&nbsp;&nbsp;</button>
    <button onclick="gadgets.window.adjustHeight(0.2);">0.2</button>
    <button onclick="gadgets.window.adjustHeight(0.5);">0.5</button>
    <button onclick="gadgets.window.adjustHeight(0.8);">0.8</button>
    <button onclick="gadgets.window.adjustHeight(1);">1.0</button>
    <button onclick="gadgets.window.adjustHeight(200);">200</button>
    <button onclick="gadgets.window.adjustHeight(800);">800</button>
   
What they do in order:

1.    Adjust height to content
2.    Make height 20% of viewable space
3.    Make height 50% of viewable space
4.    Make height 80% of viewable space
5.    Make height 100% of viewable space
6.    Make height = 200px
7.    Make height = 800px

Delete App Data

You can now delete app data.

User Type in Person

You can now determine what a friend's user type is. Some examples are Band and Regular user
friend.getField(MyOpenSpace.Person.Field.USER_TYPE);

PostTo and Flash

We released a fix for the flash issue in PostTo

Also check out Chad's post regarding encoding urls 

Comments

 

AppWizard said:

You mentioned that you can now delete app data.

Can app data be accessed from the REST API?

April 21, 2008 3:50 PM
 

Roger said:

a) how can you delete data.

and on this wasn't mentioned in this update.. that all APP Viewer data became global over the weekend.

Thus if Application A had a key "favorite_color" in the VIEWER all data.. an dyou set that to red..

Then Application Z updated "its" favorite_color" key for the same VIEWER.. that it OVERWROTE Application A's value.

April 22, 2008 4:43 AM