发新话题
打印

怎么样新开一个窗口

怎么样新开一个窗口

Hi.

I'm working on a site that can be used for surweys.
I want to tell a user if he not have made an selection.

I try to open a Window, but nothing happens. When I make the call from a button, it works fine.

I have placed a vcl-window on my form, and maked it modal.
I can call the window from a button.

See my code here  :

************************************************
if ($selected == 0)
{
?>
Window1.show();
<?php
}
************************************************

TOP

引用:
原帖由 delphifans 于 2007-12-6 10:48 发表
Hi.

I'm working on a site that can be used for surweys.
I want to tell a user if he not have made an selection.

I try to open a Window, but nothing happens. When I make the call from a but ...
may be $selected variable is a not setted

if this variable setted other function

please use it
hidden value
努力为phpres做贡献
时刻准备着,当机会来临时你就成功了
打好基础,增加社会经验
资深技术工程师是我的梦想
承接各种团体网站外包服务和各种it技术培训
准备申请AJAX版大,希望大家支持~~

TOP

Tested. I have echoed stings to the form, that tells me the if statement is correct.

TOP

你试下window组件的show()和close()在你的环境里
复制内容到剪贴板
代码:
      function unit1AfterShow($sender, $params)
         {
         ?>
         <script language="javascript">
            window1.show();
            window1.close();
         </script>
         <?php
         }

TOP

发新话题