-
Posts
356 -
Joined
-
Last visited
-
Days Won
18
Content Type
Profiles
Forums
Events
Posts posted by Oliver Morsch
-
-
is it possible (on client browser side) that app2 starts a javascript to set a component of app1/mainForm to hide or show?
You have only access on client/browser if it is the same origin (domain).
-
The format doesn't matter. The "?" must be there,
-
After cleaning the browser cache it should work.
Have you tried with the timestamp? For me it works.
-
It is the browser cache. Add something like timestamp to the URL: PathToMyDoc/MyDoc.pdf?ts=2018-02-03-08-16
-
Now I have tested SSL and it works. But Chrome and Firefox show "(certificate) not secure" because of self signed certificate. IE and Edge have no problem after adding the root certificate.
-
Do you use a self signed certificate or a trusted?
-
Which browser(s)?
What will be shown by clicking on the "not secure"?
-
You could use Google custom search.
-
Google does not allow this (displaying in an iframe).
-
You need a TIdServerIOHandlerSSLOpenSSL, must assign the certs and then assign it to the HttpServer.
But I have never made this.
-
Did you add SSL component to MsgServer? And use cert?
-
OK there is the "/".
Have you changed MsgServer to SSL too?
-
Show me the procedure TfrmMsgCliCtrl.UniFormCreate
In the code above there is a / missing at the end
Should be https://MyIp:8070/
-
What is in "edtBaseURL.Text", ends it with a "/"?
-
To stop sessions keep polling to get fresh data, how can one push messages to different session, is WebSocket is the only way to push messages to sessions?
WebSocket is the best/modern way. But you can also use LongPolling.
If a query is kept in ServerModule will that query result be shared by all sessions?
No.
-
When I send message in Farsi(Persian) language ,the message don't send correct .
I have uploaded a new version using UTF-8. Try it and give me feedback.
-
-
Do we have to free the temporary variable Frm ?
Where to put : Frm.Free ?
Or is it automatically free ?
Set Form2.FreeOnClose to true; then it is automaticly freed. Otherwise you must use .Free in the callback procedure after doing your stuff.
- 1
-
So, Is there a way to use your leightweight technic also in a traditional callback show (synchonous = False) ?
procedure TMainForm.UniButton2Click(Sender: TObject); var Frm: TUniForm1; begin Frm := TUniForm1.Create(UniApplication); Frm.ShowModal( procedure (Sender: TComponent; Res: Integer) begin if Res = mrOK then begin UniMemo1.Lines.Add(Frm.UniEdit1.Text); end else begin UniMemo1.Lines.Add('!Cancel!'); end; end ); end;
- 1
-
I think the problem is that a webapp always works with request -> response. No active request, no response possible.
Due to the Async/Nowait you have: request -> response -> Callback function (but here is no request),
-
Hi
Line Breaks or Alert BoxFor Example I want send for all user :(Admin want upload new version,Please exit from app).
Best Regards.
-
procedure TfrmMsgCliCtrl.btnSelectTargetClick(Sender: TObject); begin frmSelectTargetSession.ShowModal( procedure (Sender: TComponent; Res: Integer) // <--- begin if Res = mrOK then begin edtTargetSess.Text := frmSelectTargetSession.lbSessions.Text; end; end ); end;
It has nothing to do with XE6, it's a change in UniGUI.
-
-
FileOpenDialog
in General
Posted
You must create your own dialog: TDirectory.getDirectories, TDirectory.getFiles, ...