cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
No such plugin bgiframe
No such plugin tooltip
%term%

%REGISTERMACRO{"gloss" topic="Support.GlossaryMacro" param="term"}%

%STARTSECTION{"script"}%<script type='text/javascript'>
jQuery(document).ready(
  function() {
     var counter = 0, map = [];

     jQuery('a.glossary').tooltip(
         {
             extraClass: 'bubble',
             opacity: 1,
             showURL: false,
             bodyHandler: function()
             {
                 var term = jQuery(this).text(), html;

                 if (!(term in map)) {
                     map[term] = counter;
                     counter += 1;
                 }
                 html = '<div><h3>Definition</h3><div class="glosstip" id="glosstip' + map[term] + '">' + jQuery(this).text() + '</div></div>';
                 jQuery('#glosstip' + map[term]).livequery(function () {
                     var term = jQuery(this).text(),
                           url = "%SCRIPTURLPATH{"view"}%/%WEB%/%TOPIC%?section=ajax;skin=text;qweb=%BASEWEB%;qterm=";

                     jQuery(this).load(url + encodeURIComponent(term));
                 });

                 return html;
             }
         }   
     );  
  }
);
</script>%ENDSECTION{"script"}%
Topic revision: r9 - 17 Jan 2014, MartinKaufmann - This page was cached on 22 Jun 2018 - 03:35.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy