Obsolete:JavaScript functions: Difference between revisions
From MoodleDocs
No edit summary |
Helen Foster (talk | contribs) m removing categories |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
The functions mentioned here are deprecated. The correct way to use JavaScript in Moodle is documented on [[Development:JavaScript_guidelines]]. | The functions mentioned here are deprecated. The correct way to use JavaScript in Moodle is documented on [[Development:JavaScript_guidelines]]. | ||
If you want to see which JavaScript functions are available on a Moodle page you can use the Firefox [[Web developer extension]]: ''Information > View JavaScript''. | If you want to see which JavaScript functions are available on a Moodle page you can use the Firefox [[Web developer extension]]: ''Information > View JavaScript''. | ||
| Line 33: | Line 31: | ||
* [[Development:Unobtrusive_Javascript]] | * [[Development:Unobtrusive_Javascript]] | ||
* [[Javascript FAQ]] | * [[Javascript FAQ]] | ||
Latest revision as of 11:12, 24 November 2010
The functions mentioned here are deprecated. The correct way to use JavaScript in Moodle is documented on Development:JavaScript_guidelines.
If you want to see which JavaScript functions are available on a Moodle page you can use the Firefox Web developer extension: 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