surebert banner

Surebert™ Auto Generated Docs

Hey there programmer,
Welcome to the documentation section for Paul Visco's Surebert Javascript toolkit version 4.6. These documents are under automatically generated from the lastest surebert source code comments. For more detailed information, make sure to check out the Surebert Wiki.

Main Surebert File

sb.js - Fully commented version

In this main surebert module you will find the core parts of the toolkit.

  • $ - The Dollar Sign - Used for easy cross browser DOM selection using CSS selectors
  • sb.ajax - Surebert's answer to cross browser ajax using a unified and robust API to communicate between client and server side scripts.
  • sb.events - Surebert's answer to cross brwser DOM event module
  • sb.dom.onReady - Test for the availability of DOM nodes
  • And more...

Loading Modules

You can load modules in three ways

  1. By simply including the module via script tag
    <script ="text/javascript" src="/surebert/swf.js"></script>
    
  2. Dynamically with javascript using sb.include
    sb.include('swf');
    
  3. Using the framework to load all the modules you need into one file
    <script ="text/javascript" src="/surebert/load/sb,swf,developer,css.styleTag,forms.serialize"></script>
    
  1. Array: Array
    1. prototype: Array.prototype
      1. Array.prototype.avg - avg.js
      2. Array.prototype.copy - copy.js
      3. Array.prototype.empty - empty.js
      4. Array.prototype.inject - inject.js
      5. Array.prototype.iteration - iteration.js
      6. Array.prototype.max - max.js
      7. Array.prototype.min - min.js
      8. Array.prototype.mostCommon - mostCommon.js
      9. Array.prototype.natsort - natsort.js
      10. Array.prototype.random - random.js
      11. Array.prototype.range - range.js
      12. Array.prototype.reduce - reduce.js
      13. Array.prototype.reduceRight - reduceRight.js
      14. Array.prototype.regex - regex.js
      15. Array.prototype.remove - remove.js
      16. Array.prototype.shuffle - shuffle.js
      17. Array.prototype.sum - sum.js
      18. Array.prototype.unique - unique.js
  2. browser: sb.browser
    1. sb.browser.$_GET - $_GET.js
    2. sb.browser.getScrollPosition - getScrollPosition.js
    3. sb.browser.removeSelection - removeSelection.js
    4. sb.browser.scrollTo - scrollTo.js
    5. sb.browser.win - win.js
  3. colors: sb.colors
    1. sb.colors.dec2hex - dec2hex.js
    2. sb.colors.getTweenColor - getTweenColor.js
    3. sb.colors.hex2dec - hex2dec.js
    4. sb.colors.html - html.js
    5. sb.colors.rand - rand.js
    6. sb.colors.toArray - toArray.js
  4. sb.cookies - cookies.js
  5. css: sb.css
    1. sb.css.rules - rules.js
    2. sb.css.styleSheet - styleSheet.js
    3. sb.css.styleTag - styleTag.js
  6. sb.date - date.js
  7. sb.developer - developer.js
  8. sb.drag - drag.js
  9. sb.effect - effect.js
  10. Element: Element
    1. Element.checkbox - checkbox.js
    2. Element.loading - loading.js
    3. prototype: Element.prototype
      1. Element.prototype.addToolTip - addToolTip.js
      2. Element.prototype.clearPosition - clearPosition.js
      3. Element.prototype.clearStyles - clearStyles.js
      4. Element.prototype.copyStyles - copyStyles.js
      5. Element.prototype.css - css.js
      6. Element.prototype.cssTransition - cssTransition.js
      7. Element.prototype.disableSelection - disableSelection.js
      8. Element.prototype.fade - fade.js
      9. Element.prototype.getAncestors - getAncestors.js
      10. Element.prototype.getDimensions - getDimensions.js
      11. Element.prototype.getFirstChild - getFirstChild.js
      12. Element.prototype.getHeight - getHeight.js
      13. Element.prototype.getLastChild - getLastChild.js
      14. Element.prototype.getNextSibling - getNextSibling.js
      15. Element.prototype.getPosition - getPosition.js
      16. Element.prototype.getPreviousSibling - getPreviousSibling.js
      17. Element.prototype.getWidth - getWidth.js
      18. Element.prototype.hide - hide.js
      19. Element.prototype.highlight - highlight.js
      20. Element.prototype.infuse - infuse.js
      21. Element.prototype.isDescendantOf - isDescendantOf.js
      22. Element.prototype.makeDraggable - makeDraggable.js
      23. Element.prototype.markText - markText.js
      24. Element.prototype.mv - mv.js
      25. Element.prototype.quiver - quiver.js
      26. Element.prototype.resizeTo - resizeTo.js
      27. Element.prototype.setAttributes - setAttributes.js
      28. Element.prototype.setOpacity - setOpacity.js
      29. Element.prototype.show - show.js
      30. Element.prototype.toggle - toggle.js
      31. Element.prototype.unsetAttributes - unsetAttributes.js
      32. Element.prototype.wh - wh.js
  11. events: sb.events
    1. sb.events.getWheelDirection - getWheelDirection.js
    2. sb.events.keys - keys.js
  12. sb.flashGate - flashGate.js
  13. forms: sb.forms
    1. sb.forms.serialize - serialize.js
    2. textarea: sb.forms.textarea
      1. sb.forms.textarea.allowTabs - allowTabs.js
      2. sb.forms.textarea.textBling - textBling.js
    3. sb.forms.textarea - textarea.js
  14. functions: sb.functions
    1. sb.functions.fireAfterDelay - fireAfterDelay.js
    2. sb.functions.fireRepeatedly - fireRepeatedly.js
    3. sb.functions.keepTrying - keepTrying.js
  15. sb.ie6 - ie6.js
  16. sb.js1_5 - js1_5.js
  17. math: sb.math
    1. sb.math.flip - flip.js
    2. sb.math.rand - rand.js
  18. nodeList: sb.nodeList
    1. prototype: sb.nodeList.prototype
      1. sb.nodeList.prototype.parents - parents.js
      2. sb.nodeList.prototype.stylesTrail - stylesTrail.js
  19. sb.sharedObject - sharedObject.js
  20. sb.sound - sound.js
  21. String: String
    1. prototype: String.prototype
      1. String.prototype.basename - basename.js
      2. String.prototype.br2nl - br2nl.js
      3. String.prototype.cleanFileName - cleanFileName.js
      4. String.prototype.escapeHTML - escapeHTML.js
      5. String.prototype.hilite - hilite.js
      6. String.prototype.isNumeric - isNumeric.js
      7. String.prototype.linkify - linkify.js
      8. String.prototype.ltrim - ltrim.js
      9. String.prototype.md5 - md5.js
      10. String.prototype.nl2br - nl2br.js
      11. String.prototype.numpad - numpad.js
      12. String.prototype.regex - regex.js
      13. String.prototype.rgb2hex - rgb2hex.js
      14. String.prototype.rtrim - rtrim.js
      15. String.prototype.stripHTML - stripHTML.js
      16. String.prototype.stripWhiteSpace - stripWhiteSpace.js
      17. String.prototype.strstr - strstr.js
      18. String.prototype.substrCount - substrCount.js
      19. String.prototype.substrReplace - substrReplace.js
      20. String.prototype.toElement - toElement.js
      21. String.prototype.toFile - toFile.js
      22. String.prototype.toNumber - toNumber.js
      23. String.prototype.trim - trim.js
      24. String.prototype.typoFix - typoFix.js
      25. String.prototype.ucwords - ucwords.js
  22. sb.swf - swf.js
  23. sb.upload - upload.js
  24. sb.uploadButton - uploadButton.js
  25. utils: sb.utils
    1. sb.utils.debugWin - debugWin.js
    2. sb.utils.monitor - monitor.js
    3. sb.utils.performance - performance.js
    4. sb.utils.timer - timer.js
  26. widget: sb.widget
    1. sb.widget.accordian - accordian.js
    2. sb.widget.colorPalette - colorPalette.js
    3. sb.widget.colorRandomizer - colorRandomizer.js
    4. editor: sb.widget.editor
      1. sb.widget.editor.plugin - plugin.js
    5. sb.widget.editor - editor.js
    6. sb.widget.flipBook - flipBook.js
    7. sb.widget.floatWin - floatWin.js
    8. sb.widget.magicTable - magicTable.js
    9. sb.widget.particles - particles.js
    10. sb.widget.slider - slider.js
    11. sb.widget.sortList - sortList.js
    12. sb.widget.swapList - swapList.js

If you are upgrading surebert 3.0 (pre-2008) to surebert 4.0 check out this guide