Thursday, May 22, 2008

Google Maps API for Flash Developer

A great new for flash/flex/actionscript developer. Now, Google just released an map API version for flash developer. It is cool.

Have a look at:
http://code.google.com/apis/maps/documentation/flash/intro.html
http://code.google.com/apis/maps/documentation/flash/reference.html

Monday, May 12, 2008

Detecting whether the element exists in the browser if we have the reference of that element

Suppose you have a reference to an element and you want to make sure this element does exists on the browser document. You can detect this by checking the parentNode property of that element.


var div = document.createElement("div");
div.innerHTML = "demo";
document.body.appendChild(div);
alert(div.parentNode); //body element

document.body.removeChild(div);
alert(div.parentNode); //null

Subscribe in a Reader