I tried to encapsulate $.post()
to an object and handle the callback using the object's method/function. The net suggest that I should use JQuery $.proxy()
to achieve it like question. However it seems that jquery (or me) is failing to get the right context.
Here is a live demo http://jsfiddle.net/komaruloh/WSBBC/