| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 1332 online users. » 2 Member(s) | 1327 Guest(s) Applebot, Bing, Google, Febetzcocom, taxihotram
|
| Latest Threads |
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: MJS@mjs.us
09-11-2026, 09:49 PM
» Replies: 1
» Views: 169
|
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 137
|
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 154
|
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 453
|
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 230
|
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 625
|
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 217
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,218
|
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 348
|
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 972
|
|
|
| Working with Javascript |
|
Posted by: StephB - 03-22-2023, 10:21 AM - Forum: IntraWeb General Discussion
- Replies (9)
|
 |
Dear all,
I want to add some JS features to my IW app, and something (probably me) went wrong.
I try to follow the method describes here (http://docs.atozed.com/docs.dll/developm...cript.html), and I don't understand where is(are) my mistake(s).
I created a JS file in my project (right-click on the project then Add new \ Other \ Web \ Javascript), and named it IW_JS_ScrollLesson.js.
The file exists in the root path of my app with the other sources, but it's not added to the dproj file.
In the unit where I want to use my JS script (uLesson), I added :
- IWServerInternalFiles in the uses list
- {$R IW_JS_ScrollLesson.js}
Code: implementation
{$R *.dfm}
{$R IW_JS_ScrollLesson.js}
...
- the following lines in the form.FormShow to load/join the script:
Code: procedure TIWFormLesson.IWAppFormShow(Sender: TObject);
begin
inherited;
gInternalFiles.Add('IW_JS_ScrollLesson.js', '/js/ScrollLesson.js');
Self.PageContext.ScriptFiles.Add('/js/ScrollLesson.js');
...
When I try to compile/execute my app, I have the following error :
Quote:[dcc32 Error] E2161 Error: RLINK32: Unsupported 16bit resource in file "C:\awelter\Server\AW_OnlineSelfTraining\IW_JS_ScrollLesson.js"
I don't understand where I am wrong, is anybody already applied this method, or have another method to use a JS script in my app ?
I read some pages on this forum, but don't undertand the other methods (I'm a newcomer in Delphi/Intraweb world).
Many thanks for your help.
|
|
|
| Go to the next IWEdit input field on a mobile device by pressing Tab (right arrow) |
|
Posted by: Сергей Александрович - 03-21-2023, 04:47 PM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Go to the next IWEdit input field on a mobile device by pressing Tab (right arrow)
How to do it? On a computer, pressing the tab key moves the cursor to the next input field. On a mobile device, there is a "button" on the keyboard with an image of a right arrow. I believe that this is an analogue of the tab key and pressing this key should cause the cursor to move to the next input field. However, this does not happen. To move the cursor on a mobile device, you have to move the cursor by touching the desired IWEdit with your finger.
How to make the cursor on a mobile device move when the tab is pressed (right arrow)
|
|
|
| ContentHandler and PostData |
|
Posted by: svenheuer - 03-21-2023, 11:17 AM - Forum: IntraWeb General Discussion
- Replies (3)
|
 |
Hi, I am struggling to get raw json data via a post to my contenthandler.
Code: $.ajax({type: "POST",
url: "/url-to-my-content-handler",
data: {"field1": "fieldvalue", "field2", "field2value"},
contentType: "application/json; charset=utf-8",
datatype: "json"
})
So how can I fetch the post data in the contenthandler? ContentFields will separate all fields into something like this (mostly)
field1=fieldvalue
field2=field2value
because my json structure is a little bit complexer (contains further objects and arrays) than in the demo this is not the way I can go.
I am missing somethling like aRequest.PostData as String or TStream. Is it there but I can not find it?
The XML-Example is using uploading a file but that's not the way I go here.
Best regards
Sven
|
|
|
| Is it possible to combine TIdTCPServer components with TClientSocket ? |
|
Posted by: Max2009 - 03-20-2023, 06:08 PM - Forum: Indy
- Replies (5)
|
 |
Hello. I am using Embarcadero C++ and I have Indy 10.6.2.0 installed.
I have 4 components on my form:
TIdTCPClient *Client;
TIdTCPServer *Server;
TClientSocket *ClientSocket;
TServerSocket *ServerSocket;
Client is configured to connect to Server;
ClientSocket is configured to connect to ServerSocket;
If I assign ClientConnect() to Button1::OnClick event, it connects successfully.
If I assign ClientSocket->Active=true to Button2::OnClick event, it also connects successfully.
However, if I try to connect by setting ClientSocket->Active=true in Server::OnConnect event:
{
ClientSocket->Active=true;
}
It doesn't work. The same is true if I try to connect in OnContextCreate or OnExecute events.
Why is this happening?
|
|
|
| TIdHTTP REST OAuth2 |
|
Posted by: Boba TC - 03-19-2023, 11:56 PM - Forum: Indy
- Replies (2)
|
 |
Dear Reader;
in my 1st attempt to connect to a REST server with TIdHTTP all I was told to do is to POST an HTTP request in the form:
"https://www.server.com/api/authentication/oauth2/token?grant_type=password&username=***&password=***&client_id=***&client_secret=***"
with server-side generated username, password, client_id and client_secret:
Code: TIdHTTP *IdHTTP;
TIdSSLIOHandlerSocketOpenSSL *IdSSLIOHandlerSocketOpenSSL1;
TIdLogFile *IdLogFile1;
AnsiString sURL0, sResp;
IdHTTP->IOHandler = IdSSLIOHandlerSocketOpenSSL1;
IdHTTP->Intercept = IdLogFile1;
TStringList *slHttpRspns;
//...
sURL0 = "https://www.someserver.com/api/authentication/oauth2/token?grant_type=password&username=nome_de_usuário%40oldshoes.com&password=metellno1&client_id=wqeqweqwewqwewq&client_secret=qwewqewewqe";
try{
slHttpRspns = new TStringList;
IdLogFile1->Active = true;
sResp = IdHTTP->Post( sURL0, slHttpRspns );
Memo1->Lines->Add( "IdHTTP->ResponseCode="+IntToStr(IdHTTP->ResponseCode) );//500
//if succeeded the server should come back with a token in JSON form
}catch( Exception &e ){
//...
}
IdHTTP->ResponseCode==500;
IdLogFile has the following:
Stat Connected.
Sent DateTime: POST /api/authentication/oauth2/token?grant_type=password&username=nome_de_usuário%40someclient.com&password=metellno1&client_id=wqeqweqweqewqwewq&client_secret=qwewqewqewqewqe HTTP/1.1
Content-Type: application/json
Content-Length: 0
Host: www.someserver.com
Accept: text/html,application/xhtml+xml,application/xml,application/json;q=0.9,*/*;q=0.8
User-Agent: Mozilla/3.0 (compatible; Indy Library)
Recv DateTime: HTTP/1.1 500 Server Error
Content-Length: 347
Content-Type: application/json
Strict-Transport-Security: max-age=31536000; includeSubDomains;
Content-Security-Policy: default-src 'self'; font-src *;img-src * data:; script-src *; style-src *;
Referrer-Policy: strict-origin
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-SL-Proxy: false
X-XSS-Protection: 1; mode=block
Date: DateTime
{
"failure" : "Pipeline execution failed while waiting for output",
"reason" : "Snap errors: {ruuid=<***some guid***>, label=Decode JSON, failure=Failed to read from binary input view, reason=No content to map due to end-of-input, resolution=Please address the reported issue.}",
"resolution" : "Fix the reported errors"
}
JSON at the bottom of IdLogFile is the server Error detailed.
I have no idea what all that is about, so I ran that same request with PostMan ver.9.31 - it came back with no error and new token in its response.
What do I need to change on VCL/Indy side in order to mimic the PostMan's behaviour? Is this information enough to correct the error?
Please help. Thanks in advance. Boba TC.
|
|
|
| Browser dimensions OnAsyncResize (Priority support) |
|
Posted by: valmeras - 03-18-2023, 01:00 PM - Forum: IntraWeb General Discussion
- Replies (7)
|
 |
I am using Intraweb 15.2.69 with Rad Studio 10.2.3 (C++ Builder)
I am a paid user so I suppose I have access to priority support.
I need to have the right dimensions on the user's browser using the AsyncResize event.
If I try to write the positions of elements using those information they are totally wrongly positioned.
So I wrote the simple code below to see the dimensions returned.
void __fastcall TIWForm1::IWAppFormAsyncResize(TObject *Sender, TStringList *EventParams)
{
WebApplication->ShowAlert("Height : " + IntToStr(WebApplication->FormHeight));
WebApplication->ShowAlert("Height : " + IntToStr(WebApplication->FormHeight));
}
I realized that unfortunately the dimensions are not right.
But if I write a JavaScript code using window.addEventListener("resize", ), I get the right dimensions! The problem is that I need to use executeAjaxEvent() to get it on the server side and that slows the rendering of my application.
I had the same problem with Intraweb 14. I upgraded to Intraweb 15 hoping that the issue is resolved. But apparently not!
|
|
|
| 3 errors with FIreDAC |
|
Posted by: raulevm - 03-16-2023, 01:42 PM - Forum: IntraWeb General Discussion
- Replies (7)
|
 |
Dear, use delphi 11.2.1 and IW 15.2.69
1.- FireDAC doesn't work with a data module in IW, only if I put the components in the IWUserSession or in the IWForms it works fine.
2.- I have a mandatory required field (required=true in IW). When deleting a record (FDQuery.delete) a message appears asking you to enter the required field.
3.- I have a non-null field from a SQL Server database (required=false in IW so that it doesn't give me problems). When deleting the record I get an error message that you need to enter the required field.
The only way to solve this is by setting required=False and in the database that the field allows entering null values.
I don't know if this only happens to me but since I don't have time to find out and the IntraWeb documentation is so bad, it can't work with FireDAC or it simply can't work with IntraWeb
|
|
|
| Intraweb 15 missing AllowMultipleSessionsPerUser |
|
Posted by: valmeras - 03-15-2023, 07:58 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
I am using Rad Studio 10.2.3 (C++ Builder)
I was using Intraweb 14.2.7 Ultimate version. I have the key for this one.
Today I uninstalled Intraweb 14 and Installed 15.2.69, evaluation version, to test some features.
And unfortunately I noticed that the AllowMultipleSessionsPerUser is missing in the server controller options.
Is that normal?
|
|
|
| OnChange problems |
|
Posted by: goc1172 - 03-13-2023, 04:56 PM - Forum: IntraWeb General Discussion
- Replies (2)
|
 |
I made a form with 100+ TIWComboBox questions on one page.
Using the OnChange event, the page is updated on every response. That is an inconvenience when we are at the end of the Form because it returns to the beginning every time it responds.
Is there any code that solves this problem? (Ps. I would not want to use Async events).
Best regards
|
|
|
|