%JQPLUGINS{"wikiword"
format="
Homepage: $homepage
Author(s): $author
Version: $version
"
}%
This plugin allows to create a WikiWord on the base of a set of
input elements. The value of these are concatenated and the result is
normalized to be a valid WikiWord. For example, this can be used
to derive a topic name from a free-form topic title text.
Examples
%JQREQUIRE{"wikiword"}%
%ADDTOZONE{"body" topic="JQueryWikiWord" section="init" requires="JQUERYPLUGIN::WIKIWORD"}%
JavaScript initialization
%STARTSECTION{"init"}%
<literal>
<script type='text/javascript'>
(function($) {
$(function() {
$('#prjTopic').wikiword(
'#prjTitle, #prjYear', {
prefix: 'Project',
initial: 'Project...'
});
});
})(jQuery);
</script>
</literal>
%ENDSECTION{"init"}%
Topic revision: r2 - 2010-02-20 - 07:59:57 -
AdminUser