|
|
||||||||||||||||||||||||||||||||||||||||||||||
JQueryLoaderHomepage: http://foswiki.org/Extensions/JQueryPluginAuthor(s): Michael Daum Version: 1.00 This plugin allows to delay rendering parts of a page that are loaded later on asynchronously and patched into the page. UsageAdd the%JQREQUIRE{"loader"}% macro to the page that you want to use this module on.
Then add the jqLoader css class to the div (or verbatim) element which will serve as
a container for the content to be loaded. Any jqLoader container requires either
an url or a section parameter to specify the location from where to load the content.
Parameter are specified using JQueryMetadata, as in
<div class="jqLoader {key:'value', ....}"></div>
jqLoader element is able to receive JavaScript events and process them accordingly. Similarly these
events can be used to hook your own callbacks to be processed when they are fired.
Examples
%JQREQUIRE{"loader"}%
<verbatim class="jqLoader {section:'recentchanges', effect:'fade'}" id="myLoader">
%STARTSECTION{"recentchanges"}%<!-- -->
%SEARCH{
"'1'"
web="%BASEWEB%"
type="query"
nonoise="on"
order="modified"
reverse="on"
limit="10"
format="<p class='foswikiSearchResult'>[[$web.$topic]] $date - $rev - $wikiusername</p>"
}%
<!-- -->%ENDSECTION{"recentchanges"}%
</verbatim>
... if installed:
r1 - 24 Oct 2011 - 10:41:08 - ProjectContributor
Copyright © by the contributing authors. All material on this site is the property of the contributing authors. Ideas, requests, problems regarding Wiki? Send feedback |