I am really new to this and almost have no time with JavaScript but i have learned I need some to make a functional website. I am currently writing a help desk project and i have made the Ticket page a popup using the window.open method in JavaScript so the ticket could be a separated page in order to still utilize the help desk. On the ticket page when a customer is chosen and all fields are populated I have a Dev Express Grid view That populates itself with that customers ticket history. Here in lies the issue, I added column to the grid that would able a person to have a quick view of the ticket issue and solution. I made this work on my test page and even tried it on another grid in my project but it will not work on the ticket page and I suspect this is due to it being a popup page itself.
The ticket page is opened using:
Java-
<script type="text/javascript">
function popUp0(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1050,height=650,left = 710,top = 290');");
}
</script>
ASP - i am using a button:
<dx:ASPxButton ID="ASPxButton1" runat="server" CssClass="btnheader"
EnableDefaultAppearance="False"
PostBackUrl="javascript:popUp1('Http://yadayada.aspx')"
Text="New Ticket">
Once this page is open the customer is chosen and the Dx grid is filled, here i added:
JavaScript ( also passing the id column):
<script type="text/javascript">
function ShowDetailPopup(issues_id) {
popup.SetContentUrl('TicketViewFast.aspx?id=' + issues_id);
popup.Show();
}
</script>
ASP
<dx:GridViewDataHyperLinkColumn FieldName="issues_id" ReadOnly="True" VisibleIndex="0">
<PropertiesHyperLinkEdit NavigateUrlFormatString="javascript:ShowDetailPopup('{0}');"
Text="View">
</PropertiesHyperLinkEdit>
</dx:GridViewDataHyperLinkColumn>
And of coarse on both pages I have a Dev express popup control.
Any thoughts of why i am not allowed to open this popup in the other popup?