source: extensions/Histogram/js/histoLoad.js @ 8804

Last change on this file since 8804 was 8509, checked in by grum, 13 years ago

First commit for histogram plugin

  • Property svn:executable set to *
File size: 580 bytes
Line 
1
2function HistoLoad()
3{
4  var get = function(id, token)
5  {
6    $.ajax(
7      {
8        type: "POST",
9        url: "plugins/Histogram/hgram_ajax.php",
10        async: true,
11        data: { ajaxfct:"public.histo.build", id:id, token:token },
12        success:
13          function(msg)
14          {
15            if(msg!='')
16            {
17              $('#iHistoTxt').remove();
18              $('#iHistoContent').append('<img id="#iHistoImg" src="local/plugins/Histogram/'+msg+'">');
19            }
20          }
21      }
22    );
23  };
24
25  this.get = function (id, token) { get(id, token); }
26}
27
Note: See TracBrowser for help on using the repository browser.