Already a member?
Sign in
Welcome! This is a website that everyone can build together. It's easy!
Including HTML Pages |
Version 22 - view current page
Overview
Use community forums, forms, polls, scripted applications, and other webpage gizmos (widgets) in your wetpaint wiki. This is accomplished by using the HTML, <IFRAME> code along with a widget to insert an exterior webpage directly into your wiki. It offers what you might think of as a picture-in-picture type affect on your wiki page. To set this up in your wiki you will need some knowledge of HTML coding basics, and understanding of the IFRAME attributes. If you are unfamiliar with those you can get additional information from such as the WDG information page about IFRAME or by running a search for "HTML codes", or "IFRAME attributes" from any popular search engine site.
This should look like: <iframe Your HTML Code></iframe>
Here Is a Iframe Template You can use instantly
<iframe name="I1" src="http://www.yourwebsitehere.com" width="889" height="359" scrolling="yes">
Just add the URL Of the page and your done.
Tips
Like most HTML codes, the IFRAME has a few quirks that you'll need to keep in mind when using it:- The IFRAME code isn't recognized by all browsers. It is important to include alternative content for those that don't read it.
- Links found on a page inside an IFRAME, will continue to open inside the IFRAME, unless the coding in the exterior page is set to target a new window.
- IFRAMES are not scalable. So be sure to set the width and height attributes.
Steps to take to include an exterior web page in your wiki:
1. Open the Easy Edit window for the wiki page where you wish to include the exterior page.
2. Click on the Widget option.
3. Choose the "Other Widget" app from the list.
4. Type your IFRAME code with the appropriate attributes in the code window.
5. Save your widget and the page changes to see the IFRAME in action.
Three examples:
- Insert a Forum:
http://artshares.wetpaint.com/page/CHW+Monthly+ATC+Swap
(The CHW community forum is shown in this iframe. The forums platform renders at a larger screen size than my IFRAME, so scrolling will be required to see entire pages in the IFRAME.
- Insert a Blog or other website:
http://artshares.wetpaint.com/page/PaintChip+Blog
(The IFRAME has my wordpress blog inside it. This one will extend past many monitors because I used a 800px width for the IFRAME.)
- Insert Scripted graphics or widgets:
http://artshares.wetpaint.com/page/.+PaintChip
(on the bottom of the page, the flickr badge and links to the right are in an iframe. This IFRAME disguised because I used the same background color as the wiki page and no scroll bars.)
I hope these examples will show you how the IFRAME code has many useful purposes as well as the importance of understanding the quirkiness of this code.
Attributes for the IFRAME code tag:
SRC: URL of the document to go in the frame
HEIGHT: height of the inline frame
WIDTH: width of the inline frame
NAME: name of this inline frame
LONGDESC: URL of a long description of the contents of the frame
FRAMEBORDER: if the frame should have a border around it
MARGINWIDTH: internal left/right margin for the frame
MARGINHEIGHT: internal top/bottom margin for the frame
SCROLLING: if the frame should have scroll bars
ALIGN: alignment of the frame object to text around it
VSPACE: space above and below the frame
HSPACE: space to the left and right of the frame
Example IFRAME embed
Code used
<iframe frameborder="0" height="335" src="http://show.zoho.com/embed?USER=sharonbetts&DOC=NECC.odp" width="450"></iframe>
See Also:
