the_oliver Posted March 25, 2007 Share Posted March 25, 2007 Hello, I wish to display the contents of a diffrent website page (https://www2.thedomin.com), within a 'main' site http://www.thedomain.com). I have tried doing this thought an iframe with the following: (include a header) <iframe scr="https://www2.thedomain.com/blaa" width="100%"></iframe> (include a footer) This works but the height of the iframe is always to small. I fould like this to change to fitt its contents. Can anyone tell me how to do this? Perhaps an iframe is the wrong way? Many Thanks! Link to comment https://forums.phpfreaks.com/topic/44223-displaying-pages-inside-others/ Share on other sites More sharing options...
wildteen88 Posted March 25, 2007 Share Posted March 25, 2007 prehaps use a frame set instead Link to comment https://forums.phpfreaks.com/topic/44223-displaying-pages-inside-others/#findComment-214784 Share on other sites More sharing options...
the_oliver Posted March 25, 2007 Author Share Posted March 25, 2007 yer, I thought of that, however it needs to be displaied insite a table row, defined in the header and footer. Is there no way of making it simply expand to fit? Thanks! Link to comment https://forums.phpfreaks.com/topic/44223-displaying-pages-inside-others/#findComment-214788 Share on other sites More sharing options...
ToonMariner Posted March 26, 2007 Share Posted March 26, 2007 you can set the both height and width of an iframe! (include a header) <iframe scr="https://www2.thedomain.com/blaa" width="100%" height="350"></iframe> (include a footer) I think I am correct in stating that the frame width will be relative to YOUR document not the width of the document you are loading... so if "100%" is not wide enough I would suggest either just opening the site in a new window or using a fixed pixel value for your iframe. Link to comment https://forums.phpfreaks.com/topic/44223-displaying-pages-inside-others/#findComment-215250 Share on other sites More sharing options...
fredb Posted March 28, 2007 Share Posted March 28, 2007 If your server supports SSI, you can always use that. <!--#include virtual="/urlpath/to/myfile.htm" --> Put that in the <tr> where you want the file displayed. Just set your height and width in the <tr> tag. Link to comment https://forums.phpfreaks.com/topic/44223-displaying-pages-inside-others/#findComment-217109 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.