MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

problems with iframe and requestShareApp()

Last post 06-10-2009 7:02 AM by valts. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 06-03-2009 9:41 AM

    • valts
    • Not Ranked
    • Joined on 01-06-2009
    • Posts 10

    problems with iframe and requestShareApp()

     I've got a problem with external iframe and MyOpenSpace.MySpaceContainer.get().requestShareApp() function. 

    It's that when I call it throught jQuery document ready function - it works fine after full reload. But when i try to call same throught button onclick with the same params - myspace returns "Oops! There was a problem fulfilling your request." I can't figure out what can be wrong with this...

     

  • 06-03-2009 11:53 AM In reply to

    Re: problems with iframe and requestShareApp()

    Which library are you using, and have you looked at the IFPC documentation?

  • 06-04-2009 2:17 AM In reply to

    • valts
    • Not Ranked
    • Joined on 01-06-2009
    • Posts 10

    Re: problems with iframe and requestShareApp()

     I downloaded IFPC_externalIframeV004.zip file, copied that ifpc_relay_external001.html to my server and set

    MyOpenSpace.MySpaceContainer.get().registerParam("panelId", "apppanel_134217_canvas");

    MyOpenSpace.MySpaceContainer.get().registerParam("localRelay", "http://www.mydomain.com/path/ifpc_relay_external001.html");

     and also set 

    <script src="http://x.myspacecdn.com/OpenSocial/references/gadgets003.js" mce_src="http://x.myspacecdn.com/OpenSocial/references/gadgets003.js" type="text/javascript"></script>
    <script src="http://x.myspacecdn.com/modules/common/static/js/Apps/ifpc003.js" mce_src="http://x.myspacecdn.com/modules/common/static/js/Apps/ifpc003.js" type="text/javascript"></script>
    <script src="http://x.myspacecdn.com/modules/common/static/js/Apps/json001.js" mce_src="http://x.myspacecdn.com/modules/common/static/js/Apps/json001.js" type="text/javascript"></script>
    <script src="http://x.myspacecdn.com/OpenSocial/IFPC_externalIframe004.js" mce_src="http://x.myspacecdn.com/OpenSocial/IFPC_externalIframe004.js" type="text/javascript"></script>
    As much as I understood from this -http://wiki.developer.myspace.com/index.php?title=IFrame_postTo_Workaround_Demo_Application - it's enought to make API working. Byt when I call 
    MyOpenSpace.MySpaceContainer.get().requestShareApp(keys, myspace_container.newMessage('My App Add TXT!'));
    AS I said - if it's onload - it works fine, but if it's called by interaction (onclick) - it seem's that it tries to open that invite window and after shows that error.
    Am I missing something there? 

     

  • 06-04-2009 10:11 AM In reply to

    Re: problems with iframe and requestShareApp()

    Hey, let me check in with the container folks, and get back to you.

    Rhonda

     

  • 06-05-2009 1:34 AM In reply to

    • valts
    • Not Ranked
    • Joined on 01-06-2009
    • Posts 10

    Re: problems with iframe and requestShareApp()

    Ok. :)
  • 06-09-2009 4:10 AM In reply to

    • valts
    • Not Ranked
    • Joined on 01-06-2009
    • Posts 10

    Re: problems with iframe and requestShareApp()

     Bump

  • 06-09-2009 9:24 AM In reply to

    Re: problems with iframe and requestShareApp()

    There were some changes on the way we return data on request share app. We're working on updating the documentation as we speak.
  • 06-09-2009 12:34 PM In reply to

    Re: problems with iframe and requestShareApp()

    Please use the documentation on this demo app until we can get our wiki up to date:

    http://profile.myspace.com/Modules/Applications/Pages/Canvas.aspx?appId=124833&newinstall=1

    This should fix you up. Let me know if you're still experiencing problems.

    Rhonda

     

     

  • 06-10-2009 7:02 AM In reply to

    • valts
    • Not Ranked
    • Joined on 01-06-2009
    • Posts 10

    Re: problems with iframe and requestShareApp()

     Thanks! :)

Page 1 of 1 (9 items)