bookmarks in dropdownlist

  •  07-19-2006, 11:08 AM

    bookmarks in dropdownlist

     
    I would like to open a popup window from the editor toolbar which displays a list of bookmarks from the current editor.
    See picture:
     
    Thank you for the reply to my previous post.
     
    Unfortunately I am not able to use the solution you offered - due to the way that the website I am working on is meant to function.
    I have been trying this code inside the popup window, but not had success yet.
     
    function anchorOptions()
    {
    var Editor1 = window.opener.document.getElementById('CE_ctl00_maincontent_Editor1_ID');
    var count;
    for(count = 0; count < Editor1 .anchors.length; count++){
    var oAnchor = Editor1 .anchors[count];
    document.write("<option value=' + oAnchor.name + '>" + oAnchor.name + "</option>");

    }
    }
     
     
    <select name="hash_2">
    <option value="top">Top of page</option>
    <script type="text/javascript">
    anchorOptions();
    </script>
    </select>

    Any suggestions?

    Thank you.
     
View Complete Thread