Welcome Developers!

in

Welcome!

in

Guidelines question: loading dynamic inline JS/CSS

Last post 03-06-2008 2:24 PM by Causes. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-03-2008 1:55 PM

    • John
    • Top 100 Contributor
    • Joined on 02-27-2008
    • Posts 44

    Guidelines question: loading dynamic inline JS/CSS

    The MySpace application guidelines specify we may not "contain or create SCRIPT tags pointing to external sources", and likewise for CSS.

    May we add inline JS or CSS to the document directly, i.e., within <script> or <style> tags? For example, may I request an XHTML snippet from my host that contains inline CSS or JS and add this to the DOM?

  • 03-03-2008 5:16 PM In reply to

    Re: Guidelines question: loading dynamic inline JS/CSS

    Or, equivalently, will we have direct access to a "cajoler" that can be used at run time to take a random script-as-string and inject it into the document as a cajoled script? 

  • 03-06-2008 2:24 PM In reply to

    Re: Guidelines question: loading dynamic inline JS/CSS

    I notice that the Caja spec on Google's site talks about a caja.eval() method to dynamically cajole code, but no such method appears to be available in the MySpace dev environment.

    Also, the dev environment appears to vary between the MySpace canvas page and the MySpace profile page, which is confusing because I was under the impression that both will be running the same code at launch time.

    Can anyone comment on these items? 

Page 1 of 1 (3 items)