| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 555 online users. » 1 Member(s) | 549 Guest(s) Applebot, Baidu, Bing, Google, Yandex, jiliproart
|
| Latest Threads |
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
Today, 04:40 AM
» Replies: 4
» Views: 605
|
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 55
|
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,273
|
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: Fabrizio Conti
06-04-2026, 09:14 AM
» Replies: 3
» Views: 463
|
Access Violation When Val...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
06-03-2026, 08:47 AM
» Replies: 2
» Views: 513
|
Bootstrap5
Forum: IntraWeb General Discussion
Last Post: geraldtatum
06-02-2026, 06:24 AM
» Replies: 1
» Views: 409
|
weakpackageunit contains ...
Forum: IntraWeb General Discussion
Last Post: rlebeau
05-26-2026, 04:56 PM
» Replies: 4
» Views: 517
|
Custom 404 handler
Forum: IntraWeb General Discussion
Last Post: CfawesDwale
05-21-2026, 08:02 AM
» Replies: 0
» Views: 246
|
PopUp Menu
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
05-13-2026, 04:35 AM
» Replies: 4
» Views: 8,200
|
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
05-13-2026, 03:32 AM
» Replies: 3
» Views: 4,117
|
|
|
| A bug in new version of Indy in TIdSMTP |
|
Posted by: johnmay - 05-07-2018, 08:40 PM - Forum: Indy
- Replies (5)
|
 |
I found a problem with it. Older version worked fine.
Code: IdSMTP1->Host = "smtp.charter.net";
IdSMTP1->Port = 25;
IdSMTP1->Connect();
The server issues:
571 impout002 charter.net OTQuMjUzLjI0My4zNQ== You must connect from Charter IP space. E1110
But IdSMTP raises an exception:
Project Project1.exe raised exception class EIdSMTPReplyError with message 'impout003 charter.net OTQuMjUzLjI0My4zNQ== You must connect from Charter IP space. E1110'.
There is also problem connecting to:
Code: IdSMTP1->Host = "mobile.charter.net";
IdSMTP1->Port = 587;
IdSMTP1->UseTLS = utUseImplicitTLS;
IdSMTP1->Connect();
Project Project1.exe raised exception class EIdSocketError with message 'Socket Error # 10060 Connection timed out.'.
But it is NOT socket error nor firewall. Older version of Indy connects fine using exact same settings above (587 + implicit TLS).
Older version of Indy (5373) works fine for both of the above settings... So not sure what changed in the meantime in IdSMTP.
maybe this line:
FExplicitTLSProtPort := 587; // TODO: define a constant for this!
In above connection 587 is implicit port (it is non-standardl but that's how Charter have it set up and until recently it connected well using older TIdSMTP).
|
|
|
| Real time data |
|
Posted by: Mirco - 05-07-2018, 01:22 PM - Forum: IntraWeb General Discussion
- No Replies
|
 |
Hi,
I need to display a real time data every 1 second.
My data comes from a network socket and every second I have to send them to all the open sessions.
What is the best approach for this task?
I have tryied with a timer but after a while I receive an AJAX error.
It's better a standard application to manage my socket connection and a IWstandaloneserver or directly an IntraWeb application?
c++10, IW14
Thanks in advance.
|
|
|
| Maintaining a list of TIWFrames and descendants of TIWFrame |
|
Posted by: ScottWGast - 05-04-2018, 01:09 PM - Forum: IntraWeb General Discussion
- Replies (5)
|
 |
I have a single form and many frames that descend from TIWFrame:
TIWFrame->TIWFrameBase
TIWFrame->TIWFrameBase->TIWFrameGRID
TIWFrame->TIWFrameBase->TIWFrameCRUD
TIWFrameBase includes some new properties and a few IW components
TIWFrameGRID includes ado dataset grid, controls, buttons
TIWFrameCRUD includes ado dataset, edit controls, buttons
and would like to store these varying TIWFrames in a collection where they can be
retrieved as needed. The program will know the index of the desired frame and it will know the desired frame's type.
My initial thought was to create an array of TIWFrameBase, but complained when I tried to insert a TIWFrameGRID into the array.
My gut tells me that this should be super simple and I'm a little ticked off I can't figure it out, even with Google.
TIA for your help.
Scott
|
|
|
| IDE is throwing emsedge250.bpl error after manual Indy installation |
|
Posted by: steve_goa - 05-03-2018, 10:10 PM - Forum: Indy
- Replies (4)
|
 |
Using: Delphi 10.2.3
I've downloaded, built and installed the latest Indy VCL sources from repository and installed in a custom folder location. Prior to doing this, I uninstalled existing Indy components and deleted existing bpl, dcu and dcp files that came with Indy as part of the Delphi distribution. However now when starting the IDE, its showing error messages. One of these errors is:
Code: ---------------------------
bds.exe - Entry Point Not Found
---------------------------
The procedure entry point @Idcustomhttpserver@TIdCustomHTTPServer@$bctr$qqrp25System@Classes@TComponent could not be located in the dynamic link library C:\Program Files (x86)\Embarcadero\Studio\19.0\bin\emsedge250.bpl.
---------------------------
OK
---------------------------
Another error following this says its cannot load Devart UniDAC DataSet Manager (I also have Devart components installed).
How can I resolve this error?
TIA.
|
|
|
| Dealing with Local Time |
|
Posted by: lfeliz - 05-03-2018, 04:45 PM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Hello,
Developing an app where users may be in different time zones. In past I never worried about this as system date time stamps matched local time of users. Now I am looking at using Postgres datetime type with time zone support and need best option for ensuring I have the correct local session time. Assuming all time is saved as UTC .
To make maters more interesting it could be case where driver leaves pt A at 5AM Pacific Time and gets to location at 6PM Pacific time ( 6 PM Mountain Time) as it crossed a time zone. The initial user makes all entries based on Pacific Time.
User at destination looks at system, the time would then display for him i mountain time (his local time zone).
Should I set time zone based on setting in user profile or should I get it from the browser setting and have it be dynamic to allow mobile devices to work if user is mobile and goes between timezones. I have some sample code that I will update this ticket with to show what app currently does , but find that it sometimes does not work as desired.
Cheers!
|
|
|
| Indy TCPServer/TCPClient |
|
Posted by: wzehntner - 05-03-2018, 02:44 PM - Forum: Indy
- Replies (9)
|
 |
Hello,
We have developed a thread-based TCPServer-application running on company machine (Windows 7) with fixed IP and fixed Port.
We also developed a standalone TCPClient application distributed to our customers.
We are now planning to change this Client-Server model to use SSL encryption (a server certificate does exist).
Can you please point me to some sample code how to implement SSL on server and on client side.
Thanks in advance,
Wolfgang
|
|
|
| WebApplication.FormCount |
|
Posted by: cyracks - 05-01-2018, 12:19 PM - Forum: IntraWeb General Discussion
- Replies (1)
|
 |
Hello,
could you please help me on how to iterate over all forms included in the application.
Code: // for i:=0 to UserSession.WebApplication.FormCount-1 do
for i:=0 to WebApplication.FormCount-1 do
begin
OutputDebugString(PChar(WebApplication.Forms[i].Name));
end;
Code above lists only active or already opened forms. Forms that were not opened are not listed.
Regards,
Tomaž
|
|
|
| How to send POST data to a webserver? |
|
Posted by: BosseB - 04-30-2018, 09:56 PM - Forum: Indy
- Replies (19)
|
 |
This is a continuation of a thread at Embarcadero forum, which no longer responds to my input...
Background:
I have programmed an embedded IoT device (ESP8266) for which I have created a configuration application using FPC/Lazarus with Indylaz (Indy 10).
All of this works fine after some help from Remy L.
But there is one thing I also want to incorporate in the config application and this is firmware update via the network of the IoT device.
The ESP8266 has libraries with a lot of functions including web firmware updating, which I have included in my system.
It works as a simple web server operating on the http port of the IoT device, one simply opens the URI http://<ip address of IoT>/firmware and a minimal form is presented where there are two buttons, one file select button to select which firmware file to use and an Update button which starts the firmware update process.
The form presented by the IoT device on the URI shown above has the following html source:
Code: <html><head><title>The ESP8266 web updater</title></head>
<body><b>WiFi module firmware updater</b>
<br>Select firmware file, then click the Update button!<br>
<form method='POST' action='' enctype='multipart/form-data'>
<input type='file' name='update'>
<input type='submit' value='Update'>
</form>
</body></html>
The code I have used in Lazarus to try and send the data as a web browser would do looks like this after a brief discussion with Remy:
Code: function TConfigCommHandler.UploadFirmware(FileName: string; URL: string): boolean;
var
HTTP: TIdHTTP;
Src: TIdMultipartFormDataStream;
begin
Result := false;
if not FileExists(FileName) then exit;
HTTP := TIdHTTP.Create;
try
Src := TIdMultipartFormDataStream.Create;
try
Src.AddFile('update', FileName);
try
HTTP.Request.Username := FUserName;
HTTP.Request.Password := FPassword;
HTTP.Post(URL, Src);
Result := true;
except
on E: Exception do
FLastError := 'Exception: ' + E.Message;
end;
finally
Src.Free;;
end;
finally
HTTP.Free;
end;
end;
Behavior:
When I use the form in Firefox and select the file then hit Update, the result is directly shown on the IoT device's debug serial port by a message that it has started the update. Then when the file data has been fully received and verified the IoT device resets and the new firmware starts running. This works fine but involves a web browser...
When I use the method above then there is no error message or such generated, and there is also no debug message from the IoT device saying that update is in progress. In fact once the method is done nothing has happened on the IoT device. It looks like the IoT server is quietly disregarding the call.
So something is clearly missing here, but what?
How does one simulate the action of a form submission in a web browser but using Indy components in a FPC/Lazarus program?
|
|
|
| Need help implementing Base64Encode/DecodeBytes |
|
Posted by: RaelB - 04-30-2018, 05:07 PM - Forum: Indy
- Replies (2)
|
 |
Hello,
Can someone help me implement these functions (in Delphi XE4)
function Base64EncodeBytes(Input: TBytes): TBytes;
function Base64DecodeBytes(Input: TBytes): TBytes;
Could be using Indy or Soap.EncdDecd.
Thank you
Rael
|
|
|
| CSS & IE11 |
|
Posted by: JalcoJohn - 04-30-2018, 03:38 PM - Forum: IntraWeb General Discussion
- Replies (4)
|
 |
Hi Guys, I've developed an application that uses Style Sheets, each form has the same CSS file and each component has it's CSS property set to an entry in the CSS file.
All works brilliantly in Chrome, Firefox & Opera but Internet Explorer just won't play ball and doesn't seem to apply anything from the CSS file. My experience of CSS/HTML is limited and I guess IE doesn't like something in my CSS.
Any ideas or pointers would be much appreciated, I'm pulling my hair out.
Thanks
|
|
|
|