Archive for the ‘javascript’ Category

JQuery to Post to a page in Background

Tuesday, May 15th, 2012

Very simple and useful trick.

$.post(“Test.html”);

Javascript to convert Simplified and Traditional Chinese

Monday, August 31st, 2009

http://blog.markplace.net/marks_place/10/2006/10/27/150

download tw_cn.js

Regular Expression to replace all characters except …

Monday, September 17th, 2007

link.replace(/[^0-9]/g,'')

Extracting the last part of the url

Monday, September 17th, 2007

link.substring(link.lastIndexOf('/')+1,link.lastIndexOf('.'))