0

Yahoo social app javascript

Hello,

I am doing some RnD on running embedded swf app on yahoo social app. I am running it in a canvas view. Now I need to open the content in a new window when someone click on the links in the swf file. To do this I need to have a javascript method in the html file where the swf is embedded. In the swf i call the externalINterface and call the javascript method which in turn opens a new window. For the yahoo social app i put the java script function in the html.

function openWin(url){

window.open(unescape(url),"courseContentWin","");

}

NOw because yahoo uses caja which "cajoles" the javascript and html swf is not able to find that method.

Can someone suggest how shall I call/put javascript to handle this ??

Many Thanks
Vinay

by
1 Reply
  • You will have issues opening up another window under the current platform (security concerns). What you may want to do is capture content via an ajax request and load it directly within the application itself. You can do this with the OpenSocial gadgets.io.makeRequest method. Alternately, to mimic the behavior of an opening window, you can have a floating div on top of your content which loads the content from the makeRequest ajax call. This will appear as though the content is a new window but will still maintain the security of the app.

    - Jon
    0
This forum is locked.

Recent Posts

in Y!OS General Discussion