Depending on the size of the content in your accordions panes the default settings can result in content being longer than the available space and thus causing a scrollbar to be added. To avoid this try the following settings.
$j("#accordion").accordion({
'fillSpace': true,
'clearStyle': true
});
written by objects
\\ tags: accordion, clearStyle, fillSpace, scrollbar
Sometimes we need to get the latitude and longitude of a point in Google Maps but Maps does not display them, so how do we get them?
Turns out its pretty simple. First centre your map on the point of interest, then type the following javascript into the location bar of your browser and hit return (this will execute the javascript code).
javascript:void(prompt('lat,long',gApplication.getMap().getCenter()));
You should get a popup displaying the latitude and longitude of the centre of the map.
We find this particularly useful when adding maps to web sites and we need finer control over centering the map, or adding markers.
written by objects
\\ tags: coordinates, google maps, latitude, longitude
Writing to the Firebug console can be done using
console.log("Hello World");
As well as a log() method there are also debug(), info(), warn() and error() methods which the log message gets suitably color coded in the Firebug console.
The methods all support printf style formatting
console.log("Received %d messages", messageCount);
written by objects
\\ tags: console, debug, firebug, logging