This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Apr 5, 2013, 1:00 AM
90 Posts

dojoModule dojox.timing -- how to get it to kick in?

  • Category: Other Domino Designer Tooling
  • Platform: All
  • Release: 8.5.3
  • Role: Developer
  • Tags: Dojo
  • Replies: 1
 
 Is there anything special I have to load or do to make this dojox.timing available / kick in?
 

<xp:dojoModule

name="dojox.timing"></xp:dojoModule>

</xp:this.resources>

 
Paul suggested it to me in this thread: http://www-10.lotus.com/ldd/xpagesforum.nsf/topicThread.xsp?documentId=B5ECAEC50241A3EE85257B32008248FC&action=openDocument


I have dojo stuff turned on in the xpage:

<xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xc="http://www.ibm.com/xsp/custom" pageTitle="Report" dojoParseOnLoad="true" dojoForm="true" dojoTheme="true">   
Apr 5, 2013, 1:38 PM
366 Posts
Re: dojoModule dojox.timing -- how to get it to kick in?
 You need to add the Timer and create function.  Here is the complete xpage source for simple implimentation


<?xml version="1.0" encoding="UTF-8"?>

<xp:view

xmlns:xp="http://www.ibm.com/xsp/core"

dojoParseOnLoad="true"

dojoTheme="true">

<xp:this.resources>

<xp:dojoModule

name="dojox.timing"></xp:dojoModule>

</xp:this.resources>

this demonstrates the dojox timer<xp:br></xp:br><xp:br></xp:br><xp:br></xp:br>

<xp:eventHandler

event="onClientLoad"

submit="false">

<xp:this.script><![CDATA[t = new dojox.timing.Timer(1000);

t.onTick = function() {

 console.info("One second elapsed");

}

t.onStart = function() {

 console.info("Starting timer");

}

t.start();]]></xp:this.script>

</xp:eventHandler>writes status to JS console every second</xp:view> 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal