0

oncancel problem with modal window

asked 2013-07-23 05:49:05 +0800

dsised gravatar image dsised
1 1

updated 2013-07-23 06:33:09 +0800

Hi,

Try this and just click Echap :

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="main" title="new page title" border="normal" onCancel='alert("onCancel Main")'>
New Content Here!

    <window id="zoneSaisieControleurSIALE" mode="modal" border="normal" title="modal" width="200px" 
        onCancel='alert("onCancel MODAL")'>
        Press echap

        <textbox></textbox> 

    </window>

</window>
</zk>

You'll see this message : onCancel MODAL : It's OK

Now, try this (just remove textbox tag) :

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="main" title="new page title" border="normal" onCancel='alert("onCancel Main")'>
New Content Here!

    <window id="zoneSaisieControleurSIALE" mode="modal" border="normal" title="modal" width="200px" 
        onCancel='alert("onCancel MODAL")'>
        Press echap

    </window>

</window>
</zk>

You'll see this message : onCancel Main : ?????? Why no onCancel MODAL ??

You can try this too (disable the textbox:

<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="main" title="new page title" border="normal" onCancel='alert("onCancel Main")'>
New Content Here!

    <window id="zoneSaisieControleurSIALE" mode="modal" border="normal" title="modal" width="200px" 
        onCancel='alert("onCancel MODAL")'>
        Press echap

        <textbox disabled="true"></textbox> 

    </window>

</window>
</zk>

You'll see this message : onCancel Main : ?????? Why no onCancel MODAL ??

So, what can I do to have onCancel Event in the right window all the time ? Thank you.

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-07-23 05:49:05 +0800

Seen: 23 times

Last updated: Jul 23 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More