This shows you the differences between two versions of the page.
|
glfusion:widgets [2010/03/15 13:57] Geiss |
glfusion:widgets [2010/04/05 16:35] (current) Geiss updated docs for wrapper widget |
||
|---|---|---|---|
| Line 670: | Line 670: | ||
| </code> | </code> | ||
| - | and then create a new static page with the following: | + | Next, add the following code to your public_html/javascript/common.js file: |
| + | |||
| + | <code> | ||
| + | //widget wrapper iframe buster (load links to parent site in parent window) | ||
| + | if (top.location != location) { | ||
| + | top.location.href = document.location.href; } | ||
| + | </code> | ||
| + | |||
| + | <note> The above code snippets are already included with fresh installs of glFusion v1.1.9 and higher.</note> | ||
| + | |||
| + | Now create a new static page with the following: | ||
| <code php> | <code php> | ||
| Line 694: | Line 704: | ||
| <iframe | <iframe | ||
| - | src="http://geiss.getmyip.com/joomla15" | + | src="http://my-other-website-here" |
| id="myframe" | id="myframe" | ||
| scrolling="no" | scrolling="no" | ||