Including HTML Pages |

Version 4 - view current page

Use community forums, forms, polls, scripted applications, and other webpage gizmos 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 IFrames or by running a search for "HTML codes", or "IFRAME attributes" from any popular search engine site.

Including HTML pages - Wetpaint CentralLike 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.

Including HTML pages - Wetpaint CentralSteps 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.

************************

Including HTML pages - Wetpaint CentralThree examples:



  • 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 disquised 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 importants 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