MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

URGENT: PostTo from my .net aspx page?

Last post 10-15-2008 12:04 PM by rondata@myspace. 63 replies.
Page 1 of 5 (64 items) 1 2 3 4 5 Next >
Sort Posts: Previous Next
  • 07-09-2008 11:30 AM In reply to

    • Mark
    • Top 50 Contributor
    • Joined on 02-05-2008
    • Posts 72

    postTo callback error within external iframe app

    I've been experimenting using the postTo command with my iframe application and it works great unless I specify a callback function.   If a callback is set then after the comment is posted I get the javascript error: "Permission denied to get property Window.gadgets".

    Has anybody else seen this or know how to get around it?  It seems like it may be a fairly recent bug.  Some of the iframe based apps that I have played with in the past use to support an invite process where you could send a comment to several selected friends in a row.  Now these apps die after the first comment is sent, presumably because the callback is erroring on them. 

  • 07-14-2008 1:42 AM

    • Alen
    • Top 500 Contributor
    • Joined on 06-15-2008
    • Posts 12

    URGENT: PostTo from my .net aspx page?

    I have a aspx page that is integral part of application. There is where the stuff from database comes and  creates some graphics effects that need tobe posted tome or my friends. Till now, I had no luck in using postTo from anywhere else rather than the code I type into "Edit App Source" window. Any ideas?

     

    Thanks...

  • 07-14-2008 2:20 AM In reply to

    Re: URGENT: PostTo from my .net aspx page?

    Same here...

     

  • 07-15-2008 5:21 AM In reply to

    • Alen
    • Top 500 Contributor
    • Joined on 06-15-2008
    • Posts 12

    Re: URGENT: PostTo from my .net aspx page?

     Knowing how things go around here, we're not likely to get an answer. Anyway I find out how to do it I'll let you know and you can do the same. 

  • 07-15-2008 7:50 AM In reply to

    Re: URGENT: PostTo from my .net aspx page?

    Howdy 

    Sorry about the delay.  I'm sending this to someone right now and hopefully we can get some answers for ya.

    Rhonda

    Follow us on Twitter:
    http://www.twitter.com/MySpaceDevTeam
  • 07-15-2008 7:54 AM In reply to

    Re: URGENT: PostTo from my .net aspx page?

    One of the reasons that this post was not caught because it's obviously posted in the wrong place :)  An issue like this should have been posted in bugs and not libraries.


    Thanks

     

    Follow us on Twitter:
    http://www.twitter.com/MySpaceDevTeam
  • 07-15-2008 8:21 AM In reply to

    • Bling
    • Not Ranked
    • Joined on 06-03-2008
    • Posts 5

    Re: URGENT: PostTo from my .net aspx page?

     Im hoping we can get this figured out, Im sure there alot of people who wanna know this answer besides me and these two guys :)

  • 07-15-2008 10:23 AM In reply to

    Re: URGENT: PostTo from my .net aspx page?

    Support for PostTo from an external IFrame app is in final testing and should be released shortly (next couple of weeks - watch the blogs).  Some people have cobbled together unsupported packages, but the official one will be more stable, support callbacks, etc. 

    For the curious, the solution involves hosting an IFPC relay on your server and remapping the relay handlers so communication works on both ends (MsAppSpace and your server), but this involves figuring out more about IFPC than any sane person would want to know.  The IFrame Developer Package will simplify things and include some example code.

    I don't know what your release schedule is, but be assured that we will support PostTo with IFrame apps.  As a short term workaround (while under development - can't publish like this) you could set up your app to be MySpace hosted with an IFrame hosting your real app and the parent frame functioning like a relay for PostTo.  If you're not chomping at the bit, tho, I'd wait for the IFrame developer package.

    Filed under: ,
  • 07-15-2008 10:23 AM In reply to

    • Bling
    • Not Ranked
    • Joined on 06-03-2008
    • Posts 5

    Re: URGENT: PostTo from my .net aspx page?

     Thanks a lot Rhonda, you don't know how much it means to us seeing that somebody is here and listening ;)

     So basically what we miss is the explanation of one of the most important MySpace functions: PostTo. 

     There is an example that just shows how that works id we develop aps in JS on the "edit source" page.

    http://developer.myspace.com/Community/blogs/mdpjavascriptcontainer/archive/2008/04/10/introducing-post-to.aspx

     Unfortunatelly, we have to use postto from the other aspx page on our server that is also a part of MySpace application.Our application is not an external iframe application. It is a basic JS based app, with few pages from our server where the real action happens. So we need a bridge from that page to MySpace API to use PostTo to send some stuff to users' profiles.

     I checked every possible thing I found on MS but I had no luck in finding any info about PostTo apart from the link I posted above. If it's not possible to use PostTo in the way we need it or with the external iframe approach, then at least it should be clearly mentioned. 

    Thanks again!!

     

     

     

     

     

  • 07-15-2008 10:28 AM In reply to

    • Bling
    • Not Ranked
    • Joined on 06-03-2008
    • Posts 5

    Re: URGENT: PostTo from my .net aspx page?

     What about if the app is not external iframe app? We have few one "master" page done inside the MS IDE which sends data and calls other pages where the logic sits. Can those pages have any access to MS API, including PosTo function?

  • 07-15-2008 10:33 AM In reply to

    Re: URGENT: PostTo from my .net aspx page?

    Bling:
     Unfortunatelly, we have to use postto from the other aspx page on our server that is also a part of MySpace application.Our application is not an external iframe application.
     

    Well, you have a different problem then.  You may need to rethink your app's flow to get things to work.  One solution would be to move to a more dynamic front-end architecture and move off the ASPX PostBack model.  If you change your app to move data with XHR (aka Ajax) and just rewrite the DOM on the page then all the opensocial.* methods will still be available. Check out the new MVC stuff from Microsoft.  It's far better suited to this (AJAX) than standard server forms.  Definitely stay away from the Atlas (MS AJAX) stuff.  It's garbage and with how things smell my money is on MS dropping this stuff anyway (or at least not continuing further development).  On the canvas surface you can use any of these options for server communication:

    • makeRequest
    • JSON-P
    • form posting 

    At then end of the day, tho, your pages are functioning like an external IFrame app - there's just a jumping off point that is MySpace hosted.  The IFrame Developer Package will still solve your problem if you choose not to Ajax-ify your app.

  • 07-15-2008 10:49 AM In reply to

    • Bling
    • Not Ranked
    • Joined on 06-03-2008
    • Posts 5

    Re: URGENT: PostTo from my .net aspx page?

     Thanks for the tips. The thing is our app is already done as a stansalone page/app. What we were trying to achieve was not pulling our existing pages in the MS page with some AJAX methods. We were looking how to bridge it the other way around, to place the code on our pages that would be able to talk to OS API. After all these tests, external iframe approach seems to be optimal for what we need. To just have the app sit on our server as the normal app, with some extra MySpace features that would talk to OS.

     Are  there any preliminary posts on these new things you're about to release?

     

     

  • 07-17-2008 1:07 PM In reply to

    • Gordon
    • Not Ranked
    • Joined on 07-13-2008
    • Posts 2

    Re: URGENT: PostTo from my .net aspx page?

    I don't know what your release schedule is, but be assured that we will support PostTo with IFrame apps.  As a short term workaround (while under development - can't publish like this) you could set up your app to be MySpace hosted with an IFrame hosting your real app and the parent frame functioning like a relay for PostTo.  If you're not chomping at the bit, tho, I'd wait for the IFrame developer package.

    Is this workaround possible? If the parent frame is on myspace.com and the child IFrame is on our own server, won't the cross domain scripting rules prevent this?

  • 07-28-2008 12:12 PM In reply to

    Re: URGENT: PostTo from my .net aspx page?

     Bump bump, I really need callbacks on an external postTo call. I'm using _IFPC.call but I can't figure out for the life of me how to get a call back. Any information on where to start setting up a local IFPC relay, or a link to any documentation on the matter would be greatly appreciated. Alternatively is there a due date for the release of official support? 

     

    Cheers

  • 08-12-2008 11:41 PM In reply to

    • sameer
    • Not Ranked
    • Joined on 06-23-2008
    • Posts 5

    Re: postTo callback error within external iframe app

     If you don't mind me asking - how did you get the postTo to work in an external iframe?

     

     I'm having a bunch of trouble - i'm using IFPC.call() but it worked the first couple of times showing the post to dialog, but then it started showing 'Oops ... an error occurred'. Is there some sample code etc. of how to do this?

     

     

Page 1 of 5 (64 items) 1 2 3 4 5 Next >