Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://wiki.cs.msu.ru/System/JSPopupPlugin?rev=1
Дата изменения: Unknown Дата индексирования: Sun Apr 10 05:17:56 2016 Кодировка: koi8-r |
It uses javascript to create a popup window containing either a hidden pre-rendered part of a topic, or a Foswiki request that is dynamically requested and served. Popups are activated either on a mouse click, when the mouse passes over the anchor, or when the page is loaded.
To make it easy for System.Skins developers, any html link with the cssfoswikiPopupLink
class will get a popup dialog.
If the Javascript fails, or this plugin is disabled, the link will gracefully fall back to going to the link in the main browser window.
use the foswikiPopupLink
class to get popup dialog elements on urls that can degrade gracefully for users without javascript. <a class="foswikiPopupLink" href="%SCRIPTURL{attach}%/%WEB%/%TOPIC%">Attach</a>
%POPUP{ anchor="<button class='foswikiButton'>add comment</button>" popuptext="$percntCOMMENT{target=\"#Comments\"}$percnt" popuptexttype="tml" }%or a popup menu of webs
%POPUP{ anchor=" *listofwebs* " anchortype="onmouseover" popuptext="%WEBLIST{"| [[$name.WebHome][$name]] |"}%" popuptexttype="tml" popuplocation="below" border="off" }%or a popup that quickly shows the topic source
%POPUP{ anchor="<button class='foswikiButton'>view topic Source</button>" popuptitle="%TOPIC%" popuptext="%SCRIPTURL{view}%/%WEB%/%TOPIC%?raw=on;skin=print" popuptexttype="rest" }%or a popup that can quickly show you the last change made to the topic.
%POPUPLINK{ "Last edit" url="%SCRIPTURL{rdiff}%/%WEB%/%TOPIC%?type=last" }%
there is only one popup window at a time, so if the clicks on an anchor while another popup is up, it will be replaced by the new one.
foswikiPopupLink
class foswikiPopupLink
will get an onClick handler that will popup a YUI dialog. This dialog will be filled with content from the server (using the href attribute), requested dynamically.
POPUPLINK
is useful for creating popup alternatives (with fallback) to enquiry or action pages, such as Raw topic view. Instead of leaving the foswiki topic to see what the markup is
the user is able to quickly see the WikiMarkup, and then cancel back to the normal topic view.
%POPUPLINK{"Attach" url="" }% ?cover=popup
)
%<plugin>_<setting>%
, i.e. %JSPOPUPPLUGIN_SHORTDESCRIPTION%
data/debug.txt
) JSPopupPlugin.zip
in your foswiki installation directory. Content: %POPUPLINK{ "View Raw" url="http://wiki.cs.msu.ru/bin/view/System/JSPopupPlugin?raw=on" }%
Plugin Author: | Foswiki:Main.SvenDowideit - SvenDowideit@fosiki.DELETE_NO_SPAM..com - WikiRing.com |
Copyright: | © 2001-2009, SvenDowideit@fosiki.DELETE_NO_SPAM..com |
License: | GPL (GNU General Public License) |
Change History: | |
6 Jan 2009 | port to Foswiki and update for YUI 2.6.0 |
16 Aug 2008 | update for YUI 2.5.2 |
9 Sept 2007 | fixed it to use the yui event handling, rather than the moved addLoadEvent |
12 Feb 2007 | added POPUPLINK tag |
23 Oct 2006 | added delay by Foswiki:Main.OliverKrueger, and added use of Foswiki:Extensions.YahooUserInterfaceContrib |
01 May 2006 | Initial version |
CPAN Dependencies: | %$DEPENDANCIES% |
Other Dependencies: | Foswiki:Extensions.YahooUserInterfaceContrib |
Plugin Home: | http://foswiki.org/Extensions/JSPopupPlugin |