MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Calls to external PHP code

Last post 03-28-2008 1:37 PM by Jeremy. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-28-2008 5:34 AM

    Calls to external PHP code

    Hi

    I have just received notification that a number of my applications have been rejected for publication because they "do not meet criteria". The reason given was

    Reasons: Please remove all instances of external references to javascript like done here.: <SCRIPT language=JavaScript src="http://www.hitsalive.com/french_wotd/wotd_png.php"></SCRIPT> from your home and profile page previews of the application. Review your application and make all references inline.

    First I can not see anywhere in the Terms Of Service or in the Application Guidelines where it says that build a gadget in this way is forbidden.

    Secondly I have had these exact gadgets running on iGoogle for over 18 months and never had a problem.

    I need to call in my PNG images this way for obfuscation reasons and also I need to do this to use an implementation of FlashPlayer to play MP3 audio. Unlike the Facebook API there is no local audio or MP3 component that be used, is there?

    Any assistance or advice would appreciated. 

    Thanks

    --
    Petar
    Declan Software Language Learning Software
    http://www.declan-software.com

    Filed under: , ,
  • 03-28-2008 7:46 AM In reply to

    Re: Calls to external PHP code

    First, from the Application Guidelines:

    In addition, any portion of your MySpace Applications and MySpace Application Content [..] must not [...] contain or create SCRIPT tags pointing to external sources except those that are explicitly allowed;

    Second, the MDP isn't an extension of iGoogle - it's a seperate and distinct platform.

    As far as your PNG images, I'm not quite sure what your obfuscating, but you can always use a PHP script as the 'src' of any image you incorporate. Again, I'm not sure how helpful that would be to your situation, but I can't imagine why it wouldn't be.

    And why does your MP3 player require an external PHP file? There are dozens of opensource and example SWF-based MP3 players that require nothing more than HTML to implement in your App. A search on any of the major Flash dev sites will find them for you.

  • 03-28-2008 1:01 PM In reply to

    Re: Calls to external PHP code

    OK. Thanks for clarifying.

    As you recommneded, I have found a SWF player. However it requires the <object> and <param> tags which your framework doesn't seem to allow either....

  • 03-28-2008 1:37 PM In reply to

    Re: Calls to external PHP code

    Not my platform, but you should be able to use <object> tags as long as are you're only calling up an XmlHttp, Flash, or Windows Media Player plug-in (or soon-to-be supported Silverlight 1.0), Caja will probably throw an unsafe tag error, but you can ignore that. The Caja test is, I believe, only used as a preliminary test to see which things need to be checked more carefully.

    Or is something happening when you try to save the HTML/JS with the tags in place? I just ran a test and it works over here, but that doesn't mean there's not a bug somewhere.

Page 1 of 1 (4 items)