i really don't know how the name the subject.. anyway..
i'm having this error in testing the Gifts - 4 - activities sample from the OpenSocial articles tutorial..
error is: window._IG_RegisterOnloadHandler is not a function
there is a 0.7 version of it (that works on orkut) but I used the 0.6 version knowing that myspace implements (as of now) OpenSocial 0.6
the code I used:
<script src="http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.6/json.js"></script>
<script src="http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.6/SocialNorms.js"></script>
<style>
@import url(http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.6/styles.css);
</style>
<div id='main'>
</div>
<script>
var gadgetToLoad = "activities";
</script>
<script src="http://opensocial-resources.googlecode.com/svn/samples/tutorial/tags/api-0.6/common.js"></script>
the error is from the SocialNorms.js line 46
/**
* Create a social app on page load.
* Stores the application in the window variable "theApp".
*
* @param {Object} appImpl. See createSocialApp
* @param {String} type See createSocialApp
* @param {String|Array<String>} key See createSocialApp
*/
SocialNorms.createSocialAppOnLoad = function(appImpl, type, keys) {
window['_IG_RegisterOnloadHandler'](function(){
var app = SocialNorms.createSocialApp(appImpl, type, keys);
window['theApp'] = app;
app.start();
});
};
can anyone give me information about this? am I doing it wrong or something?? thanks~