在弹出表单中使用控件 [英] Working with controls inside a pop-up form

查看:78
本文介绍了在弹出表单中使用控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用JavaScript代码从我的父网页打开一个新的弹出网页.我在弹出页面上有一个图像按钮.我已经编写了要在图片按钮的click事件上执行的代码.但是,每次我单击图像按钮时,它仅在打开同一页面的新窗口后才执行代码.这种性质是否会以弹出形式显示给任何控件?

如何在不打开新窗口的情况下在同一页面(弹出表单)上执行click事件?

非常感谢!
S

Hi,

Iam using javascript code to open a new popup web page from my parent web page. I have an image button on the popup page. I have written code in to execute on the image button''s click event. However every time I click on the image button it executes the code only after opening a new window of the same page. Is this a nature shown for any control in a pop-up form?

How can I make it to execute the click event on the same page(popup form) without opening a new window?

Many thanks!
S

推荐答案

这听起来可能是模态对话框的一个问题(您使用的是一个吗?),您无法在模态对话框中回发页面.

解决方法是使用一个通用弹出窗口,该窗口包含一个iframe,然后该iframe包含实际的弹出窗口.然后,iframe可以自由发回自身,而无需打开新窗口.
This sounds like it could be an issue with modal dialogs (are you using one?) where you cant post back the page in the modal dialog.

The workaround is to have a generic popup window that contains an iframe that then contains the actual popup. The iframe is then free to postback to itself without opening a new window.


这篇关于在弹出表单中使用控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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