0

combination serverSide with clientSide

asked 2010-02-12 04:37:13 +0800

JoinPiro gravatar image JoinPiro
9

updated 2010-02-12 04:38:29 +0800

hai ... some body know how to combination running in serverSide with running in clientSide, i have problem to make messagebox used zkoss , cause messageBox with zkoss can running in serverSide but my application to running in clientSide.... i need help.
example code :

<button label="Cancel" >
                <attribute name="onClick">
                   if (Messagebox.show("Question is pressed. Are you sure?", "Question", Messagebox.OK | Messagebox.CANCEL, Messagebox.QUESTION) == Messagebox.OK) {
                               $('#newCOA').dialog('close');
                          }
               
                </attribute>
                </button>

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2010-02-12 09:38:03 +0800

kesavkolla gravatar image kesavkolla
180 3

The event handler onClick actually gets executed at server side. If you want pure client side thing you need to attach client side event handler.

<button label="Cancel">
    <attribute w:name="onClick">
        jq.alert("Question is pressed.  Are you sure?", {title: "Question", mode: "modal", OK: function() {$("#newCOA").dialog('close');}, CANCEL:true}); 
    </attribute>

For more information about the jq.alert refer to doc here

HTH

link publish delete flag offensive edit

answered 2010-02-12 10:10:43 +0800

JoinPiro gravatar image JoinPiro
9

hi kesavkolla . thank you for your attention.

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2010-02-12 04:37:13 +0800

Seen: 221 times

Last updated: Feb 12 '10

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