Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
This topic has been replied to here:
http://world.episerver.com//Forum/Pages/Thread.aspx?id=20422&epslanguage=en
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