All Activity
- Past hour
-
Hi, @Hayri ASLAN was able to reproduce the issue using the above test case. It means that we can implement a solution / work around soon. Thanks
-
А если в общем случае, экспортировать в JPEG все что видно в окне UniUrlFrame?
- Today
-
Get the height of the grid area and the height of each line.
Sherzod replied to Alexandre Storti's topic in General
This post may help you to analyze and use the code (you may also need to modify the code for your need): -
Thank you, that worked. I have placed my order to renew
-
You need to check for the seconds variable. Well, this is wrong of course, follow the sequence of parameters.
-
display the time in UniLabel (client side)
eduardosuruagy replied to gerardocrisci's topic in General
'' + Self.Name+'.timer = Ext.TaskManager.start({ ' + ' run: function() { ' + ' var date = new Date(null); ' + ' date.setSeconds(--' + Self.Name + '.seconds); ' + ' var timeString = date.toISOString().substr(11, 8); ' + ' '+ ' '+Self.Name+'.UniLabelTimer.setHtml(''<i class="far fa-clock"></i> Tempo: '' + timeString); ' + ' '+ ' if (timeString == "00:00:00") { '+ ' ajaxRequest("stopTime"); '+ ' Ext.TaskManager.stop(' + Self.Name + '.timer); '+ ' }; '+ ' '+ ' }, ' + ' interval: 1000 ' + '});'; This way the timer stops, but I don't receive the stopTime event -
display the time in UniLabel (client side)
eduardosuruagy replied to gerardocrisci's topic in General
Would the code look like this? JSCODE := Self.Name + '.seconds = 60; ' + '' + Self.Name+'.timer = Ext.TaskManager.start({ ' + ' run: function() { ' + ' var date = new Date(null); ' + ' date.setSeconds(--' + Self.Name + '.seconds); ' + ' var timeString = date.toISOString().substr(11, 8); ' + ' if (timeString == ''0'') { '+ ' Ext.TaskManager.stop(' + Self.Name + '.timer); '+ ' ajaxRequest(''stopTime''); '+ ' }; '+ ' '+ ' '+Self.Name+'.UniLabelTimer.setHtml(''<i class="far fa-clock"></i> Tempo: '' + timeString); ' + ' }, ' + ' interval: 1000 ' + '});'; UniSession.JSCode(JSCODE); -
Well, inside the run function: if (condition that seconds is equal to or less than zero...) { Ext.TaskManager.stop(' + Self.Name + '.timer); //I think you should also stop the timer ajaxRequest(...); //There may be other codes as well }
-
display the time in UniLabel (client side)
eduardosuruagy replied to gerardocrisci's topic in General
Yes and when it reaches zero I would like to execute an event or show a message to the user -
Are you using a minute countdown?
-
Hi @Woutero Thank you! Have you tried through the customer portal?
-
Hi Sherzod I ‘m very happy with uniGUI and would like to renew my uniGUI Complete - Professional Edition license. On your web-site it says that the price for renewal is around 60% of original price, but I cannot find a link where to renew?
-
display the time in UniLabel (client side)
eduardosuruagy replied to gerardocrisci's topic in General
Sorry, I couldn't do it. I wanted to execute a command when the timer reaches zero, how can I catch this event and execute the command? -
You can test this for zero:
-
display the time in UniLabel (client side)
eduardosuruagy replied to gerardocrisci's topic in General
JSCODE := Self.Name + '.seconds = 60; ' + '' + Self.Name+'.timer = Ext.TaskManager.start({ ' + ' run: function() { ' + ' var date = new Date(null); ' + ' date.setSeconds(--' + Self.Name + '.seconds); ' + ' var timeString = date.toISOString().substr(11, 8); ' + ' '+Self.Name+'.UniLabelTimer.setHtml(''<i class="far fa-clock"></i> Tempo: '' + timeString); ' + ' }, ' + ' interval: 1000 ' + '});'; -
Well, In what manner?
-
display the time in UniLabel (client side)
eduardosuruagy replied to gerardocrisci's topic in General
Great job, I managed to do the countdown, but how do you know when the timer reaches zero? -
Hello, This post may help you:
-
You can modify the code for the countdown.
-
TrayClock (on the client side) - Components and Code Samples - uniGUI Discussion Forums