Peng Zhang on January 13th, 2013

While window.back() works just fine, it does not work in Internet Explorer 9 that I have, because the method is not there in the window object. To go back in history in both Firefox and IE, the code is history.back().

Continue reading about Windows.back() causes method not found

Peng Zhang on July 13th, 2011

Based on this article on setInterval’s syntax, setInterval should take either a reference to a function or a javascript code that will be evaluated – basically a string. For some reason, Firefox does not like the “string” version of the setInterval statement. Based on my testing, IE works with both the direct reference or code [...]

Continue reading about setInterval and Firefox

Peng Zhang on March 11th, 2011

Created a jQuery plugin for vertical and horizontal centering.

Continue reading about Created the First Ever jQuery Plugin Today

I finally had the time to do something about a problem – I don’t want a group of my users in a custom-defined role (that will normally see a dropdown list of pages to navigate to) to see it within the management control panel area. Below is the way I did it: function isHRADMRole(){         return [...]

Continue reading about Hide Jump To Page Navigator for Certain Users in a Taleo’s LearnCenter

Peng Zhang on February 18th, 2011

Color hslpicker.com Charting/Visualisation HighCharts JS grafico charting mbostock.github.com/d3/ Visual Effects PaintBrush JS File Upload plupload.com Other processing.js

Continue reading about JavaScript Libraries

Situation Forms set to use  the encoding “application/x-www-form-urlencoded” and the GET method will encode a space in input text into a “+” in the query string. In the form handler, none of the readily available decoding function can properly decode the “+” back to a space using javascript.  Neither “unescape” nor “decodeURIComponent” function returns the [...]

Continue reading about Problem UrlEncoding and UrlDecoding Space in Query String Values