|
|
(4 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| | {{Obsolete}} |
| <center> | | <center> |
| <table border="1"> | | <table border="1"> |
Line 25: |
Line 26: |
|
| |
|
| == Inline JavaScript == | | == Inline JavaScript == |
| Inline JavaScript - e.g. the use of HTML attributes such as: onclick, onmouseover, onmouseout, etc - is an outright no-no. Do NOT do this. Instead, opt for event binding. | | Inline JavaScript - e.g. the use of HTML attributes such as: onclick, onmouseover, onmouseout, etc. - is an outright no-no. Do NOT do this. Instead, opt for event binding. |
| | |
|
| |
|
|
| |
|
| == jQuery == | | == jQuery == |
| The Brotherhood standardizes on the [http://jquery.com jQuery] library. All JavaScript should be written using jQuery; either using Core jQuery, jQuery plugins, or DJB created jQuery plugins. | | The Brotherhood standardizes on the [http://jquery.com jQuery] library. All JavaScript should be written using jQuery; either using Core jQuery, jQuery plugins, or DJB created jQuery plugins. |
|
| |
|
| |
|
|
| |
|
Line 38: |
Line 37: |
|
| |
|
|
| |
|
| [[Category:DJB Info]] [[Category:Coding Standards]]
| | [[Category:Coding Standards]] |
Latest revision as of 00:44, 21 April 2024
|
You must unlearn what you have learned. This article contains obsolete data. It reflects a Dark Brotherhood policy, position, or object that has been removed or replaced. It is preserved here for historical purposes only and should not be used/referenced.
|
Inline JavaScript
Inline JavaScript - e.g. the use of HTML attributes such as: onclick, onmouseover, onmouseout, etc. - is an outright no-no. Do NOT do this. Instead, opt for event binding.
jQuery
The Brotherhood standardizes on the jQuery library. All JavaScript should be written using jQuery; either using Core jQuery, jQuery plugins, or DJB created jQuery plugins.
Script Inclusion
Including JavaScript within script tags in the HTML is not advised. Use an external file where possible. This allows the individual files to be cached by browsers independent of the HTML file.