when dojo 1.7 and AMD style is adopted, examples on arcgis website may not work directly. this post mark some changes
1: dojo.connect --> dojo/on
events name might be changed from "onXXX" to "xxx"
for example: map onLoad event is changed to load , now we use
on(mapobj, "load", function(evt) {}); instead of dojo.connect(mapobj, "onLoad", function(evt){});