External Link-to WindowlinkToWindow -- Specifies the window to use to open all external links. DescriptionThis option can be used to direct hyperlinks out of the player to a targeted window. This option is set to "_blank" by default. When this option is changed, Wimpy directs the 'target"for the link to the defined window name. You can also use this option to direct the data contained in the <link> tag of your XML playlist to Javascript. See the "Redirecting link to Javascript" section below. Hyperlinks out of the player include:
UsageAs HTML option: wimpy.swf?linkToWindow=_self As Wimpy Configs Option: <linkToWindow>whatever</linkToWindow> As Javascript Option: wimpyConfigs.linkToWindow="mainWindow";
NOTE: Internet Explorer only recognizes lowercase characters when using "standard" window naming conventions such as _blank, _parent, _self and _top.
NOTE: If Wimpy is being opened in a popup window and you want to reference the page (or window instance) that opened Wimpy, you will need to explicitly set the main-page's "window name" using javascript. Since the only way to reference the main-page (or window instance) that opened the pop up is to give it a name that you can call using standard HTML. Some folks may be familiar with the javascript "window.opener" feature, but since our "linkToWindow" option only allows for a standard A HREF TARGET="whatever" and does not use Javascript to call or target a window, we need to pre-define the main-pages's window name so that Wimpy can reference the window name using out "linkToWindow" option.
Here is some Javascript code that you can use to explicitly set the window name. Put this code in the "head" of the page that is pops up Wimpy, then set our "linkToWindow" option to whatever you decide to use for winow.name="whatever." In this example, we've used "mainWindow" -- keep in mind that this is case-sensitive. <HTML> Where "mainWindow" is the name we set for the window instance.
Redirecting link to JavascriptIf the "linkToWindow" option is set to "javascript" the data contained in the <link> tag of an XML playlist is redirected to the handleLinkClick event handler. So when a user clicks on the video window, or the link arrow to the right of a playlist item, the data contained within the <link> tag is sent to the "handleLinkClick" function within rave.js
<script language='javascript' src='rave.js'></script> See examples 8 and 9 in the Rave download package for details on how to set up this functionality.
.
|
| Wimpy Player Documentation Copyright ©2002-2008 Plaino LLC. All rights reserved. Use of this website signifies your agreement to the Terms of Use. |