Skip to main content
hello js gurus...

trying to use the standard skuid in-Line js syntax:


(function(skuid){ var $ = skuid.$; $(document.body).one('pageload',function(){ var myModel = skuid.model.getModel('MyModelId'); var myComponent = skuid.component.getById('MyComponentUniqueId'); }); })(skuid);

to work with this windows on load js sytax:


window.onload = function() { var display = document.querySelector('#time'), timer = new CountDownTimer(15500); timer.onTick(format).onTick(restart).start(); function restart() { if (this.expired()) { setTimeout(function() { timer.start(); }, 1000); } } function format(minutes, seconds) { minutes = minutes < 10 ? "0" + minutes : minutes; seconds = seconds < 10 ? "0" + seconds : seconds; display.textContent = minutes + ':' + seconds; } };

Here is my jsfiddle: https://jsfiddle.net/rogers0000/wzkz3tg1/


<script async src="//jsfiddle.net/rogers0000/wzkz3tg1/1/embed/js,html,css,result/dark/"></script>

I’m trying to envoke this from a popup button.


I’m guessing my ModelId is: Opportunity


myComponentUniqueID = sk-3tB0qt-522


I’ve tried to mesh the skuid js syntax with my syntax, but keep getting errors.


Any help on what my js syntax should be setup, is much appreciated.


thank you in advance!

Be the first to reply!

Reply