Skip to Content.
Sympa Menu

cc-devel - Re: [cc-devel] same origin policy workaround?

cc-devel AT lists.ibiblio.org

Subject: Developer discussion for Creative Commons technology and tools

List archive

Chronological Thread  
  • From: Mike Linksvayer <ml AT creativecommons.org>
  • To: Michael Aram <michael.aram AT wu-wien.ac.at>
  • Cc: cc-devel AT lists.ibiblio.org
  • Subject: Re: [cc-devel] same origin policy workaround?
  • Date: Thu, 17 May 2007 10:19:03 -0700

On Thu, 2007-05-17 at 19:14 +0200, Michael Aram wrote:
> hello guys!
>
> I want to integrate the default CC chooser into an ajax app. thus, I
> use an iframe to embed it into a DIV container. I tried to use the
> exit_url parameter to call a javascript function on my page by it to
>
> exit_url=javascript:parent.function('foo');
>
> unfortunately, the same origin policy prevents the funtion from being
> executed. how can I pass the results of the "choosing process" to the
> parent frame, i.e. my site? I dont want the page to be refreshed,
> because its an ajax app...

Try making the exit URL one on your site that does nothing but call the
js function.


--
http://wiki.creativecommons.org/User:Mike_Linksvayer





Archive powered by MHonArc 2.6.24.

Top of Page