Hi Krishna,

   For security purposes, gadgets are designed to run in different
domains than the container, which means that your browser will not
allow javascript calls between the two iframes.  Your best bet is to
generate your serverside code in PHP and then use
gadgets.io.makeRequest to pull the output down and output it into your
application.

Hope this helps,
~Arne


On Jun 23, 6:16 am, krishna chaitanya <[EMAIL PROTECTED]>
wrote:
> Hi
>
> Issue:
> ====
> Not able to execute a javascript method from serverside code.
>
> window.parent.executeMethod()
>
> or
>
> top.executeMethod()
>
> in the server side code is returning permission denied error.
>
> Requirement
> ==========
> In a open social application I can fetch all the friends of the owner.
> Now my server will randomly decide a friend. Now I want to display
> that random friend image in the page.
> [Please refer tohttp://developer.apple.com/internet/webcontent/iframe.html
>
> for remote scripting strategy.]
>
> I am calling the serverside php in an iframe. So I won't have access
> to the iframe innerHTML.
> This is why I am trying to call a method in client javascript code
> from the server side. This is giving permission denied error.
>
> Any workarounds for this issue.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to