Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
ClassicRegionDraw
Forum: IntraWeb General Discussion
Last Post: JuergenS
04-17-2024, 05:35 PM
» Replies: 0
» Views: 83
|
CompressorImplementation
Forum: IntraWeb General Discussion
Last Post: JuergenS
04-17-2024, 05:27 PM
» Replies: 0
» Views: 81
|
IntraWeb 15.6.0 is out!
Forum: IntraWeb General Discussion
Last Post: Comograma
04-17-2024, 11:54 AM
» Replies: 11
» Views: 593
|
How to manage forms and v...
Forum: IntraWeb General Discussion
Last Post: David1
04-17-2024, 10:37 AM
» Replies: 0
» Views: 79
|
iwjqdbgrid button example
Forum: IntraWeb General Discussion
Last Post: joelcc
04-16-2024, 09:07 PM
» Replies: 0
» Views: 95
|
New demo available
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
04-16-2024, 03:54 AM
» Replies: 0
» Views: 135
|
IW 15.5.9 IWChart
Forum: IntraWeb General Discussion
Last Post: PaulWeem
04-15-2024, 12:50 PM
» Replies: 0
» Views: 117
|
Multipage websocket commu...
Forum: IntraWeb General Discussion
Last Post: davidbaxter
04-15-2024, 02:39 AM
» Replies: 5
» Views: 756
|
TIWServerControllerIniRea...
Forum: IntraWeb General Discussion
Last Post: Lorbass
04-12-2024, 10:59 AM
» Replies: 0
» Views: 139
|
Resize problems with IW 1...
Forum: IntraWeb General Discussion
Last Post: Lorbass
04-12-2024, 10:47 AM
» Replies: 9
» Views: 793
|
|
|
Cookies stoped working when upgrading from 14 to 15 |
Posted by: Per Waernborg - 11-15-2018, 07:28 AM - Forum: IntraWeb General Discussion
- Replies (5)
|
|
I use cookies to remember the login and has a working app made with Delphi 10.1.2 and IntraWeb 14.1.7. It writes and reads cookies just as I want it to.
When I move this app to Delphi 10.2.3 and IntraWeb 15.0.15 the cookies don't work any more.
I have the following settings in the ServerController:
AllowMultipleSessionsPerUser = False
CookieOptions
> CookieNameSuffix = "empty"
> HttpOnly = False
> SameSite = ssoNone
> Secure = False
> SessionCookies = True
> UseCookies = True
Are there any other settings I should check or is it someting else I should be looking for?
|
|
|
TIWDBImage does not work with vFileAccess = faRequireSession |
Posted by: magosk - 11-14-2018, 08:54 AM - Forum: IntraWeb General Discussion
- Replies (5)
|
|
Hi! We discovered that a frame containing a TIWDBImage did not work when we had set vFileAccess := faRequireSession in IWServerControllerBaseValidateCacheFileAccess. If you debug the web page you get the following error:
Code: HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). GET - http://192.168.4.30:9013/iJpZEkkD90Ig4vhmnuKR8q/$/temp/ATZiwn17FqBleI5B3MTnwWxFG.png
As a temporary bug fix I can set vFileAccess := faGrant for png files, but we would like to have session validation for all cache files.
|
|
|
Uploading more files |
Posted by: odisej2 - 11-14-2018, 07:10 AM - Forum: IntraWeb General Discussion
- Replies (1)
|
|
Hi again
I'm so happy with the forum as you helped me with one of my issues. I'm also more and more happy with the Intraweb. But I do have another question. File uploading.
I'm using IWFileUploader1 and layout manager and I also want to upload on a button press. It was a challenge to setup things to work. I'm happy with it but not 100%. The problem is that I'm not able to upload more than one file at a time. I'm showing uploaded files in a datatable. So I need to do a page refresh when upload is completed. I do a full submit in IWFileUploader1AsyncUploadSuccess like this:
WebApplication.CallBackResponse.AddJavaScriptToExecuteAsCDATA('SubmitClick("btnRefresh","",true);');
But IWFileUploader1AsyncUploadSuccess is called after each file so if I have more that full submit breaks the upload. So finally the question. Is there anything that I can use to know if that was the last file uploaded? Or can I call some kind of a refresh page that does not break the upload. What I need is to drop into IWTemplateProcessorHTML1UnknownTag for my page to "draw".
Thanks again
Grega
|
|
|
Placeholder disappears |
Posted by: wadcompany - 11-13-2018, 06:48 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
|
Hello friends could tell me if it is normal in an IWDBEDIT after an insert, the placeholder disappear. I have this problem in all the templates, using the IW15, only to appear in IW14 did not occur these problems. Thank you.
|
|
|
Post JSON with IDHTTP |
Posted by: mo_ayad - 11-13-2018, 10:35 AM - Forum: Indy General Discussion
- Replies (1)
|
|
I am trying to post a JSON to web rest service but always with message HTTP1.1/BAD request.
The page in question is test page: https://dev.slimpay.com/hapi/browser#create-payins and the json is
Code: POST Follow(https://api.slimpay.net/alps#create-payins) HTTP/1.1
Accept: application/hal+json; profile="https://api.slimpay.net/alps/v1"
Authorization: Bearer token
Content-Type: application/json
{
"creditor": {
"reference": "democreditor"
},
"subscriber": {
"reference": "subscriber5bea84af2e9e3"
}
}
The first two steps on the test page OK with IDHTTP and SSL but this test step i am aunable to proceed, my code is the following:
Code: htpBrwsr.Request.Accept := 'application/hal+json; profile="https://api.slimpay.net/alps/v1"';
htpBrwsr.Request.CustomHeaders.Add('Authorization: Bearer ' + sToken); // token got correctly from previous step
htpBrwsr.Request.ContentType := 'application/json';
// htpBrwsr.Request.CharSet := 'UTF-8';
ms := TMemoryStream.Create;
ss := TStringStream.Create('{"creditor": {"reference": "democreditor"},"subscriber": {"reference": "subscriber5bea84af2e9e3"}}');
ss.Position := 0;
htpBrwsr.Post('https://api.preprod.slimpay.com/payments/in', ss, ms); // error HTTP1.1/400T
htpBrwsr is an TIDHttp related to a TIdSSLIOHandlerSocketOpenSSL, a similar TIDHttp functions well in the first two steps sited on the test page and I obtain the token with no problems.
any help will be aprecieted..
|
|
|
Call async on click from img |
Posted by: odisej2 - 11-13-2018, 07:42 AM - Forum: IntraWeb General Discussion
- Replies (2)
|
|
I use Intraweb together with layout manager. When populating table with some images I do this in IWTemplateProcessorHTML1UnknownTag:
VValue := '<a href="#" onclick="SubmitClickConfirm(''btnSend'',''' + 'somekey' + ''', true, '''');return false;">' + '<img src="images\send.png" />' + '</a>';
Behind btnSend I have some code. And that is full sumbit of the form which is ok in this case.
But now I want to call OnAsyncClick of the button when user clicks on that img. Any ideas what to do?
Regards
Grega
|
|
|
Problem opening a link in v15.0.14 and v15.0.15 |
Posted by: ioan - 11-12-2018, 09:59 PM - Forum: IntraWeb General Discussion
- Replies (6)
|
|
Starting with version .14, the following link breaks something in the IW application if is compiled with http.sys:
Code: http://server/?level=sslfaxv3&id=f1mFiOlnZy00Tu8%2FpUHJ%2FpTuZFJF2rbBrOG6K8WrMWEYNhFYpwCEJE2u2r46E%2FSujZc%2Bd%2FdEqf%2BYV%2F3qhw%3D%3D
Up to version .13 it works fine, but starting with version .14, the application doesn't ever get inside TIWServerController.IWServerControllerBaseGetMainForm when clicking that link. It seems that the problem is with the value of the "id" query field. If I change the value to id=aaaaaaa, or any simple string, it works fine. As I said, this above link works fine in version .13.
The value of the "id" is created by using TNetEncoding.URL.Encode(...) on a long string.
|
|
|
IdUDPServer issue |
Posted by: BartKindt - 11-12-2018, 07:03 PM - Forum: Indy General Discussion
- Replies (1)
|
|
I use an IdUDPServer to open multiple Ports like this:
Code: IdUDPServer1.Active := false;
Socket1 := IdUDPServer1.Bindings.Add;
Socket1.IPVersion := Id_IPv4;
Socket1.IP := HyteraSettings.TCPLocalIP;
Socket1.Port := HyteraSettings.RRSPort; // RRS PORT
if HyteraSettings.Debug then LocalLog('UDPServer Bindings.Add: '+HyteraSettings.TCPLocalIP+' Port '+IntToStr(HyteraSettings.GPSPort));
Socket1 := IdUDPServer1.Bindings.Add;
Socket1.IPVersion := Id_IPv4;
Socket1.IP := HyteraSettings.TCPLocalIP;
Socket1.Port := HyteraSettings.GPSPort; // GPS PORT
Then I set Active to TRUE.
Afterwards I got an exception caused by the other side: , UDPServer Exception: Socket Error # 10054Connection reset by peer.
I then call IdUDPServer1.Active := false; and I completely FreeAndNil it.
Then the loop starts again from fresh, with a newly created UDPServer.
However, now I get the Exception: Could not bind socket. Address and port are already in use
Why does this happen? Should I somehow manually clear the sockets before setting the Active to False?
Bart
|
|
|
|