Onpage tag not working

tommody 8 years ago updated by icahill (Administrator) 8 years ago 5
While practicing on your PDF tutorials with the new iPad I can not get the panel to display only on page 2 using the on page tag. It still displays on all pages and I've lifted the code directly from the tutorial as below.
Are you certain that you have snapshotted your changes before saving and viewing in fusebox?

I just pulled the wire directly from the tutorial and into an App and it seems to work fine for me.

please leave a snippet of your code on this subject using < code > < /code > brackets around it.

Thank you.
yes I've snapshotted the changes and even changed the color of the panel to make sure it was updating properly. The code was written using your editor on an iMac 10.7.4 and then viewed in fusebox on the retina display iPad where the panel is still on all pages of the pdf

<pdf name="constitution" source="constitution_pdf.pdf" height="100%" width="100%" spreads="yes" covertile="no" tile="yes"></pdf>
<panel name="panel" width="150" height="100" align="center" valign="center" background="#ff0000" onpage="2" >
<text name="main" width="110" height="100" color="#000000" font="courier" size="14" align="center" valign="center" text="Hello World!"></text>


It looks like your problem stems from your panel living outside of your pdf tag. If you want onpage to work, your panel needs to be a child of the pdf.
perfect- thank you. I'm sure it won't be the last coding oversight I have