Development:JavaScript functions: Difference between revisions
From MoodleDocs
No edit summary |
|||
| Line 25: | Line 25: | ||
* [[Development:Unobtrusive_Javascript]] | * [[Development:Unobtrusive_Javascript]] | ||
[Category:Developer]] | [[Category:Developer]] | ||
[[Category:Javascript]] | [[Category:Javascript]] | ||
[[Category:AJAX]] | [[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