List Info

Thread: same origin policy workaround?




same origin policy workaround?
user name
2007-05-17 12:14:03
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...

and I dont want to use  the REST api, cause I'm too lazy

thanks for your help!


Re: same origin policy workaround?
country flaguser name
United States
2007-05-17 12:19:03
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

_______________________________________________
cc-devel mailing list
cc-devellists.ibiblio.org
ht
tp://lists.ibiblio.org/mailman/listinfo/cc-devel

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )