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)
coloring the code
Frank Ralf (talk | contribs)
Line 30: Line 30:
* [[Javascript FAQ]]
* [[Javascript FAQ]]


[[Category:Developer]]
{{CategoryDeveloper}}
 
[[Category:Javascript]]
[[Category:Javascript]]
[[Category:AJAX]]
[[Category:AJAX]]

Revision as of 12:04, 12 March 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