estrify
-
Posts
454 -
Joined
-
Last visited
-
Days Won
14
Content Type
Profiles
Forums
Events
Posts posted by estrify
-
-
One alternative: put a standard timer in the ServerModule to check periodically something, i.e.:
- a global variable, that you can set through an admin form you might have to adminsitrate your application
- monitorize the presence of a flag file
- etc.
When you decide to stop the server monitoring variable/file/protocol/etc., simply execute Application.Terminate...
Hope it helps...
Regards,
-
Look at URLParameters demo (data sent with POST method works similar)...
Regards,
-
Hi,
Don't know why but we have found that a simple Sleep(500) at the beginning on each menu item's onclick event, makes TUniMainMenu work as expected. In our case, problems were showing message dialogs within menu itme's onclick event... Those problems we only have them with Internet Explorer.
Please, try.
Regards,
-
Hi,
This is a sample of the easiest way to use under UniGUI the notification utility developed by http://www.eirik.net/Ext/ux/window/Notification.html .It also uses the alwaysOnTop feature (http://forums.unigui.com/index.php?/topic/3027-simple-tip-alwaysontop-feature-for-windows-and-forms/) to ensure that the notification is always visible and do not disappear behind any form...
Regards,
- 4
-
-
No way?... Then, Mr. Farshad, please, could you move this post to Feature Requests??... Thx.
-
Hi,
Please, try this... It will not resolve the problem, but at least, the restart page will be shown at most only once to the user for each session (in our case, that page entered in a loop always showing the restart page to the user indefinitely): modify UniServerModule->ServerMessages->TerminateTemplate with the following:
- Add a simple function to generate random text like following:
<script language="javascript" type="text/javascript">
function randomString(){var sChars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
var iStringLength=32;
var sRandom="";
for (var i=0; i<iStringLength; i++){var iRNum=Math.floor(Math.random()*sChars.length);
sRandom+=sChars.substring(iRNum, iRNum+1);}
return(sRandom);}
</script>- Comment or delete standard anchor given:
<!--<p style="text-align:center;color:#A05050"><a href="[###url###]">Restart application</a></p>-->
- and replace it with a simple dummy form:
<form action="[###url###]" method="post"><input type="hidden" name="dummy" value=""></form>
<p style="text-align:center;color:#0000FF">
<a style="cursor: pointer" OnClick="document.forms[0].dummy.value=randomString();document.forms[0].submit();">
<u>Restart application</u></a></p>Hope it could help.
Regards,
-
Hi,
Is there a way to obtain the total of bytes sent and received by a session?
TIA
-
Thank you... I write it directly... Next time it will be better a copy&paste...
-
Hi,
Don't use
function OnBeforerender(sender)
{
sender.emptyText='text to display when the field is empty';
}
instead, use this UniEvent
function OnBeforeInit(Sender)
{
Ext.Apply(sender, { emptyText: 'text to display when the field is empty' });
}This will avoid in IE bugs like one reported in http://forums.unigui.com/index.php?/topic/3036-problem-with-unicombobox-to-show-selection/
Regards,
- 1
-
Issue is already logged as #1315. I will try to implement it in next version.
Hi Farshad,
If it is possible, please try to fuss over this issue.
Thanks and regards,
-
-
Hi,
To detect window movement, take a look to OnMove event within client events, launch an ajaxRequest inside the event (JS) and capture it with an OnAjaxEvent (Delphi)... If you want the form always on top, try http://forums.unigui.com/index.php?/topic/3027-simple-tip-alwaysontop-feature-for-windows-and-forms/
Hope this could help..
Regards,
-
Hi,
It would be interesting to have this feature directly integrated within UniGUI. Please see: http://forums.unigui.com/index.php?/topic/3206-simple-tip-tools-usage-demo/
Regards,
-
Hi,
This is a sample of how to use tool buttons in form's title.
Regards,
- 3
-
This is default behavior of Ext JS and not a bug.
I move this to Feature Requests forum.
Ok... Thanks...
-
So when OnChange event actually should be fired?
I think it should be lauched when the complete change has effect (tipically, when looses focus and maybe when enter key is pressed).
The current operation is practically equivalent to onkeyXXX events.
Regards,
- 1
-
I tried to create another project using this workaround for AlwaysOnTop, but I failed.
Here is what I did:
- Copy-Paste AlwaysOnTop.js in the project root
- ServerModule->CustomFiles="AlwaysOnTop.js"
- Form->TUniClientEvents->ExtEvents->OnBeforerender :
function window.OnBeforerender(sender) { Ext.apply(sender, { alwaysOnTop: true }); }
Unfortunately, this was not enough the form shows as a regular form. I've also tried to put the full path to AlwaysOnTop.js under ServerModule.CustomFiles: nothing changes.
What am I missing here?
I think that was all... It could be the following: be sure that you are writing code within OnBeforerender of Ext.Window, not of Ext.form.FormPanel...
-
Title: UniEdit's and UniMemo's OnChange event fire as they are onkey events
Description:
Within UniEdit and UniMemo, OnChange event is fired in the server practically with each keystroke, what is strongly discouraged in a web application.
Development Environment:
Delphi 2010 w. UniGUI 0.93.0.996
Browser
FF and IE
Steps to reproduce:
See test case
Test case:
20130514_UniEdit_and_UniMemo_OnChange_Event_Seems_OnKey.rar
- 1
-
Go to panel's ClientEvent -> UniEvents -> OnBeforeInit and add the following:
function OnBeforeInit(sender)
{
Ext.apply(sender, {
style: 'opacity: 0.5;'
});
}
Regards,
- 1
-
Please, refer to http://forums.unigui.com/index.php?/topic/3146-simple-tip-clearbutton-plugin/
Regards,
-
Hi,
This is a sample of how to include a Clear Button in text fields using as a base the ClearButton plugin developed by fit4dev (http://www.eekboom.de/ClearButton.html).
To see it running, move mouse over a field. If the field is not empty, a clear button will appear at the rightmost of it. If you click the button, the field will be cleared and an ajax request will be generated.
Regards,
- 5
-
-
function OnBeforeInit(sender){sender.plugins=Ext.create('Ext.ux.form.field.MyPlugin');}
There are very good people in this forum ... Thank you very much ...
Need Help when reopen Application again terminated aplication (amazon+apache2) why?
in General
Posted
Please, take a look to http://forums.unigui.com/index.php?/topic/3261-random-problem-web-session-terminated-with-a-new-session/?p=15130
Regards,