You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Adam Winer (JIRA)" <de...@myfaces.apache.org> on 2007/08/22 07:32:30 UTC
[jira] Commented: (TRINIDAD-129) AJAX hook for detecting DOM
replacement
[ https://issues.apache.org/jira/browse/TRINIDAD-129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521685 ]
Adam Winer commented on TRINIDAD-129:
-------------------------------------
Have checked in an addDomReplaceListener() method that is called after dom replacement happens, and passes the old and new DOM objects. Asking user list for feedback before closing this issue.
> AJAX hook for detecting DOM replacement
> ---------------------------------------
>
> Key: TRINIDAD-129
> URL: https://issues.apache.org/jira/browse/TRINIDAD-129
> Project: MyFaces Trinidad
> Issue Type: New Feature
> Affects Versions: 1.0.2-core
> Reporter: Adam Winer
> Assignee: Adam Winer
>
> 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;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.