giancarlo.dimassa.net A web programmer's blog

2Jul/070

Optimize pages for search engines with dynamic CSS/javascript HTML building (how to make your own lightbox working example!)

CSS, DHTML and Javascript work really good together. In fact, I tend to use the combination to replace Flash whenever it's appropriate (usually, most of the time!).
Javascript 'building' is a technique where you dynamically add original nodes to your DOM, usually based on existing content.
Speaking in (sort of) plain english, this means you can create a slideshow from an unordered list, a tabbed or sliding control set from a group of divs, an image viewer from a link (everyone now knows Lightbox v2 by Lokesh Dhakar).

2Jul/072

Javascript Programming using Firebug

Part of creative process during web programming and design involves streamlining and optimizing the workflow.
That means trying to make things done faster, in less time.
One tool I find really valuable is Firebug.
Download and install this javascript console and debugger for Firefox, and a new icon appears in the lower side corner of the browser.
In fact, Firebug is usually deactivated, until you click this icon and tell it to start to process the website you are seeing (you can also tell it to stay in an always active mode, but this burns cpu cycles pretty fast).
If Firebug is active, it's capable of making you peek under the hood of the live page you are seeing, showing precisely what you want to know about the engine running. This means less trials and errors.

2Jul/0713

How to find the right point in Google Maps (longitude and latitude)

Have you ever used the Google Maps API and found out that you don't really know the right position where to place the markers? As you know, to do so requires entering in javascript the exact marker's coordinates, so you go in a trial-and-error loop to try to correct the numbers until you find the right spot, browse for various so called google maps builders hoping that one of them actually gives you the coordinates you need to nail the right place, or modify your code so that outputs in some way the coordinates, find the marker's position, jot it down, then restore the old script and add the numbers.

Community

Already a member?
Login
Login using Facebook:
Last visitors
view more...
Powered by Facebook

Tags