-
Posts
1578 -
Joined
-
Last visited
-
Days Won
134
Content Type
Profiles
Forums
Events
Posts posted by Hayri ASLAN
-
-
6 hours ago, William32 said:
I am using trial for now 1.90.0.1553
Hello
Please try below code
procedure TMainForm.UniButton18Click(Sender: TObject); begin with UniMap1, JSInterface do begin JSAssign('uniMap.options.crs', [JSStatement('L.CRS.Simple')]); JSCall('uniMap.setMaxBounds', [JSStatement('new L.LatLngBounds([0,500], [500,0])')]); UniSession.AddJS('var imageUrl = "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg";'); UniSession.AddJS('var imageBounds = [[250,0], [0,250]];'); UniSession.AddJS('L.imageOverlay(imageUrl, imageBounds).addTo('+JSName+'.uniMap);'); end; end;
- 1
-
On 10/29/2021 at 11:00 AM, zhyhero said:
For now ,I add code to unimap.pas
640 JSCallGlobal('L.map', [FMapJSName,
641 JSObject([
'crs',JSStatement('L.CRS.Simple'), // config crs to simple for x,y mode
642 'center', JSArray([DefaultLat, DefaultLong]),
643 'zoom', DefaultZoom,
644 'id', -1,
645 'InternalId', NextInternalID,
646 'layers', JSArray([JSStatement(JSName+'uniLayer0')])
647 ])
648 ], FMapJSName);Any other way ?
We will add SimpleCRS property to unimap.
-
-
-
-
-
11 minutes ago, adan200 said:
Hello everybody,
I have a trouble with UniMap,
I need show the location after show propup map, but i get this error.. Someone has some tip.
Hello
Please use OnMapReady event instead of onFormAfterShow.
-
25 minutes ago, picyka said:
It almost worked, when you're on your cell phone, this method below doesn't work...
UniSession.AddJS('window.open("https://api.whatsapp.com/send?phone=55' + lTelefone + '&text='+lTexto+'", "_blank");');
from the desktop, it works.
As window.open opens a new tab, you're calling window.open indirectly (from server side), not in direct response to a user event(tap event).
Most browsers will block those calls. You should do your check inside tap event or you should use sync ajaxrequest.
Please refer below post for Sync ajaxrequest.
-
1 hour ago, picyka said:
I wanted that, before executing the method on the client, I would be able to execute any server.
procedure TMainmForm.UnimButton1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName='customTap' then begin UniSession.AddJS('window.open("https://api.whatsapp.com/send?phone=55123456", "_blank");') end; end; procedure TMainmForm.UnimFormCreate(Sender: TObject); begin with UnimButton1, JSInterface do begin JSAddListener('tap', JSFunction('ajaxRequest('+JSName+', "customTap")')) end; end;
-
31 minutes ago, picyka said:
btnLinkAtendimento.JSInterface.JSAddListener('tap', 'function(sender, e, eOpts){window.open("https://api.whatsapp.com/send?phone=55' + lTelefone + '&text='+lTexto+'", "_blank")}');
Good morning, I currently run a call on the client side like this, I would like that, before triggering the tap, I could execute the click on the server side, would that be possible?
Hello
Do you want to call window.open from serverside or just send an ajaxevent to server?
-
2 hours ago, wilton_rad said:
Post function Logger.addLog
It is native servermodule function.
-
9 minutes ago, Zeljko said:
I am blind near my own eyes. I have several applications on the same server running via hyperservers. All applications, except one, when looking at the task manager work as username SYSTEM except one which works as user LOCAL SERVICE. I made a mistake somewhere when setting up the app pool, but I couldn't find where. Please help
Hello
Which version and build are you using?
- 1
-
11 minutes ago, İbrahim TELCİ said:
Yanıtınız için teşekkür ederim. Zaten söylediğiniz demo uygulama üzerinden çalışıyorum. Terminate ettiğim zaman sayfa sonlanıyor. Ben sayfayı yeniden başlatmak istiyorum. Bu konu ile alakalı bir çözüm öneriniz var mı?
Merhaba
ServerModule.ServerMessages.TerminateTemplate i asagidaki gibi degistirebilirsiniz.
<html> <meta http-equiv="refresh" content="0;url=[###url###]" /> </html>
-
1 hour ago, İbrahim TELCİ said:
TUniServerModule.UniGUIServerModuleException olayında bir hata yakalanır ise hata olan oturumun sayfasını yenilemek istiyorum. Uniapplication.Restart komutu bu işe yarıyor yalnız bunu ServerModule üzerinden kullanamadım. Nasıl yaparım. Bilgi verir iseniz sevinirim.
Merhaba
CustomException demosunu inceleyebilirsiniz.
C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\CustomException
(sender as TUniMainModule).Terminate; yapabilirsiniz.
-
5 hours ago, Bernie07 said:
Hello,
If I use the Forminstance for some things, UniGui show the form. But I haven't called the Show method. How can I prevent this.
Example :
sName := Form1.Name;
This simple line shows the form. But you see, there is no Show method called like Form1.Show or Form1.ShowModal.
Sometimes I only want return a property without showing the form. How can I do this?
Best wishes
Bernhard
Hello
If you create a form in UniGUI, the form will be displayed regardless.
If you are using UniFrame you can set parent:= to nil. With this, that frame will not be displayed.
-
Hello
Unfortunately I don't have a solution for this. The extension is developed by you and I don't figure out what you are calling in that extension.
-
3 hours ago, diegojmap said:
Hello
To able to test this I need the extension too.
-
1 hour ago, rayhildebrant said:
uniGUI 1.90.0 build 1511 using RAD Studio 10.3
Hello
Professional Version? Please adjust your email address
-
39 minutes ago, rayhildebrant said:
Hello!
When a set the HTML property value (in the design time) with a script, the script runs successfully:
<script type="text/javascript">
window.amplData = {
email: 'teste@email.com.br',
name: 'username',
survey: '60ef1fc0199741000e74244d',// This is your survey identifier
callback: function(data){}
}But, I need to set the script variables email and name in runtime with the user logger data.
I tried to concatenate the values in HTML, text but the script does't work anymore.
How may I do that ?
tks.
Hello
Which build and version are you using?
-
-
Just now, diegojmap said:
I'm using onclick in ExtEvents
Yes, I'm not seeing any code in extevents or unievents.
-
15 minutes ago, diegojmap said:
Did not work.
Not even with Onclick.
I'm posting the attachment, if anyone can help.This is just a blank project. I can't see any code
-
1 hour ago, diegojmap said:
I need to access a chome extension.
I'm using beforeshow in ExtEvents.function window.beforeshow(sender, eOpts)
{
var extensionId = "pnahlmehglnaomfnngekhphldmbjhdel";chrome.runtime.sendMessage(extensionId, { message: "certs", body: "list certificates" }, function (response) {
console.log(response);
});
}Return the message:
Cannot read properties of undefined (reading 'sendMessage')
What would be the correct way to call it?
Hello
It seems "chrome.runtime" not ready yet. Can you try aftershow event?
-
36 minutes ago, Efrenis said:
Hi,
I think that is related to Unigui because using native delphi the code I posted before work, and just in Unigui doesn't work.
I use the same component TFDMenTable in both cases..
Thank.
Hello
Are you using professional version? Can you try with latest unigui version?
Multiple uniGUI applications - only one login
in General
Posted
I think the best way is cookies.
https://medium.com/swlh/secure-httponly-samesite-http-cookies-attributes-and-set-cookie-explained-fc3c753dfeb6