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: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] 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 g...@greglow.com mailto:g...@greglow.com 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: ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com ] 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 g...@greglow.com mailto:g...@greglow.com 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
Re: Scaling HTML
An iframe on it's own wouldn't do it. But I think there is a zoom property in the DOM somewhere. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama On 12 July 2013 15:13, Tony Wright tonyw...@gmail.com wrote: Hi Greg, Have you considered using an IFRAME? It would compartmentalise the markup. Regards, Tony
RE: Scaling HTML
Probably should give a succinct example of the type of thing I'm trying to do to see if there's a better way. Here's one example: 1. I have a report server that can send me the HTML for a report. 2. I have no control over the size of the report that's sent to me. 3. I want to display the report within a section of an MVC4 page that I have set to a specific width. 4. I'd love to be able to scale the HTML that I'm sent to make it fit within a specific region of the page, or at the very least within a specific width. (I could probably live with it being too deep). 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: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Richards Sent: Friday, 12 July 2013 4:02 PM To: ozDotNet Subject: Re: Scaling HTML An iframe on it's own wouldn't do it. But I think there is a zoom property in the DOM somewhere. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama On 12 July 2013 15:13, Tony Wright tonyw...@gmail.com mailto:tonyw...@gmail.com wrote: Hi Greg, Have you considered using an IFRAME? It would compartmentalise the markup. Regards, Tony
Re: Scaling HTML
Let me google that for you ;) http://dev.hubspot.com/blog/bid/89755/jQuery-Zoomer-Zoom-up-your-iFrames I think that's close to what you want. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama On 12 July 2013 16:33, GregAtGregLowDotCom g...@greglow.com wrote: Probably should give a succinct example of the type of thing I’m trying to do to see if there’s a better way. ** ** Here’s one example: ** ** **1. **I have a report server that can send me the HTML for a report. **2. **I have no control over the size of the report that’s sent to me. **3. **I want to display the report within a section of an MVC4 page that I have set to a specific width. **4. **I’d love to be able to scale the HTML that I’m sent to make it fit within a specific region of the page, or at the very least within a specific width. (I could probably live with it being too deep). ** ** Regards, ** ** Greg ** ** Dr Greg Low ** ** 1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax SQL Down Under | Web: www.sqldownunder.com ** ** *From:* ozdotnet-boun...@ozdotnet.com [mailto: ozdotnet-boun...@ozdotnet.com] *On Behalf Of *David Richards *Sent:* Friday, 12 July 2013 4:02 PM *To:* ozDotNet *Subject:* Re: Scaling HTML ** ** An iframe on it's own wouldn't do it. But I think there is a zoom property in the DOM somewhere. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama ** ** On 12 July 2013 15:13, Tony Wright tonyw...@gmail.com wrote: Hi Greg, ** ** Have you considered using an IFRAME? It would compartmentalise the markup. ** ** Regards, Tony ** ** ** **
FW: Scaling HTML
Thanks David :) I’ll give it a go. I did spend quite a while looking for this. I bow to your superior Googling skills :) Is there a word for that? (You have no idea how much rubbish I’ve read this afternoon while trying to find it. Most of the forums are seriously depressing). 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: ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of David Richards Sent: Friday, 12 July 2013 4:58 PM To: ozDotNet Subject: Re: Scaling HTML Let me google that for you ;) http://dev.hubspot.com/blog/bid/89755/jQuery-Zoomer-Zoom-up-your-iFrames I think that's close to what you want. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama On 12 July 2013 16:33, GregAtGregLowDotCom g...@greglow.com mailto:g...@greglow.com wrote: Probably should give a succinct example of the type of thing I’m trying to do to see if there’s a better way. Here’s one example: 1. I have a report server that can send me the HTML for a report. 2. I have no control over the size of the report that’s sent to me. 3. I want to display the report within a section of an MVC4 page that I have set to a specific width. 4. I’d love to be able to scale the HTML that I’m sent to make it fit within a specific region of the page, or at the very least within a specific width. (I could probably live with it being too deep). 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: ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com ] On Behalf Of David Richards Sent: Friday, 12 July 2013 4:02 PM To: ozDotNet Subject: Re: Scaling HTML An iframe on it's own wouldn't do it. But I think there is a zoom property in the DOM somewhere. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama On 12 July 2013 15:13, Tony Wright tonyw...@gmail.com mailto:tonyw...@gmail.com wrote: Hi Greg, Have you considered using an IFRAME? It would compartmentalise the markup. Regards, Tony
Re: FW: Scaling HTML
Its called Google-fu On Jul 12, 2013 3:48 PM, GregAtGregLowDotCom g...@greglow.com wrote: Thanks David J I’ll give it a go. ** ** I did spend quite a while looking for this. I bow to your superior Googling skills J Is there a word for that? (You have no idea how much rubbish I’ve read this afternoon while trying to find it. Most of the forums are seriously depressing). ** ** Regards, ** ** Greg ** ** Dr Greg Low ** ** 1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913fax SQL Down Under | Web: www.sqldownunder.com ** ** *From:* ozdotnet-boun...@ozdotnet.com [ mailto:ozdotnet-boun...@ozdotnet.com ozdotnet-boun...@ozdotnet.com] *On Behalf Of *David Richards *Sent:* Friday, 12 July 2013 4:58 PM *To:* ozDotNet *Subject:* Re: Scaling HTML ** ** Let me google that for you ;) ** ** http://dev.hubspot.com/blog/bid/89755/jQuery-Zoomer-Zoom-up-your-iFrames** ** ** ** I think that's close to what you want. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama ** ** On 12 July 2013 16:33, GregAtGregLowDotCom g...@greglow.com wrote: Probably should give a succinct example of the type of thing I’m trying to do to see if there’s a better way. Here’s one example: 1. I have a report server that can send me the HTML for a report.*** * 2. I have no control over the size of the report that’s sent to me.* *** 3. I want to display the report within a section of an MVC4 page that I have set to a specific width. 4. I’d love to be able to scale the HTML that I’m sent to make it fit within a specific region of the page, or at the very least within a specific width. (I could probably live with it being too deep). Regards, Greg Dr Greg Low 1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913fax SQL Down Under | Web: www.sqldownunder.com *From:* ozdotnet-boun...@ozdotnet.com [mailto: ozdotnet-boun...@ozdotnet.com] *On Behalf Of *David Richards *Sent:* Friday, 12 July 2013 4:02 PM *To:* ozDotNet *Subject:* Re: Scaling HTML An iframe on it's own wouldn't do it. But I think there is a zoom property in the DOM somewhere. David If we can hit that bullseye, the rest of the dominoes will fall like a house of cards... checkmate! -Zapp Brannigan, Futurama On 12 July 2013 15:13, Tony Wright tonyw...@gmail.com wrote: Hi Greg, Have you considered using an IFRAME? It would compartmentalise the markup. Regards, Tony ** **
RE: Scaling HTML
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: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] 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: ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] 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 g...@greglow.com mailto:g...@greglow.com 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: ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com ] 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 g...@greglow.com mailto:g...@greglow.com 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
RE: Scaling HTML
Hi Greg, Is this an example of the kind of scaling HTML that you're looking for? http://www.getgroundedfootwear.com/ Cheers. James. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of GregAtGregLowDotCom Sent: Friday, 12 July 2013 13:33 To: ozDotNet Subject: Scaling HTML 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 mobile│ +61 3 8676 4913 fax Web: www.sqldownunder.comhttp://www.sqldownunder.com/
RE: Scaling HTML
Hi James, Sort of. I think the one that David led me to looks mighty good though: http://github.hubspot.com/jquery-zoomer/ http://github.hubspot.com/jquery-zoomer/ Will try it this weekend. 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: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of James Chapman-Smith Sent: Friday, 12 July 2013 11:37 PM To: ozDotNet Subject: RE: Scaling HTML Hi Greg, Is this an example of the kind of scaling HTML that you're looking for? http://www.getgroundedfootwear.com/ Cheers. James. From: ozdotnet-boun...@ozdotnet.com mailto:ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of GregAtGregLowDotCom Sent: Friday, 12 July 2013 13:33 To: ozDotNet Subject: Scaling HTML 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 mobile│ +61 3 8676 4913 fax Web: http://www.sqldownunder.com/ www.sqldownunder.com
Scaling HTML
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 mobile│ +61 3 8676 4913 fax Web: http://www.sqldownunder.com/ www.sqldownunder.com
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 g...@greglow.comwrote: 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 mobile│ +61 3 8676 4913fax Web: www.sqldownunder.com * * ** **
RE: Scaling HTML
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 mobile│ +61 3 8676 4913 fax SQL Down Under | Web: http://www.sqldownunder.com/ www.sqldownunder.com From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] 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 g...@greglow.com mailto:g...@greglow.com 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
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 g...@greglow.comwrote: 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 mobile│ +61 3 8676 4913fax SQL Down Under | Web: www.sqldownunder.com ** ** *From:* ozdotnet-boun...@ozdotnet.com [mailto: ozdotnet-boun...@ozdotnet.com] *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 g...@greglow.com 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 mobile│ +61 3 8676 4913fax Web: www.sqldownunder.com * * ** **