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
m Javascript moved to Development:Javascript functions
m removing categories
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
If you want to see which javascript functions are available on a Moodle page you can use FireFox extension WebDeveloper: Information > View Javascript.  
{{obsolete_design}}
 
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:
Some things that can be there:


<code php>
  /lib/javascript-static.js
  /lib/javascript-static.js
  // Miscellaneous core Javascript functions for Moodle
  // Miscellaneous core Javascript functions for Moodle
Line 14: Line 19:
  }
  }
  ...
  ...
</code>
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]]
* [[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


See also