Jul 20, 2008

Module Help

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Module Help

BOAW
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.

Reply

jlhaslip
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.

CODE

<iframe id="Frame_Here" src="http://google.com" width="75%" height="75%"></iframe>


Sample uploaded HERE .

Reply

BOAW
QUOTE(jlhaslip @ Feb 19 2006, 04:56 PM) *

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.

CODE

<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?

 

 

 


Reply

jlhaslip
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

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : module


    Looking for module

Searching Video's for module
advertisement



Module Help



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE