WidgetSandBox

Some Widgets work only when the page is saved. The collapsible embedded page example throws an error when previewing the page, which you need to cancel. For more advanced features see Getting Tricky with Wikis

toc
 * It seems that embedded widgets are specific to the page they are created on, so you can not try one here and copy the media tag of type custom to another page.**

Opening a Link in a New Window
Use **Embed Widget => Other HTML** and paste the following source into the text field. Use the Preview to see if it works correctly. code format="javascript" Just BASIC FAQ Page code media type="custom" key="4286053"

Change ``"http://justbasic.wikispaces.com/Just+BASIC+FAQ"`` to your desired url Change **Just BASIC FAQ Page** to your desired displayed name (text)

Collapsible division
Use **Embed Widget => Other HTML** and paste the following source into the text field. Use the Preview to see if it works correctly.

code format="javascript"  function JBtoggle(ItemID) { if( document.getElementById(ItemID).style.display=='none' ) { document.getElementById(ItemID).style.display = 'block'; }else{ document.getElementById(ItemID).style.display = 'none'; } } Click Me! Line One Line Two Line Three Line Four code


 * Life Example:**

media type="custom" key="4286049"

Collapsible Embedded Page
Use the include feature to include the following pages.

//reuse this page, no need to create your own// code format="javascript"  function JBtoggle(ItemID) { if( document.getElementById(ItemID).style.display=='none' ) { document.getElementById(ItemID).style.display = 'block'; }else{ document.getElementById(ItemID).style.display = 'none'; } } code
 * HTML_collaps_page_function** (must be placed at the beginning of the page, only include once per page)

//must be created for each collapsible section// code format="javascript"  document.write(' Show/Hide Embedded Page ') document.write(' ') code
 * HTML_div_TempHelpVista**

//reuse this page, no need to create one of your own// code format="javascript"  document.write(' ') code
 * HTML_div_close**

//this is how you include a collapsible page// code include page="HTML_collaps_page_function" include page="HTML_div_TempHelpVista" include page="Temp_Help_for_Vista" include page="HTML_div_close" code
 * Page Content**

//Multiple collapsible sections would look like this:// code include page="HTML_collaps_page_function" Some text here. include page="HTML_div_TempHelpVista" include page="Temp_Help_for_Vista" include page="HTML_div_close" Some other text here. include page="HTML_div_JustBASICFAQ" include page="Just BASIC FAQ" include page="HTML_div_close" code

include page="HTML_collaps_page_function" include page="HTML_div_TempHelpVista" include page="Temp_Help_for_Vista" include page="HTML_div_close"
 * Live Example**