markokas
-
Posts
86 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Events
Posts posted by markokas
-
-
18 hours ago, CiceroBillo said:
Why not use ClipBoard?
Beacuse, clipboard is on server side - VCL way.
You are on Client side - browser, only with JS could be possible.
Br, Marko
-
Hi all,
Anybody solved problem of SEO optimization. I know for difficulties with SPA applications.
For web-shop app is crucial description, keywords and permanent links/responses for Google crawler.
Navigation should not make new instance but only navigate existing session, and changing URL (browser buttons, mixed links in WP content).
Maybe somebody use pushState ?
What is right step to do this.
Best regards,
Marko
-
Hi all,
Any idea how to solve this issue.
I would like to use UnimMap and Scroll bottom panel. On Android and Windows is no problem, it works fine.
Problem is on Apple IOS. UnimMap by default not work on touch.
If put this code on MainmForm.Clientevents - WindowShow also unimMap IOS start responding on touch.
document.addEventListener('touchmove', function(e) { e.preventDefault(); }, {passive:false});
But scroller stop working.
So I do not have any idea how to make that Map and scrollers will works both on IOS.
Thanks for nay ideas ..
Regards,
Marko
Unigui 1.90.0.1555, X11
-
Hi,
I think this way will be fine:
frxRep.Variables['Title'] := ''''+Title+'''';
br, Marko
-
Hi all,
With following code changed Form window.
I would like to change also Close button color from white to black.
Any idea how to solve this issue?
Thanks in advance.
Marko
Delphi 10.3 rio, UniGui: 1.90.0.1550
with Fstate.WebForm.JSInterface do begin JSAddListener('afterrender', JSFunction('sender','var me=sender; '+ 'me.header.el.setStyle({"background-color": "silver"}); '+ 'me.header.el.setStyle({"background-image": "none"}); '+ 'me.header.titleCmp.el.setStyle({"color": "black"}); '+ 'me.el.setStyle({"border": "solid 1px silver"}); '+ 'me.el.setStyle({"background-color": "silver"});')); JSConfig('baseCls', ['x-panel']); end;
-
Hi all,
Do you have some idea, what could be wrong. Sometimes works, sometimes no. Obviously some interruption happens, instead of result I got 301: Interrupted.
After app is complete loaded there is lover possibility to get error. If I put to mainForm.OnCreate then approximately every third call failed.
URL call API server, result is XML string to fill ClientDatset. There is no difference if the function is on MainModule or MainForm.
Br, marko.
function TUniMainModule.getData(url:String;clt:TclientDataset):String; var http:TipwHTTp; begin try clt.Close; http:=TipwHTTp.create(self); http.FollowRedirects:=fralways; http.timeout:=10; http.get(url); clt.xmldata:=http.TransferredData; http.free; result:='OK'; Except on e:Exception do begin Result:='response from API: '+e.Message+', api: '+ http.URL+', Reason: '+http.StatusLine ; end; end; end;
-
Found solution,
MainmForm.ClientEvents
function window.show(sender, eOpts) { document.addEventListener('touchmove', function(e) { e.preventDefault(); }, {passive:false}); }
br,mk.
- 1
-
Hi all,
How to disable zoom in/out with dual touch on Iphone - Safari. On Android is no problem.
I am using UnimMap and instead of zooming map, all app zoom in zoom out.
already add to Server Module/meta
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="HandheldFriendly" content="true" />
also try to add to mainmForm (I do not know which event is right one - after render is not on list)
document.body.addEventListener('touchmove',function(event){ event.preventDefault(); },false);
On Android works fine.
Am I miss something?
using: Delphi RIO, latest Unigui release.
Thanks in advance.
Br, Marko.
-
Hi,
When dataset is readonly, it is not possible to select/copy cell text in the grid.
Ir would be nice to have property true/false
workaround for this is:
ClientEvents -> UniEvents -> function beforeInit:
{ config.viewConfig.enableTextSelection = true; }
Br, Marko
-
8 hours ago, Frederick said:
What issues do you have with Contabo? I have a single application hosted in a production environment with them and so far, the only issues I have currently is the slowness in delivering pages and long customer service response times.
The first issue could be due to latency problems since they are situated in Germany and I am in the Asia Pacific.
I found the same, of course latency problems expected, but more significant part is slow Contabo server response.
So. As you know VPS systems "sharing" resources between users in dynamic way. So the configuration you made on Contabo is just your wish, actually maybe you do not get even 30 % of selected resources. But that is not the biggest problem even 30 % could be enough if this resources will be stable. But there are situation when you get 0% or almost nothing because someone else used instead of you. I do not have detailed knowledge about their VPS but I expected that there is at minimum availability - but obviously not.
And in practice is like that. We have Unigui app for GPS tracking for end users. In background is MS SQL database and service apps which collected data from tracking units. The most important issue is availability, so it must work 24 hours per day without interruptions.
We used Contabo several years on more VPS instances. And approximation is like this for one VPS is like this:
- one Windows crash per (once per 2 month). In error logs nothing, similar if you unplug PC from power source like , it could be called "black hole"
- low resources (1 or 2 per week, it could be several hours - according my logs). One record normally written in database 30 milliseconds, tooks more 10 times more or even 2 seconds. if you check resources HDD, processor, RAM everything is "fine", but nothing works it could be called "bad weather"
- recurses not at all (once per 3 months) it means the Windows UI freezing, apps are not responding, RD losing connection. There is almost no activity. It could be called "storm"
Technical support - well actually is almost unusable (I have around 150 emails), sometimes the answers are interesting very comic. About my complaints they changed parameters for my server many times, but never solved the problem. 1 month ago there was a storm. It means that freeze everything every few minutes Windows GUI refresh that's all. Of course I sent request to support around 8 AM, first response was about 11 AM (they told me that is not wise to send more request because you lose priority order ). And system worked normally around 5 PM (probably because some demanding user stop working). So around 10 hours the system not worked at all. it means that around 50 of my clients not get service. Well next day was similar. After that my decision was clear. Now production server works in our office and we know what are our resources
In general I can say only Contabo VPS, for testing yes, it is cheap, but for production "no go". if you go with production maybe "dedicated" could be usable - but I am skeptic.
Best regards,
Marko
- 1
-
For production environment Contabo VPS really not recommended. Do not repeat my mistake.
Br, mk.
-
I tried, I can see svg icon on UnimButton, but it looks that attributes/style color, fill not accepted.
Allways get black color.
function beforeInit(sender, config) { config.icon ="/files/test.svg"; config.style='stroke:red; fill: green; color:red; stop-color :red; flood-color:red;lighting-color:red;' }
Thanks in advance fro any hint
Br, Marko
-
Some more details?
On which event, and custom css the same as is?
Best regards.
-
Hi all,
I would lie to use files/test.svg file as image.
How to assign svg file to button.
I try to make new item in ImageList, and define IconCls in server css. I can see image but somehow fill color not accepted (is black instead green)...
what's wrong, or some other approach to change attributes of svg image?
Thank's in advance,
Marko.
-
-
Hi all
it look's that latest Apache installation XAMPP is not available anymore in 32 bit, or maybe missed something?
Is that mean that we need to make only 64 bit ISAPI modules in near future?
Best regards,
Marko
-
Thanks Abaksoft for your answer.
What about, if we use Apache for Windows 10 (without Wine) + Isapi, is stable? Is this workaround 20 sessions limit?
Best regards,
Marko
-
Hi all,
On Windows 10 professional we are planning to use UNiGUI apps with up to 100 sessions (peak) for production. Database is MS SQL.
Can we use WIN 10, is there a problem with max. concurrent connections (Windows 10 limitation)?
Is there any difference between IIS vs Apache as isapi dll? Or is better to use as standalone server.
Is this idea no go, and must be Windows server edition?
Anybody with experience Win10 vs WinServer ?
Best regards,
Marko
-
I have to say something about Contabo:
- for testing purposes it is usable and of course, is cheap
- for real production NOT recommended to use Contabo VPS, they not offer stable reurses. And it is more than clear that will never work stable. It is a simple reason that your VPS share common resources, and what actually get depend from current load of other VPS instances.
I used Contabo several years - mission impossible (Windows chrashes, migrating to other hosting systems, hanging from few minutes to 3 hours, funny support).
Based on my experience: For production use dedicated server or server on-premise.
Marko.
-
UniGui version is fantastic!
Sent from my SM-N900 using Tapatalk
Yea I know,
We will buy in near future.
But this probably is not reason for problems on Apache?
-
Hi all,
We try to deploy ISAPI dll to Apache PHP Version 5.6.30.
On MainModule is placed AdoConnection and connected Queries components to access MS SQL database.
From log files I can see that application crash (access violation) just after AdoConnection is open.
Of course on server module AutoCoInitialize is set to True.
In the same time app run on IIS or standalone server without any problem, but on Apache is crash.
Anybody has idea what could be wrong?
Development environment:
UniGui: 0.93.1.1000
Delphi Xe2
DB: MSSQL
-
Dear all,
Any experience about Arabic language.If set in design time UnimainModule.RTL to True application hangs as "loading ..."
What is right approach, does it work?
Best regards,
Marko
Delphi: XE2
Unigui: 0.93.1.1000
extjs: 4.1.1a
-
Dear Logisticasoft,
If you develop UniGui apps, then you can use only UniGUI Components, that means TUniEdit or TUniDBEdit.
TDbEdit is Delphi component and is connected to Dataset and display field value, I don't know how you will pass another value from other form ... only if you change Tdataset/datasource.
br,mk.
-
Dear all,
To run Java script is used ..UniSession.AddJS()
There is a huge script in more blocks,
I would like run next block of scripts after browser processed first block.
I can make this by AjaxEvent... is there any other approach?
br,mk.
html fastreport, pdf file
in General
Posted
Hi all,
In database is stored html content, which is possible to show Unidbgrid. Fastreports has very limited html support, and is not usable. I have checked also UniGridHtmlExporter, but also not get expected result.
Idea is to convert html to plain text and use FR to crete PDF file.
Any idea how to get plain text from html?
Br, Marko