var oPagesCollection=[];//object having url for all pages under root site and sub site getPage("") $.ajax({ url: _spPa...