MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

External references to java

Last post 06-05-2009 12:40 PM by nosheen@myspace. 21 replies.
Page 1 of 2 (22 items) 1 2 Next >
Sort Posts: Previous Next
  • 05-21-2009 6:44 PM

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    External references to java

     Hi, I am new to java and myspace apps. I submitted an app that uses a .js file from an external server. my app was denied for this reason. I got the following message and suggestion from the DevTeam. 

     

    "External References. Applications cannot contain external references to Javascripts and/or CSS Stylesheets on the Home and Profile Surfaces. Please remove all such instances (e.g. "<script type="text/javascript" src="http://cdn.widgetserver.com/syndication/subscriber/insertwidget.js"></script>") or consider bringing your code inline."

    any idea how i would bring code inline. Thank you

  • 05-22-2009 12:22 PM In reply to

    Re: External references to java

     Instead of referencing the javascript from and external site, bring the code for the javascript file into your application.

    Follow us on twitter for major updates and announcements:
    twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    myspace.com/myspacedeveloperplatform
  • 05-22-2009 4:06 PM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

    Hi Nosheen, Thats what I did and it was still declined. I wanted to embed my widget from widgetbox. inside that javascript there is a script

    that creates the links for the rss feed. That I dont have access for, it seems like that file is created with the javascript. Any Ideas?

  • 05-22-2009 5:29 PM In reply to

    Re: External references to java

    Developers are held responsible for all content in their applications, as well as for their app code. If you don't have access to a certain section of code, and it is calling external javascripts then I'm afraid in this state your app cannot go through.
    Follow us on twitter for major updates and announcements:
    twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    myspace.com/myspacedeveloperplatform
  • 05-22-2009 6:34 PM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

     Hi NoSheen, I was able to get in a bit deeper. and there was more java. It's a lot of code. theyre definately links. What should I do in this case. Could someone check the widget out? Maybe thats totally out of the question. The content I plan to have in there is exactly what you see there, News/sports results. WidgetBox restrict the same things that myspace does.Thanks again

  • 05-22-2009 11:25 PM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

     Hi Nosheen, Okay I got down to the bottom of the script. the script is a constant loop. it loops until it pulls my 10 most recent rss entries. the .js reference has the same script inside. Is there somewhere I can place it so that it is internal? I know I am so close to getting it to work. Thank you.

  • 05-26-2009 6:53 AM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

    Hi Nosheen, It seems impossible to get them to approve my app. I removed all of the external java and i got the following message. Its seems like that message is automated. the java I had before referenced it self. so I entered a new script. THank you

     

    1. External References. Applications cannot contain external references to Javascripts and/or CSS Stylesheets on the Home and Profile Surfaces. Please remove all such instances (e.g. "<script type="text/javascript">script = document.createelement("script");script.id = "widgetbox_lib_" + libinfo.id;script.type = "text/javascript"; script.src = "http://widgetserver.com/syndication/" + libinfo.path + ".js";script.src = "http://cdn.widgetserver.com/syndication/" + libinfo.path + ".js";head.appendchild(script);</script>") or consider bringing your code inline. 2. User Experience / Functionality: Applications must contain unique content on every application surface (i.e., canvas, home and profile pages must each contain unique content and functionality). 3. Application Description. Please remove the text "Movie Discounts" from your app description as the app does not provide any discounts. 4. Application Formatting. Content is cropped on the Home Surface.

     

  • 05-26-2009 3:16 PM In reply to

    Re: External references to java

     Your code is still trying to reference an external javascript, only now in a sneaky sort of way. It's making calls to scripts on http://widgetserver.com/syndication/

    Follow us on twitter for major updates and announcements:
    twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    myspace.com/myspacedeveloperplatform
  • 05-26-2009 8:53 PM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

     that was my old script what was there the last time I submitted was the following, there is no reference to java:

  • 05-27-2009 2:22 PM In reply to

    Re: External references to java

     What's your app ID?

    Follow us on twitter for major updates and announcements:
    twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    myspace.com/myspacedeveloperplatform
  • 05-27-2009 3:00 PM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

    475639745

  • 05-27-2009 3:05 PM In reply to

    Re: External references to java

     This was on the profile surface:


                    script = document.createElement("script");
                    script.id = "widgetbox_lib_" + libInfo.id;
                    script.type = "text/javascript";
                    if (!useCdn) {
                        script.src = "http://widgetserver.com/syndication/" + libInfo.path + ".js";
                    } else {
                        script.src = "http://cdn.widgetserver.com/syndication/" + libInfo.path + ".js";
                    }
                    head.appendChild(script);

    Follow us on twitter for major updates and announcements:
    twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    myspace.com/myspacedeveloperplatform
  • 05-27-2009 3:19 PM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

     thats funny because what im seeing is the following there:

  • 05-27-2009 5:15 PM In reply to

    Re: External references to java

     It's possible you published your app without savinig changes. Try unpublishing, checking the changes, and saving before publishing again. 

    Follow us on twitter for major updates and announcements:
    twitter.com/MySpaceDevTeam

    Friend the MDP Profile!
    myspace.com/myspacedeveloperplatform
  • 05-27-2009 7:26 PM In reply to

    • Sbeez
    • Top 500 Contributor
    • Joined on 05-19-2009
    • Posts 16

    Re: External references to java

     I re-published this a few days in a row, that's why I asked if it is automated, I'll try again and let you know if its the same outcome. Im thinking something is wrong and this maybe a waste of time. What else could be wrong?

Page 1 of 2 (22 items) 1 2 Next >