[cc-devel] same origin policy workaround?
Mike Linksvayer
ml at creativecommons.org
Thu May 17 13:19:03 EDT 2007
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
More information about the cc-devel
mailing list