JavaScript
9 posts · All topics
Find Geographic Coordinates from an Address or Postcode with the Google Maps API
A small JavaScript client that uses the Google Geocoding API to find the latitude and longitude of an address or postcode.
jPlayer Not Working in the HTC One Android 4.3 Browser
A workaround for jPlayer's media load bug on some Android browsers: add a short delay before calling media.load().
Methods Called from a WebView Need the @JavascriptInterface Annotation — Android Development
Since Android 4.2, native methods called from JavaScript in a WebView must be annotated with @JavascriptInterface.
Use Absolute URLs for JavaScript Files — Symfony 1.4
Make Symfony 1.4 output absolute URLs for JavaScript files, both in view.yml and when adding them dynamically.
Convert a Database Cursor to a JSON Array — Android App Development
Java code that converts an Android SQLite cursor into a JSON array, handy for PhoneGap plugins that run raw queries.
WordPress Malware Attack on JavaScript Files
Malware appended code to every JavaScript file on my WordPress site. A small shell script that removes it.
Twitter JSON API URL Changed
Twitter retired its old JSON timeline URL. Here are the old and new endpoints.
jQuery Slider for iPhone and Android with the jQuery Cycle and Swipe Plugins
Add touch swipe support to a jQuery Cycle slider for iPhone and Android, with a small tweak to the jQuery Swipe plugin.
jPlayer Workaround for Android
jPlayer doesn't work properly on some Android phones unless you set solution: "flash,html" in its options.