File: tooltip.js

package info (click to toggle)
ebug-http 0.31-2.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 348 kB
  • ctags: 343
  • sloc: perl: 1,957; makefile: 6
file content (18 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function tooltip (variable) {
//  alert("tooltip for " + variable);
  url = 'http://' + document.location.host + '/ajax_variable/' + variable;
//  alert("url is " + url);
  new Ajax.Request(
    url, {
    asynchronous: 1,
    onComplete:
      function (request) {
        response  = request.responseXML.documentElement;
        variable = response.getElementsByTagName('variable')[0].firstChild.data;
      value = response.getElementsByTagName('value')[0].firstChild.data;
      return overlib('<div style="font-family: \'monospace\'">' + value + '</div>', FOLLOWMOUSE, WRAP);
      return true;
    }
  });
  return false;
}