Practical Cryptography: "Columnar Transposition Cipher"
Read this page, which discusses the Columnar Transposition Cipher. Go through the written example as well as the JavaScript example, and then read about the cryptanalysis.
Click http://practicalcryptography.com/ciphers/classical-era/columnar-transposition/ link to open resource.