views:

410

answers:

1

I've got a Facebook iFrame application happily up and running, but I'm realizing that I don't have a way to handle the scroll position of the parent frame because of cross-domain issues. If a user clicks too far down on the page, I can't pop them back up to the top.

Has anyone had an luck with either any of the Facebook JS libraries or other JavaScript trickery to pull this off?

Thanks!

+1  A: 

The old library had some functions that worked, but they haven't been ported over to the new Javascript SDK library yet as of mid-June.

Added 10/12: Try using location.href("#top") to position the page as necessary. A little clunky, but better than nothing. You can position it anywhere you can put an ID or reference.

LocalPCGuy
It's true, the old library had some functions for doing some of this (though not for what I'd mentioned here, unfortunately), but it seems like they're not quite functional in the new library yet -- caused some very strange issues when last I tried. Thanks much just the same!
DoryEx