Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: JavaScript functions.

Obsolete:JavaScript functions: Difference between revisions

From MoodleDocs
Frank Ralf (talk | contribs)
Frank Ralf (talk | contribs)
coloring the code
Line 5: Line 5:
Some things that can be there:
Some things that can be there:


<code php>
  /lib/javascript-static.js
  /lib/javascript-static.js
  // Miscellaneous core Javascript functions for Moodle
  // Miscellaneous core Javascript functions for Moodle
Line 16: Line 17:
  }
  }
  ...
  ...
</code>
and
and
  lib/overlib.js
  lib/overlib.js


==See also==
==See also==

Revision as of 08:44, 20 February 2009


If you want to see which javascript functions are available on a Moodle page you can use FireFox extension WebDeveloper: Information > View Javascript.

Some things that can be there:

/lib/javascript-static.js
// Miscellaneous core Javascript functions for Moodle
function popupchecker(msg) {
   var testwindow = window.open('itestwin.html', , 'width=1,height=1,left=0,top=0,scrollbars=no');
   if (testwindow == null)
       {alert(msg);}
   else {
       testwindow.close();
   }
}
...

and

lib/overlib.js


See also