This is a test site. Any changes will be lost!

Development:JavaScript functions: Difference between revisions

From MoodleDocs
m Javascript moved to Development:Javascript functions
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{stub}}
If you want to see which javascript functions are available on a Moodle page you can use FireFox extension WebDeveloper: Information > View Javascript.  
If you want to see which javascript functions are available on a Moodle page you can use FireFox extension WebDeveloper: Information > View Javascript.  


Line 16: Line 18:
and
and
  lib/overlib.js
  lib/overlib.js
==See also==
* [[Development:JavaScript_guidelines|Coding guidelines for JavaScript in Moodle]]
* [http://developer.yahoo.com/yui/ YUI documentation]
* [[Development:Unobtrusive_Javascript]]
[[Category:Developer]]
[[Category:Javascript]]
[[Category:AJAX]]

Latest revision as of 23:59, 10 November 2008


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