User:Clarkbw/STEEL Examples: Difference between revisions

Jump to navigation Jump to search
initial examples page
(initial example code)
 
(initial examples page)
Line 1: Line 1:
'''Here are your instructions'''
# Grab the [https://bugzilla.mozilla.org/attachment.cgi?id=309579 STEEL extension] for thunderbird from {{bug|408370}}
# [[User:Clarkbw/Install_STEEL_Extension|Install the STEEL Extension]]
# Write Extensions that use the [[User:Jminta/Steel|STEEL API]]
'''Here are some working examples of code using the STEEL API.'''
== Watching for New Mail ==
Here's a snippet that listens for new mail arriving
<pre>
<pre>
var steelyournewmail = {
var steelyournewmail = {
Line 37: Line 49:
window.addEventListener("load", function(e) { steelyournewmail.onLoad(e); }, false);
window.addEventListener("load", function(e) { steelyournewmail.onLoad(e); }, false);
</pre>
</pre>
''The [http://developer.mozilla.org/en/docs/Extensions:Thunderbird:HowTos#How_do_I_watch_for_new_Mail.3F old version of watching for new mail] still works''
Confirmed users
1,059

edits

Navigation menu