Showing posts with label Javascript. Show all posts
Showing posts with label Javascript. Show all posts

Wednesday, December 17, 2008

JavaScript RC4 Encryption

RC4 Encryption in JavaScript : RC4 Encryption

JavaScript SHA256 (jssha256)

jssha256: SHA256 in JavaScript

JavaScript AES

jsaes: AES in JavaScript

JavaScript AES

JavaScript AES Advanced Encryption Standard in Counter Mode

JavaScript SHA-1

JavaScript SHA-1 Cryptographic Hash Algorithm

JavaScript TEA (Tiny Encryption Algorithm)

JavaScript - Block TEA Tiny Encryption Algorithm

DHTML routines and functions

DHTML snippets from webtoolkit.info

AJAX file upload
How to upload files using AJAX, without reloading the page? Read about the cross browser method to upload files using AJAX in only 1Kb of code.
Read more...

Scrollable HTML table
Scrollable HTML table JavaScript code can be used to convert tables in ordinary HTML into scrollable ones. No additional coding is necessary.
Read more...

Javascript context menu
Javascript context menu is very lightweight, OOP based and item-specific. You can attach this context menu to multiple containers. Read more...

Sortable HTML table
Sortable HTML table JavaScript code can be used to convert tables in ordinary HTML into sortable ones. This script is unobtrusive. No additional coding is necessary.
Read more...

Javascript drag and drop
Javascript drag and drop will enable you to drag elements on your page. You can attach this drag and drop handler to any relative or absolute positioned element.
Read more...

Javascript custom cursor
Cross hair mouse cursor. Learn ho to add a fancy custom cursor to your website using Javascript.
Read more...

Javascript pie menu
Javascript pie menu allows you to build an configurable context pie menu.
Read more...

Unselectable text
A method to have unselectable text in a browser. Script makes text in an HTML page unselectable by visitors.
Read more...

  

Javascript routines and functions

Javascript routines and functions from webtoolkit.info

Javascript trim
Javascript trim is a string function. It will trim all leading and trailing occurrences of whitespace characters.
Read more...

Javascript string replace
Javascript string replace is a very useful function. Javascript has a built-in string replace function but it uses regular expressions.
Read more...

Javascript sprintf
Javascript sprintf implementation. This Javascript function returns a string formatted by the usual printf/sprintf conventions. Read more...

Javascript url decode, encode
You can use this Javascript to encode / decode url parameters. Script is fully compatible with UTF-8 encoding. Read more...

Javascript MD5
This Javascript is used to calculate MD5 hash of a string. MD5 is a widely-used cryptographic hash function with a 128-bit hash value.
Read more...

Javascript SHA-1
This Javascript is used to calculate SHA-1 hash of a string. The Secure Hash Algorithm is one of the many cryptographic hash functions. Read more...

Javascript SHA-256
SHA-256 Javascript implementation is used to process variable length message into a fixed-length output using the SHA256 algorithm.
Read more...

Javascript CRC32
CRC32 function generates the cyclic redundancy checksum polynomial of 32-bit lengths of the string.
Read more...

Javascript base64 encoding
This base64 Javascript is used to encode / decode data using base64 encoding. This Javascript is fully compatible with UTF-8 encoding. Read more...

Javascript UTF-8
Use this Javascript to encode decode UTF-8 data. UTF-8 is a variable-length character encoding for Unicode.
Read more...

Javascript pad
Pad is a string manipulation function. Javascript pad implementation pads a string to a certain length with another string.
Read more...

Javascript cookies
Javascript cookies object with methods to save, read and erase them. Using these methods you can manipulate cookies on your site.
Read more...

Javascript UTF-8

Javascript UTF-8

Javascript base64 encoding

Javascript base64 encoding

Javascript CRC32

Javascript CRC32

Javascript MD5

Javascript MD5

Javascript url decode, encode

Javascript url decode, encode

Javascript sprintf

Javascript sprintf

Javascript trim

Javascript trim

Sunday, July 20, 2008

jsdifflib - A Javascript Visual Diff Tool

jsdifflib - A Javascript Visual Diff Tool & Library - Snowtide Informatics

Try jsdifflib

highlight.js (softwaremaniacs.org)

highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages. It's very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.
This is not only convenient but also allows highlighting for code examples marked up with writing syntaxes like Markdown where there is no way to specify HTML class easily.
The program knows following languages:
Python Ruby Perl PHP XML HTML CSS Django Javascript BScript Delphi Java C++ RenderMan (RSL and RIB) SQL SmallTalk Axapta 1C Ini Diff DOS .bat Bash

Download version 4.1

Demo

Sunday, July 13, 2008

Sorting HTML tables in Javascript (date, time, ipaddr,...)

Mingyi's Cross-Browser Javascript that sorts HTML tables

Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
  1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
  2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
  3. Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
    1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
    2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
    3. Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK): Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK): Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
      1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
      2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
      3. Support various levels of style preserving (row-level, cell-level or table-level (default)) after sorting. Particularly useful for the table rows that're alternatively highlighted (e.g., odds rows yellow, even rows blue).
      4. Support for user-supplied sorting function for any custom data type.
      5. Allows table sorting on page loading, force columns to be not sortable or only sortable in one direction. One could even optionally force all table to be sortable by default (without having to specify a 'sortable' class).
      6. Sorted tables can remember their states (so when user leaves the page and comes back, the tables remain sorted the way the user left the page with). This is also an optional customizable feature.
      7. Has a very popular FireFox extension evolved out of this script!

    Feature list 2 - you'd be hard pressed to find ALL the features below in any other solutions:
        1. Easy to use, runs very fast, X-browser
        2. Support multiple tables on the same html page.
        3. Works with thead, tbody, th, etc. html tags and allows multi-row header and footer.
        4. Intelligent sorting - Automatically detects data types so that sorting is correct. For example, this script would recognize that 0.5 and 5E-1 are the same values, '06/22/1996 16:59:02' and '06/22/1996 04:59:02 PM' are the same time.
        5. Allow force sorting of unrecognized currencies.
        6. Allow customization of the style of the table heading clickable links. Allows customization of (warning) messages as well.
        7. Improved reliability over offending data (like non-number in a number column).
        8. Too many small customizable features to name, please check the script customizable parameters instead.
        9. Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
          1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
          2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
          3. Support various levels of style preserving (row-level, cell-level or table-level (default)) after sorting. Particularly useful for the table rows that're alternatively highlighted (e.g., odds rows yellow, even rows blue).
          4. Support for user-supplied sorting function for any custom data type.
          5. Allows table sorting on page loading, force columns to be not sortable or only sortable in one direction. One could even optionally force all table to be sortable by default (without having to specify a 'sortable' class).
          6. Sorted tables can remember their states (so when user leaves the page and comes back, the tables remain sorted the way the user left the page with). This is also an optional customizable feature.
          7. Has a very popular FireFox extension evolved out of this script!
          Feature list 2 - you'd be hard pressed to find ALL the features below in any other solutions:
          1. Easy to use, runs very fast, X-browser
          2. Support multiple tables on the same html page.
          3. Works with thead, tbody, th, etc. html tags and allows multi-row header and footer.
          4. Intelligent sorting - Automatically detects data types so that sorting is correct. For example, this script would recognize that 0.5 and 5E-1 are the same values, '06/22/1996 16:59:02' and '06/22/1996 04:59:02 PM' are the same time.
          5. Allow force sorting of unrecognized currencies.
          6. Allow customization of the style of the table heading clickable links. Allows customization of (warning) messages as well.
          7. Improved reliability over offending data (like non-number in a number column).
          8. Too many small customizable features to name, please check the script customizable parameters instead.
          9. Mingyi's Cross-Browser Javascript that sorts HTML tables Feature list 1 - The power features that are unique to my script (no other script on the web has these features or comes close AFAIK):
            1. Sort US, European, mixed style and user-specified dates (and time)! It's not trivial!
            2. Support keyboard shortcuts for quick access to sorting (e.g., press 'ctrl+alt'+click anywhere in table to sort)!
            3. Support various levels of style preserving (row-level, cell-level or table-level (default)) after sorting. Particularly useful for the table rows that're alternatively highlighted (e.g., odds rows yellow, even rows blue).
            4. Support for user-supplied sorting function for any custom data type.
            5. Allows table sorting on page loading, force columns to be not sortable or only sortable in one direction. One could even optionally force all table to be sortable by default (without having to specify a 'sortable' class).
            6. Sorted tables can remember their states (so when user leaves the page and comes back, the tables remain sorted the way the user left the page with). This is also an optional customizable feature.
            7. Has a very popular FireFox extension evolved out of this script!
            Feature list 2 - you'd be hard pressed to find ALL the features below in any other solutions:
            1. Easy to use, runs very fast, X-browser
            2. Support multiple tables on the same html page.
            3. Works with thead, tbody, th, etc. html tags and allows multi-row header and footer.
            4. Intelligent sorting - Automatically detects data types so that sorting is correct. For example, this script would recognize that 0.5 and 5E-1 are the same values, '06/22/1996 16:59:02' and '06/22/1996 04:59:02 PM' are the same time.
            5. Allow force sorting of unrecognized currencies.
            6. Allow customization of the style of the table heading clickable links. Allows customization of (warning) messages as well.
            7. Improved reliability over offending data (like non-number in a number column).
            8. Too many small customizable features to name, please check the script customizable parameters instead.
            Right click on this link (35 kb file) or here (a compressed version, only 15 kb but not easy to read/customize) and choose to save it as sorttable.js into the folder where your html files are.

    Reading binary files using Ajax -nagoon97’s Weblog

    Reading binary files using Ajax - nagoon97’s Weblog

    Demo:
    http://www.heypage.com/nagoon97/BinFileReader/BinFileReader_demo.htmlReading binary files using Ajax - nagoon97’s Weblog

    Demo:
    http://www.heypage.com/nagoon97/BinFileReader/BinFileReader_demo.htmlReading binary files using Ajax - nagoon97’s Weblog

    Demo:
    http://www.heypage.com/nagoon97/BinFileReader/BinFileReader_demo.html