在popUp窗口中打开popUp [英] open popUp inside a popUp window

查看:88
本文介绍了在popUp窗口中打开popUp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对此非常陌生,几乎没有时间使用JavaScript,但我知道我需要一些来制作功能性网站。我目前正在编写一个帮助台项目,我已经使用JavaScript中的window.open方法将Ticket页面设置为弹出窗口,因此票证可以是一个单独的页面,以便仍然使用帮助台。在选择客户并填充所有字段的故障单页面上,我有一个Dev Express Grid视图,用该客户票证历史记录填充自己。这就是问题所在,我在网格中添加了一个列,可以让人快速查看故障单问题和解决方案。我在我的测试页面上完成了这项工作,甚至在我的项目中的另一个网格上尝试了它,但它不能在故障单页面上工作,我怀疑这是因为它本身就是一个弹出页面。



票证页面使用以下方式打开:



Java -

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">











此页面打开后,客户被选中并且Dx网格填充,这里我补充说:



JavaScript(也通过id列):






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">
 
                  // This is for the pop up on the Customer ticket history
            function ShowDetailPopup(issues_id) {
                  popup.SetContentUrl('TicketViewFast.aspx?id=' + issues_id);
                  popup.Show();
            }
</script>







ASP




ASP

<dx:GridViewDataHyperLinkColumn FieldName="issues_id" ReadOnly="True" VisibleIndex="0">
     <PropertiesHyperLinkEdit NavigateUrlFormatString="javascript:ShowDetailPopup('{0}');"
                                            Text="View">
        </PropertiesHyperLinkEdit>
</dx:GridViewDataHyperLinkColumn>









两页都是粗略的有一个Dev express弹出控件。



有关为什么我不允许在其他弹出窗口中打开此弹出窗口的任何想法?





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?

推荐答案

我今天早上已经删除并重新设计了解决方案并且它正在运行,可能只是一个小错误或语法错误。当你不觉得自己真的做了什么以及它的工作因为你真的需要理解它时它很可怕,但是我会采取这个。这不再是问题。
i have erased and reworked the solution this morning and it is working, could have just been a minor error or grammatical. Its scary when you dont feel like you really did anything and its working because you really need to understand it, but this one i will take. This is no longer an issue.


这篇关于在popUp窗口中打开popUp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆