facebook - Scroll page from within cross domain iframe -
situation: have page iframe, contains form. iframe longer screen page , user has scroll down submit it. loads contents of iframe, it'll scrolled same amount before submitting page. want @ top of page. since user scrolled facebook page , not iframe, cannot use scrollto (not allowed cross domain iframes).
question: possible submit form facebook reload entire page , still gives me access form data?
not sure if you're asking, if it's iframe app can use fb.canvas.scrollto control main facebook page position. can either call selectively or can put code in <head>
section of every page:
<script src="http://connect.facebook.net/en_us/all.js"></script> <script type='text/javascript'> window.onload=function() { fb.canvas.scrollto(0,0); } </script>
that way every time load new page in iframe, main page return top.
Comments
Post a Comment