隐藏/显示Ajax云BalloonBopupExtender [英] Hide/Show ajax cloud BalloonPopupExtender

查看:99
本文介绍了隐藏/显示Ajax云BalloonBopupExtender的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文本框中使用BalloonPopupExtender以便说:未知输入" 因为它是唯一允许我拥有一个面板的面板,可以在其中插入我想要的任何控件.

I'm using the BalloonPopupExtender on a text box in order to say : "Unknown input" because its the only one that allows me to have a panel in which i can insert whatever controls i want.

我希望通过按钮显示来显示它,并希望在文本框中更改文本来隐藏它. 我注意到没有BalloonPopupExtender的可见性属性,只有DisplayOnFocus,DisplayOnClick ....属性.但无法通过其他按钮或功能对其进行控制.

i want from a button push to show it and from a text change in the textbox to hide it. i noticed there is no visibility property for BalloonPopupExtender, only the DisplayOnFocus, DisplayOnClick.... properties. but no way to control it from another button or function.

我如何隐藏/显示BalloonPopupExtender?

how can i hide/show the BalloonPopupExtender?

推荐答案

好,我找到了答案:

在我写的JavaScript中:

in the javascript i wrote :

var ctrl = $find('PopupCnt'); 

event.cancelBubble = true;

event.cancelBubble = true;

    if (ctrl._popupVisible == true) 
        ctrl.hidePopup(); 
    else 
        ctrl.showPopup();  

"event.cancelBubble = true"行完成了该操作.

the 'event.cancelBubble = true' row did the thing.

还有另一件事-我按了引起回发的按钮,所以即使弹出窗口显示它会在新页面启动时重置,所以看起来好像不起作用.我刚刚创建了一个没有回发的按钮,它起作用了.

and another thing - i was pushing a button that caused a postback so even if the popup showed it would reset when the new page is up so it looked like it didn't work. i just created a button with no postback and it worked.

这篇关于隐藏/显示Ajax云BalloonBopupExtender的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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