Revision history [back]

click to hide/show revision 1
initial version

asked 2014-05-29 14:34:14 +0800

elmetni gravatar image elmetni

Insert Jquery in ZK

hello i m working on a project using ZK what i need to do is pass a value from a label to a Jquery fonction to do a count down.

i need to use this plugin : www.jqueryscript.net/loading/Graphical-Circular-Timer-with-jQuery-CSS3-pietimer.html

i have tried to insert this plugin in ZK page but is not seems to work with me

i m kinda new in Jquery i didnt know how to passe a value to "timerSeconds" from a label . Can u help me pls?

Insert Jquery in ZK

hello i m working on a project using ZK what i need to do is pass a value from a label to a Jquery fonction to do a count down.

i need to use this plugin : www.jqueryscript.net/loading/Graphical-Circular-Timer-with-jQuery-CSS3-pietimer.html

i have tried to insert this plugin in ZK page but is not seems to work with me

i m kinda new in Jquery i didnt know how to passe a value to "timerSeconds" from a label . .

here what i have tried to do so far :

<?link href="http://www.jqueryscript.net/css/top.css" rel="stylesheet" type="text/css"?>
<?link rel="stylesheet" type="text/css" href="pietimer.css"?>

<zk>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.pietimer.js"></script>
<script type="text/javascript" defer="true">
<![CDATA[
    jq(function() {
        zk('#timer').pietimer({
          timerSeconds: 60,// i need to insert a label value instand of 60
          color: '#234',
          fill: false,
          showPercentage: true,
          callback: function() {

          }
      });
    });
    ]]>
  </script>
  <div id="timer" style="margin-top:100px;"></div>

</zk>

Can u help me pls?

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