Once we get 1.0.2 out (hopefully soon) let's look at providing
some hooks for DOM replacement during AJAX, something
where you get called with something like:

 // Tellls you that oldDom is about to be replaced with newDom,
 // and lets you manipulate the dom, or return "true" to block
 // it or handle it all yourself
 function domReplaceNotify(oldDom, newDom)
 {
   ... see if oldDom contains the tree...
   ... if it does, copy scrollTop and scrollLeft into newDom
   // And let the system handle the move for you
   return false;
 }

-- Adam


On 7/24/07, Bertrand, Shawn R <[EMAIL PROTECTED]> wrote:

I've taken my tree component and added some CSS to enable a scroll bar
around it when it becomes large enough:



            inlineStyle="width: 200px; height: 400px; max-height: 400px;
overflow: auto; ….



This works well, but as I expand and collapse nodes in the tree, the scroll
position isn't maintained due to the component being thrown out and
reconstructed via PPR.  I wish there was an onscroll on the tree, as this
would give me the hook I need to save the position and I could restore it
via window.onload, but to no avail.



Does anyone have an idea how this might be done?



Thanks in advance,



Shawn Bertrand

Tyco Electronics


Reply via email to