Welcome to Working With Rails

 

Discussion Forums

Discuss all things Ruby on Rails with perhaps the web's most vibrant group of Ruby on Rails enthusiasts.
Any alternatives to iframes to display page inside a page?
3 Posts
Any alternatives to iframes to display page inside a page?

Hello,

I am building an admin interface where users can adjust the header/footer, content, etc... for their website. I want to display their site as they make changes. When displaying it I need to display it at like 50% normal size. I thought about using an IFRAME with the zoom style to shrink the page but there are browser compatibility issues with zoom and thought there had to be a better way. Any suggestions would be welcomed.

Thanks, Brian

Hi Brian,

I think you can use render partial method instead of IFRAME http://api.rubyonrails.org/classes/ActionView/Partials.html

good luck =)

Person
goz
Sign In To Rate Post

You'll want to look at the "object" tag, with the data attribute set to your embedded page, because iframe is deprecated anyway. As for the sizing/zooming issue... you'll just have to try it. I haven't had to do anything like that, so I'd hesitate to make a guess at how that will work.

3 Posts
Login to add your message