As far as being on the way out, well, in HTML5 they added a whole lot of new attributes. They certainly didn’t deprecate it. Will it be consistent? Don’t know. Probably not.
But I actually can’t think of any other cleanish way you can do it, and I think this is the actual purpose of the iframe and why it isn’t and won’t be obsolete. If it’s got absolute positioning, you’re right, it generally won’t scale. However, these guys did a fair bit of work to get it scaling on various browsers, and would be what I would try: http://stackoverflow.com/questions/166160/how-can-i-scale-the-content-of-an-iframe/2224816#2224816 From: [email protected] [mailto:[email protected]] On Behalf Of GregAtGregLowDotCom Sent: Friday, 12 July 2013 4:00 PM To: ozDotNet Subject: RE: Scaling HTML Hi Tony, Yep, that was top of my list. I had this recollection though that if you had items with hard-coded positional info, that it wouldn’t work for scaling. Do you know if it does? I’ve also heard a lot of folk over the years saying that iframes are on the way out, and that the latest standards & browsers are very inconsistent in their handling of them. I’m wondering how true that is. Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax SQL Down Under | Web: <http://www.sqldownunder.com/> www.sqldownunder.com From: [email protected] <mailto:[email protected]> [mailto:[email protected]] On Behalf Of Tony Wright Sent: Friday, 12 July 2013 3:14 PM To: ozDotNet Subject: Re: Scaling HTML Hi Greg, Have you considered using an IFRAME? It would compartmentalise the markup. Regards, Tony On Fri, Jul 12, 2013 at 2:09 PM, GregAtGregLowDotCom <[email protected] <mailto:[email protected]> > wrote: Hi Craig, One example would be an HTML report that normally opens as a web page. I have no control over the contents of the HTML but I’d like the have it appear within a region of my own page where I control the size. It could well contain fixed sizes, tables, etc. that I cannot control. I suppose I’d like to achieve what my iPad does. If I hit a wider site using it, by default it just scales it to fit its own size. I’d like to do that within a region of my own page. Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 <tel:%2B61%20419201410> mobile│ +61 3 8676 4913 <tel:%2B61%203%208676%204913> fax SQL Down Under | Web: <http://www.sqldownunder.com/> www.sqldownunder.com From: [email protected] <mailto:[email protected]> [mailto:[email protected] <mailto:[email protected]> ] On Behalf Of Craig van Nieuwkerk Sent: Friday, 12 July 2013 2:05 PM To: ozDotNet Subject: Re: Scaling HTML What does auto-scale it mean? Does it have fixed widths coded into the html that you wish to change somehow based on page size? On Fri, Jul 12, 2013 at 2:02 PM, GregAtGregLowDotCom <[email protected] <mailto:[email protected]> > wrote: If I have a server that sends me a bunch of HTML (ie a web page) and I want to insert it within my MVC4 page, but I want to auto-scale it to a particular size, any suggestions about how I’d best go about that? Regards, Greg Dr Greg Low CEO and Principal Mentor SQL Down Under SQL Server MVP and Microsoft Regional Director 1300SQLSQL (1300 775 775) office | +61 419201410 <tel:%2B61%20419201410> mobile│ +61 3 8676 4913 <tel:%2B61%203%208676%204913> fax Web: <http://www.sqldownunder.com/> www.sqldownunder.com
