November Happy Hour will be moved to Thursday December 5th.

PageBrowser.aspx popup dialog in button click event in view mode

Vote:
 

A page in view mode has a text box and a button. On button click we would like to bring the

/edit/pagebrowser.aspx  Dialog popup. When a page is selected in the Page Browser  the page

will be populated in the text box on the page in view mode.

We are able to bring the PageBrowser popup, but the select button does not function.

 


<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head1" runat="server">
    <title>FIFABlankPage</title>

    <script language="javascript" type="text/javascript">
    function OpenGetPageDialog()
    {  
        document.getElementById('PageAddValue').value = "";
        document.getElementById('PageAddText').value = "";

        EPi.CreatePageBrowserDialog('<%=

EPiServer.UriSupport.ResolveUrlFromUIBySettings("edit/pagebrowser.aspx")

%>','','False','False','PageAddText','PageAddValue','en', PageDialogClosed);
    }
   
    function PageDialogClosed(returnValue, callbackArguments) {
        if (document.getElementById('PageAddValue').value.length > 0) {
            // document.getElementById('PageAddValue') contains the PageId
            AddPage(document.getElementById('PageAddText').value,

document.getElementById('PageAddValue').value);       
        }
    }
    </script>
</head>
<body>
    <form runat="server" id="form1">
    <div>
    <asp:TextBox runat="server" ID="PageAddText"></asp:TextBox>
    <asp:TextBox runat="server" ID="PageAddValue"></asp:TextBox>
    <asp:Button runat="server" ID="btnBrowse" Text="Browse"

OnClientClick="OpenGetPageDialog()" />
    </div>
    </form>
</body>
</html>


I am able to view the pagebrowser but when I select a page it is not returning the selected

page to the 'PageAddText' textbox

#20423
May 28, 2008 14:47
Vote:
 
#20500
Jun 03, 2008 8:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.