Category Archives: Javascript

C3 Chart

Official:

https://c3js.org/samples/timeseries.html

D3.js (Required)

https://d3js.org/

HTML Example:

Javascript Example:

PHP example:

 

Enter to submit a form (or trigger a button)

 

serialize form

 

Reload / Refresh page when user click back button on browser

Reference:

Useful Javascript Functions

 

身份證檢查

Javascript:

 

身份證驗證

 

Google Place API

  1. Get an API key
  2. Get library
  3. Get library
  4. Get library

Library: https://developers.google.com/maps/documentation/javascript/places

Example: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform

Place types of autocomplete service:
https://developers.google.com/places/supported_types#table3

 

Ajax Upload Plugin – Uploadifive

Document:

http://www.uploadify.com/documentation/

Usage:

 

Javascript Utility Functions