MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Dynamic url for content type Options

Last post 06-03-2008 9:47 AM by Siva. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 06-03-2008 9:47 AM

    • Siva
    • Not Ranked
    • Joined on 05-23-2008
    • Posts 1

    Dynamic url for content type Options

     Hi,
    Is it possible to send dynamic url for content type href value?

    Example  :-

    <script>
    var server_url="";

    function init() {
        //Set the owner id so we don't have to use it later
        var personId = opensocial.DataRequest.PersonId.OWNER;
        server_url="http://www.example.com/opensocial/osMain.jsp?personId="+personId
    }
    init();
    </script>

    <Content type="url" href="{server_url}">

    Please guide me how to pass dynamic URL in content type.

    Thanks,
    Siva

Page 1 of 1 (1 items)