Reputation: 21
So what I've got is a page which will show a video with comments (similar to youtube). I dont want to reload the entire page when browsing through comments - and I really dont want to do the "show more" like we see on disquss. I want to break it into pages.
So I could do the video page with an iframe which contains the page of comments and users swap pages through the iframe. However, I'd prefer if the iframe didnt have its own scroll bar and it simply made the parent window change sizes.
I want people to be able to watch the video while browsing comments which is why i dont want the entire page to refresh when they go to a new comments page.
So is it possible to make an iframe which resizes itself based on the document size of the iframe?
Upvotes: 0
Views: 107
Reputation: 299
Why not just use jQuery's $.load() function to load comments into a div? Then you'll have full control over the layout.
Upvotes: 1