-
1. Re: Spry region does not always render within a HTML Panel
Ben Pleysier Oct 17, 2010 3:39 PM (in response to Phil_W)Phil,
It sounds like the Spry Region does not have enough time to execute before it is being rendred. I do not have enough experience with HTM-panels to give a direct solution, but to me, there is a need to place an observer to ensure that the data has been processed.
I am probably showing you familiar territory, but here goes http://labs.adobe.com/technologies/spry/articles/data_api/apis/html_panel.html
Cheers
-
2. Re: Spry region does not always render within a HTML Panel
Phil_W Oct 21, 2010 10:48 AM (in response to Ben Pleysier)Hi,
Dug into it a bit more and found the problem.
The Spry code to initalise data regions is triggered on the docuement load event. My HTML is loaded after that event (most of the time) so the Spry regions on it never get initalised / rendered.
So my solution was to put an observer on the HTML panel and then to trigger the initialise event for the SPRY regions within that panel - see below. Thanks for your thoughts they sent me off on the right track.
var profileHTML = new Spry.Widget.HTMLPanel("userProfile");
// Add an object as an observer of the panel.
var obsPanel = new Object;
obsPanel.onPostUpdate = function(notifier, data)
{
,,,,,,,,,
Spry.Data.initRegions('userProfile');......
};
profileHTML.addObserver(obsPanel);Cheers
Phil
-
3. Re: Spry region does not always render within a HTML Panel
Ben Pleysier Oct 21, 2010 2:21 PM (in response to Phil_W)Thank you for your feedback.
Ben



