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

From MoodleDocs
Revision as of 18:47, 5 December 2006 by Jeff Forssell (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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