Monthly Archives: July 2013

curl – Send session cookies

http://www.smooka.com/blog/2009/07/24/maintaining-php-session-when-using-curl/

Table Example

 

jQuery Form Plugin Example (Deprecated)

Official Site: http://malsup.com/jquery/form/

Notices:

  1. If ajaxForm() or ajaxSubmit() not working:
    Check if include jQuery twice
  2. Disable browser validation:
    Add “novalidate” in <form>

Form HTML:

 Javascript:

 

Click Issue of popover

 

Note:

  1. trigger: manual and event.stopPropagation() are the keys
  2. http://twitter.github.io/bootstrap/javascript.html#popovers
  3. http://stackoverflow.com/questions/8947749/how-can-i-close-a-twitter-bootstrap-popover-with-a-click-from-anywhere-else-on

IPN Listener

 

Reference:

  1. http://stackoverflow.com/questions/11810344/paypal-ipn-bad-request-400-error
  2. https://developer.paypal.com/webapps/developer/applications/ipn_simulator
  3. https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNIntro/#protocol_and_arch
  4.  

Convert Objects to JSON

 

Usage of jQuery Datatable

Hide ID column but still able to get item ID:

Use CSS instead of “columnDefs”:

Reference:

  1. http://stackoverflow.com/questions/14372655/jquery-datatables-hide-column-without-removing-it-from-dom

CSS:

 

 

Localized txt file content:

Reference: