BOAW 0 Report post Posted February 19, 2006 How can i make a module where i have a page that displays another site within that page? is it like a embed or frame thing? please help me out. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted February 19, 2006 Html iframe tags. Change the "google.com" to the link of the site you want to display and the size to what you want the iframe to be on your page. I have used percentages here, but you can use different units of measurement, so play with it to get what you want. <iframe id="Frame_Here" src="http://google.com" width="75%" height="75%"></iframe> Sample uploaded HERE . Share this post Link to post Share on other sites
BOAW 0 Report post Posted February 19, 2006 Html iframe tags. Change the "google.com" to the link of the site you want to display and the size to what you want the iframe to be on your page. I have used percentages here, but you can use different units of measurement, so play with it to get what you want. <iframe id="Frame_Here" src="http://google.com" width="75%" height="75%"></iframe> Sample uploaded HERE . Hmm but thats only html. i want to put it into a content or module or w.e and put it into the website instead of linking it. Id have to take that html code n convert it into php. and i did that n took that code, made a new module and when i viewed that module it didnt work, it cudnt find it or something not exactly sure. any more suggestions? Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted February 19, 2006 Did you see the sample link? Click on the link up in my first post, do a view > source and snag the full code for the page. The iframe code, the embedded css and a full html page is there. Position the div with the iframe in your page where you want it displayed and have fun playing with it. The sample link is a real live google page, just change to a web-accessible URL for your preferred page. Change the page name to php if you want, but there is no php there. Either escape from the php portion of your code, or echo the div and iframe html code in a php page should work... Here is a link which shows that the only time the iframe would not be acceptable is if you are validating to xhtml strict doctype. Back it off to xhtml transitional and you should be okay. Unless your Browser won't support iframes? http://www.w3schools.com/tags/tag_iframe.asp Share this post Link to post Share on other sites