I want to programmically switch Pages and then access the layers for that Page. But, I find that the dom.layers object doesn't get updated when I call changeCurrentPage
fw.getDocumentDOM().changeCurrentPage(0)
var layersArray = dom.layers;
alert(layersArray[0].name) // This shows the first layer of the previous Page
I could see some value in not updating the dom.layers - for example, if I wanted to refer to the layers on the previous page and copy them. But, in my case, I want to operate on the layers associated with the Page that I switch to.
John laPlante
jelaplan at yahoo