Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 82,423
» Latest member: 789f1cocom
» Forum threads: 2,408
» Forum posts: 11,315

Full Statistics

Online Users
There are currently 684 online users.
» 1 Member(s) | 678 Guest(s)
Applebot, Bing, Google, Internet Archive, Yandex, ok83863org

Latest Threads
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
06-24-2026, 04:40 AM
» Replies: 5
» Views: 633
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 77
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,375
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: Fabrizio Conti
06-04-2026, 09:14 AM
» Replies: 3
» Views: 476
Access Violation When Val...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
06-03-2026, 08:47 AM
» Replies: 2
» Views: 517
Bootstrap5
Forum: IntraWeb General Discussion
Last Post: geraldtatum
06-02-2026, 06:24 AM
» Replies: 1
» Views: 416
weakpackageunit contains ...
Forum: IntraWeb General Discussion
Last Post: rlebeau
05-26-2026, 04:56 PM
» Replies: 4
» Views: 542
Custom 404 handler
Forum: IntraWeb General Discussion
Last Post: CfawesDwale
05-21-2026, 08:02 AM
» Replies: 0
» Views: 256
PopUp Menu
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
05-13-2026, 04:35 AM
» Replies: 4
» Views: 8,209
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,125

 
  IOHandler.ReadTimeout
Posted by: BartKindt - 11-18-2024, 01:12 AM - Forum: Indy - Replies (2)

By default the (Client) IOHandler.ReadTimeout is set to -1.

What does this mean if it is not changed?  Is it internally setting another default, or wil it not time out at all, and keep waiting?

I have a situation where a ReadTimeout occurs all the time with the default settings, and the Client loops. I have no idea after how much time it actually times out.

Bart

Print this item

  CGJQPDFViewer help needed
Posted by: lfeliz - 11-16-2024, 06:51 PM - Forum: CGDevTools - Replies (3)

I am tryng to use the CGJQPDFViewer to view a PDF file from the Cache folder.

I am copying the file to the Cache and setting the  

I get the error in the PDF viewer :

Message: Missing PDF "http://127.0.0.1:8888/$/MyApp/zHOG5EAdJuoVjqQJqQUg9W/EXP_20170525_583001.pdf?cache=1731781782136".

The file acually does exist in the temporary cache folder ???? I even test that it exists before I assign the value

s1 := WebApplication.UserCacheDir+ExtractFileName(UserSession.qry1DocFile.Value);
s2 := webapplication.UserCacheUrlBase+ExtractFileName(UserSession.qry1DocFile.Value);


  if fileexists( s1)then
      PDFv1.JQPDFViewerOptions.PDFFileName:= s2;

Print this item

  TListView equivalent
Posted by: denville - 11-15-2024, 05:18 PM - Forum: IntraWeb General Discussion - No Replies

Hi there - I'm (still) using CPB XE7 with IW 15.0.22, no question of updating.

I need to present some data in a table for which in CPB I use a TListView.  I need to set the background colour of each line according to the context of the line's data.  I chose TListView because tweeking the colour is easy, I simply use OnCustomDrawSubItem, extract the context from the data, and apply the colour:

if ( adlt == 'A' )
lv->Canvas->Brush->Color = (TColor)nA_COLOUR;
else if ( adlt == 'D' )
lv->Canvas->Brush->Color = (TColor)nD_COLOUR;


Easy as that!

In the web version I can format the text presentation as required (eg using sprintf to prepare a complete line) but I can't see if there is a list component that will allow me to set the colour ?

Many thanks for any advice.

Denville.

Print this item

  IWProgressIndicator
Posted by: Blanca80 - 11-14-2024, 08:52 AM - Forum: IntraWeb General Discussion - No Replies

Hello,

Our application uses a ProgressIndicator on asynchronous events but it shows the busy icon after a very short time, for example if a user clicks a button and the response is immediate the locker appears anyway and this is annoying for user experience. It's possible to extend the time before the icon appears? 

Thank you very much.

Print this item

  content handler only application
Posted by: iwuser - 11-13-2024, 08:20 AM - Forum: IntraWeb General Discussion - No Replies

Can I not have an application without forms or sessions, with content handlers only? - it gives me "Session has no active form". Maybe I'm just missing some setting somewhere?

I just have this:

  with THandlers.Add('', '*', TXXXX.Create) do begin
    CanStartSession := False;
    RequiresSessionStart := False;
  end;


I can probably do this in the OnExecuteRequest instead, and just as well, I just never expected handler-only approach to fail...

The error has no session ID. But it does mention a single cookie. And it's a POST - IW trying to establish a session after the initial GET.

Error details:

------------------------------------------------------------------------------------------------------------------------
Exception message : Session has no active form
Depending on the error condition, it might be possible to restart the application.
Exception class : EIWNoActiveForm
Exception address : 0000000000F19808
Exception Time : 2024-11-13 19:08:03.875
------------------------------------------------------------------------------------------------------------------------
Client IP address : AAA.BBB.CCC.DDD
Request PathInfo : /
Request Method : POST
Request User Agent : Mozilla/...
Cookies Count : 1

Print this item

  service workers in IW?
Posted by: iwuser - 11-13-2024, 07:30 AM - Forum: IntraWeb General Discussion - No Replies

Does IntraWeb provide for a way to add/change browser request headers on a redirect? - I know that it's a security issue and was not traditionally possible, but apparently some such things can now be done with service workers. If there's already some plumbing for this in IW, then it would save me a lot of time. Would also be nice to know the rules: what can and cannot be done in what cases.

Print this item

  call JS from Delphi code
Posted by: iwuser - 11-11-2024, 07:30 AM - Forum: IntraWeb General Discussion - Replies (3)

There are many examples of the reverse, but none that gives you ability to call a JS function on a page from Pascal. Is it possible?

For instance, I want to submit a form. Which I have just dynamically created on the page.

I know that if I add some OnLoad JS somewhere and click some button synchronously, it would re-render the form, execute that OnLoad function and this can submit my form, but I'm trying to avoid reloading the form, I want the buttons to work asynchronously, so there will be no reload and any OnLoad events there would not fire.

Print this item

  content handlers, sessions and cookies
Posted by: iwuser - 11-11-2024, 06:11 AM - Forum: IntraWeb General Discussion - Replies (1)

Without a lot of doco, everything becomes a problem. If these questions are already covered anywhere, can someone please point me there? -

1) I can see a new session created on every new request to a content handler, but at the same time, no cookie is being set. I would have thought the IW cookie should be set automatically to match the Session, so if a content handler is called 1,000 times, it would not leave 1,000 sessions behind. I'm creating content handlers with:
          CanStartSession := True;
          RequiresSessionStart := False;

Are there any tricks to it, or would session handling need to be coded from scratch, if needed? Because without this, what good are these ephemeral sessions anyway?

2) Also. can a handler be defined for a wildcard path, like /do/*? - to respond on both /do/this and /do/that?

Or defined for /do, so that requests for /do/something trigger it? - because from what I see, it's not happening.

Or can content handlers be released and recreated at runtime, i.e.: in a form event? - because I need to listen on a number of configurable paths, which may change from time to time and I would not want to restart the service every time this list changes.

3) There're AddRootHandler & AddStartHandler methods there as well. What do they do / what are they for?

Print this item

  Creating TIWGrid dynamically on a frame
Posted by: troberts - 11-11-2024, 02:39 AM - Forum: IntraWeb General Discussion - Replies (1)

I have a frame which I am displaying on four pages of a TIWTabControl. The four TIWTabPage pages are created dynamically, and as each one is created an instance of the frame is created and assigned to the page by setting its parent. There are some components such as TIWButtons on the frame and everything up to this point works perfectly.

I need to add a TIWGrid to the frame. I can place one on the frame in design time and it works but I can only update the grid on the first tab page. I figured out that this was because each instance of the grid must have a unique name. I tried setting the name in the IWFrameRegion create event but that did not work. It resulted in access violations.

So I then decided to create the grid dynamically, again in the IWFrameRegionCreate, and assign a unique name to each grid. This was partially successful.

Code:
  GrdHours := TIWGrid.Create(Self);
  ConfigureGrid(GrdHours, 'GrdHours', 335, 11);

And my ConfigureGrid method:

Code:
  procedure ConfigureGrid(AIWGrid: TIWGrid; AName: string; ATop: Integer; ALeft: Integer);
  begin
    AIWGrid.Parent := IWFrameRegion;
    AIWGrid.Name := AName + ComponentID.ToString;
    Inc(ComponentID);
    AIWGrid.Caption := '';
    AIWGrid.Left := ALeft;
    AIWGrid.Top := ATop;
    AIWGrid.Width := 377;
    AIWGrid.Height := 165;
    AIWGrid.UseFrame := False;
    AIWGrid.UseSize := True;
    AIWGrid.ShowEmptyCells := True;
    AIWGrid.ShowInvisibleRows := True;
    AIWGrid.ColumnCount := 4;
    AIWGrid.RowCount := 7;
    AIWGrid.ScrollToCurrentRow := False;
  end;

It works, and I can update the grid on each frame individually, BUT the problem is that all four grids are visible on the first tab page and none are visible on the other three tab pages.

I am creating some other components like TIWLabels using this same technique and there is no problem with them. Each tag page has its own instance of the label. 

To summarise: I create four instances of the tab page, and each page contains a dynamically created TIWGrid. All four instances of the grid are visible on the first tab page, and the other three tab pages do not show any grids.

Is there some other property of the grid I need to set to make it display on the tab page it belongs to?

Thank you!

Print this item

  NTLM Support for TidSMTP
Posted by: Matt G - 11-10-2024, 08:05 PM - Forum: Indy - Replies (2)

Is this something that is currently supported, downloaded the latest source after coming across AV's with this SASL processing and it looks like this is not enabled?

Code:
AV was with this line: setup_des_key(PDES_cblock(Integer(Akeys) + 7)^, ks);


Is there any information on NTLM support now or is that gone?

Looks like IdFIPS.pas disables NTLM by default now:

Code:
function DefLoadNTLMLibrary: Boolean;
begin
  Result := False;
end;



Thanks
Matt

Print this item