0

Div or group box appears for several seconds and disappears [closed]

asked 2013-04-16 10:59:07 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2615 3 8
http://emrpms.blogspot.in...

Any idea or example for the above subject.

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by Senthilchettyin
close date 2013-06-21 04:22:41

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-20 10:24:15 +0800

benbai gravatar image benbai
2228 6
http://www.zkoss.org

Use javascript:

<zk>
    <button label="show first">
        <attribute name="onClick"><![CDATA[
            String cmd = "var n = zk.Widget.$('$first').$n();\n"
                        +"jq(n).fadeIn();\n"
                        +"setTimeout(function () {jq(n).fadeOut();}, 3000)";
            Clients.evalJavaScript(cmd);
        ]]></attribute>
    </button>
    <div id="first" width="500px" height="500px"
        style="display: none; background-color: #ccc;">first</div>
</zk>
link publish delete flag offensive edit

Comments

Thank you benbai. And alo, i am just looking for ZM MVVM combox autocomplete (all examples have only with strings, not with java entities) http://forum.zkoss.org/question/60575/databinding-and-auto-complete-on-combobox/

Senthilchettyin ( 2013-06-21 04:22:28 +0800 )edit

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-04-16 10:59:07 +0800

Seen: 15 times

Last updated: Jun 20 '13

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