Quantcast
Viewing latest article 5
Browse Latest Browse All 101

Programmaticly switching Pages and accessing layers: JSF Script

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


Viewing latest article 5
Browse Latest Browse All 101

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>