Well, I said 'might'. Upon closer examination I see that:
HTML Code:
<div id="apDiv1" class="SlidingPanels" spry:region="dsadult">
which is the declared element of:
Code:
var sp1 = new Spry.Widget.SlidingPanels("apDiv1");
doesn't arrive until the the secondary page arrives, so declaring it and/or initializing it on the primary will do no good unless you wait until after the secondary has arrived.
Now, this evalScripts: true, if it worked as one might hope, should take care of all that. But something like that is often not comprehensive. Check your Spry documentation for what situations it is intended for, and how complex of a script evaluation it can do.
Also, even if it does work, the script it is calling must be on the primary.
If you have all that, you might try (on the secondary):
Code:
<div id="thmpagecontainer" onmouseover="if (typeof sp1 === 'undefined'){
sp1 = new Spry.Widget.SlidingPanels('apDiv1');
Spry.Data.initRegions();
};">
<div id="thmpagedivL"></div>
<div id="thmpagedivM">
<span class="thmpage">Page: </span>
<a class="thmpagelink" href="#" onclick="sp1.showPanel('p0'); return false;">1</a>
<a class="thmpagelink" href="#" onclick="sp1.showPanel('p3'); return false;">2</a>
<a class="thmpagelink" href="#" onclick="sp1.showPanel('p6'); return false;">3</a>
<a class="thmpagelink" href="#" onclick="sp1.showPanel('p9'); return false;">4</a>
</div>
<div id="thmpagedivR"></div>
</div>
Bookmarks