Custom and extended object classes
The following mini-code libraries are presented for your use and reuse.
- Code for the Args() classes
- Two complete versions of a script argument handling class. Used to extract arguments when a script is called query string, like so:
-
<script type="text/javascript" src="http://elektrum.org/js/noService.js?key=value;key2=value+two"> </script>
- Code for the Query() class
- A class to examine query strings from the referrer and the current page. It finds and parses queries then scores query values for human readability.
- Extending the native Date() class
- Method extensions to the native
Date()
object. - Extending the native Array() class
- Method extensions to the native
Array()
object. - Extending the native String() class
- Method extensions to the native
String()
object. - Extending the native Number() class
- Method extensions to the native
Number()
object. - An HTML library with JavaScript
- Functions to write HTML directly from JS without all the usual
document.write()
s andString + string + string
.
All original content is ©2004-2005 an elektrum press, all
rights reserved. For code use, please see Licenses and terms of use.