yes, i can add this: i am using prototype in my javascript framework, and it had driven me almost crazy this: http://code.google.com/p/opensocial-resources/issues/detail?id=104
<http://code.google.com/p/opensocial-resources/issues/detail?id=104>adjustHeight and other opensocial api calls where working inconsistently, and without any errors. so, if you dont see any error, maybe you have some kind of incompatibility. i solved mine upgrading my prototype to the last version. thanks! 2011/5/4 Bruno Oliveira ("btco") <[email protected]> > Thanks for this great post! :-) > > It's a good thing you brought up point #1, it can be frustrating to many > developers. It's always a good idea to include a version number in your XML > to make sure you are debugging the right thing. We also cache other > application assets, so if you just updated a graphics file that you are > using, you may not see changes immediately. > > Another relevant point is that you should always do error handling on the > callbacks: > > function callback(data) { > if (data.hadError()) { > // handle error > } > ... > } > > Why? Because if you don't check and try to operate on the data anyway, you > may get strange 'null' and 'undefined' values. I remember spending a few > hours scratching my head at this when I had just started learning > OpenSocial. So the bottom line is: always check for errors! > > By the way, you can get the error message like this: > > data.getErrorMessage() > > And the individual error messages for each of your requests like this: > > data.get('your_id').getErrorMessage() > > Another very important point I'd like to emphasize is #2: use a Javascript > console or debugger so you can see if you have any syntax errors or runtime > errors! > > Again, congrats on the great post and keep up the good work! :) > > - > Bruno Oliveira (Google) > > -- > 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. > -- 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.

