General Musing

blaze your trail

Sync Web with Phone #html #javascript #scratchpad

leave a comment »

Having some fun today with , JavaScript and the Google Analytics URL Builder to produce an image which can be used to sync the webpage you are on to your phone using a QR code.

document.write("<img src=\"http://chart.apis.google.com/chart?chs=150x150&cht=qr&chl="+ escape(document.href) +"&choe=UTF-8\">");

Naturally the Javascript code should probably be more DOM oriented, but this was just for fun!

Advertisements

Written by Daniël W. Crompton (webhat)

September 29, 2010 at 12:51 pm

Posted in mashup, mobile, programming, tagging

Tagged with , ,

Please Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: