Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason Evans 50 posts 71 karma points
    Feb 13, 2013 @ 14:31
    Jason Evans
    0

    Correct way to sync the content tree consistently in different browsers.

    As a follw up to my previous question:

    How to programmatically change content tree area.

    I need to know the correct way to sync the content tree, so that the position is updated to the currently edited item. The background of my scenario is this; a user clicks an "Edit Item" link in a custom web page I've written. That click event does the following:

    - Changes the content frame url to the "editContent.aspx" page, so that the user is shown the edit page.
    - The code behind makes a JavaScript call that executes the following:

       <script type="text/javascript">
            function changeTreeView(path) {
                window.parent.appClick.call(this, 'content');
                window.parent.UmbClientMgr.mainTree().syncTree(path, true);
            }
        </script>

    Although the call to "appClick" works fine, the call to "syncTree" only works in Firefox. In other browsers such as IE7, 8, 9 and Chrome, the only thing that works in the tree is changed to the "Content" view. However neither the edit page, nor the syncing of the node position work in those browsers.

    Can someone confirm that I'm attempting the sync the tree in the correct way, or whether I am doing something wrong?

Please Sign in or register to post replies

Write your reply to:

Draft