JQueryWikiWord

%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

Add Project

Title:

Year:

Project topic:

%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
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding STALklubben? Send feedback