Page 2 of 4

Javascript: Copy To Clipboard Cross Browser

JavaScript: Copy To Clipboard Cross Browser

If you use any script for syntax highlighting, you’ll see most of them has “copy to clipboard” feature. This is a fascinating thing done with Javascript. So I want to know more about it: how to implement copy to clipboard in Javascript. I did some searches on Google and found many articles which show various solutions. They’re so interesting and I just want to share a small roundup in this article.

Continue reading → JavaScript: Copy To Clipboard Cross Browser

How To AJAXify WordPress Theme

How To AJAXify WordPress Theme

How To AJAXify WordPress Theme

Chris Coyier has made a wonderful screencast about AJAXing WordPress theme. To AJAXify WordPress theme, he uses jQuery to make any internal link on the site will load into the main content area without requiring a page refresh, including search when the link is clicked. Althought the script works fine, it has 2 disadvantages: the internal links’ href property are changed (hashized) and the back/forward buttons are not supported. So I decided to improve the script to make the AJAX functionality better.

Continue reading → How To AJAXify WordPress Theme