Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: JavaScript guidelines.

Development talk:JavaScript guidelines: Difference between revisions

From MoodleDocs
Line 6: Line 6:
== Getting Moodle to load your JavaScript files ==
== Getting Moodle to load your JavaScript files ==
are in_head and asap now obsolete?
are in_head and asap now obsolete?
It seems in_head is replaced by the second parameter to the js class, is there an alternative for asap? --[[User:Alastair Hole|Alastair Hole]] 17:46, 13 June 2010 (UTC)
It seems in_head is replaced by the second parameter to the js class constructor, is there an alternative for asap? --[[User:Alastair Hole|Alastair Hole]] 17:46, 13 June 2010 (UTC)

Revision as of 17:47, 13 June 2010

event handlers

Should there be a recommendation to use YUI event handlers instead of JavaScript's inline event handlers? This might be better for cross-browser compatibility. --Frank Ralf 09:24, 15 June 2009 (UTC)

Good idea--Tim Hunt 03:16, 16 June 2009 (UTC)

Getting Moodle to load your JavaScript files

are in_head and asap now obsolete? It seems in_head is replaced by the second parameter to the js class constructor, is there an alternative for asap? --Alastair Hole 17:46, 13 June 2010 (UTC)