coder and technology lover
Posts tagged google
goog.ui.TabPane: Create tabs with Google Closure
Nov 16th
Hi everyone,
by starting with this post I would like to begin a series of posts dedicated to the new javascript library released by Google: Closure!
Today I will focus my attention on tabs creation, since this is maybe the most common user interface component in a web application.
In order to create Closure tabs, we need to import the base js file (/goog/base.js) and then require the class goog.ui.TabPane. Inside our head (or body) we will get the following:
1 2 3 4 | <script src="closure/goog/base.js"></script> <script type="text/javascript"> goog.require('goog.ui.TabPane.TabPage'); </script> |
Playing with Google maps API – Part one
Nov 14th
Ok, as announced in the previous post, let’s start to analyze how to work with Google maps (Javascript) API.
Preface: while I was writing I have been a little too verbose, so I won’t respect the previously declared steps, but I will add/modify them while posting.
Playing with Google maps API
Nov 13th
In my spare time, these days I’m looking at Google maps (Javascript) API, because relatively soon, I will have to realize a web site in which include a custom and interactive map.
In detail the site will be the official web page of an Italian bikers group, which will attempt to enter in the World Records Guinness as the largest bike aggregation of the same model (and I’ll be one of those crazy men! :-)))
The user will be able to subscribe to the event indicating his city and some other details.
And is here that the interactive map comes into play! It will shows the Italian map sprinkled by colored labels anchored to the main cities and indicating the total of subscribers in that city.
The label’s color will vary due to that number (green = few bikers, yellow = so so, red = many bikers).
Recent comments