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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 107,606
» Latest member: Fa88bcom
» Forum threads: 2,440
» Forum posts: 11,408

Full Statistics

Online Users
There are currently 1551 online users.
» 1 Member(s) | 1547 Guest(s)
Applebot, Bing, Google, xoilaczcv

Latest Threads
issue with migrate delph ...
Forum: IntraWeb General Discussion
Last Post: PDSBILL
9 hours ago
» Replies: 1
» Views: 26
Sendig email form isapi d...
Forum: IntraWeb General Discussion
Last Post: lfeliz
Yesterday, 07:15 PM
» Replies: 0
» Views: 24
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
Yesterday, 10:17 AM
» Replies: 1
» Views: 693
Strict CSP Implementation
Forum: IntraWeb General Discussion
Last Post: joelcc
11-02-2026, 08:28 PM
» Replies: 1
» Views: 172
Form doesn’t resize with ...
Forum: IntraWeb General Discussion
Last Post: BathDragonfly
10-29-2026, 09:48 AM
» Replies: 0
» Views: 132
Rerendering CG Tab Contro...
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-29-2026, 07:38 AM
» Replies: 5
» Views: 650
Simply replacing the IW i...
Forum: IntraWeb General Discussion
Last Post: DidierMenant
10-28-2026, 10:31 AM
» Replies: 0
» Views: 208
Simply replacing the IW i...
Forum: IntraWeb General Discussion
Last Post: DidierMenant
10-28-2026, 10:30 AM
» Replies: 0
» Views: 191
IWDevTools
Forum: IntraWeb General Discussion
Last Post: AndreasK
10-26-2026, 01:19 PM
» Replies: 0
» Views: 217
SSL Revisited
Forum: IntraWeb General Discussion
Last Post: rlebeau
10-19-2026, 09:24 PM
» Replies: 3
» Views: 836

 
  OnClick or OnAsyncClick ?
Posted by: SorenJensen - 08-02-2019, 12:43 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi,

Could anyone tell me the difference between the two ?

And when would you use the one or the other ?

Regards
Soren

Print this item

  IW 15.1.2 download issue
Posted by: SorenJensen - 08-02-2019, 04:21 AM - Forum: IntraWeb General Discussion - Replies (3)

Hi Alexandre,

I see from the tread about IW 15.1.2 is out, that you have a number of issues to solve, so this might not be the most urgent:

When installing the IW 15.1.2, and selecting the "Install IWBootstrap Demos and Resources", the installer downloads 1,91mb out of 9,15mb and then halts with the message "Sorry, the files could not be downloaded. Click Retry.... or cancel...."

Retry do not solve it.

NB! I am running the install as administrator and my viruscheck is off.

Regards
Soren

Print this item

  IW 15.1.x+ gSessions.Execute Q&A
Posted by: DanBarclay - 08-01-2019, 07:45 PM - Forum: IntraWeb General Discussion - Replies (2)

Finally upgrading to 15.1.2, I've got some questions (based on some assumptions) about dealing with session lists.

One thing I do occasionally is rip through the sessions to gather status information, including some app specific data from UserSession.

Questions regarding gSessions.Execute(): 
1.  Is it safe to read data from UserSession?  (form xx:=TIWUserSession(LSession.Data).MyValue)
2.  Is it safe to write data to UserSession?  (form TIWUserSession(LSession.Data).MyFlag:=true)
3.  Do I need to lock the session, or does the gSessions.Execute() lock before calling the procedure?

I do know that this kind of procedure works (see snip below), just converting from the SessionList demo, but:

Code:
gSessions.Execute(LSessionList[i],
        procedure(aSession: TObject)
        var
          LSession: TIWApplication absolute aSession;
        begin
          LSession.Lock;

          try
            xx:=TIWUserSession(LSession.Data).MyValue;
             // etc
          finally
            LSession.Unlock;    
          end;
        end;);

Is this kind of cross session (UserSession access) safe?
Is the session.lock redundant? 

I finally got back to work on some IW stuff so am upgrading, but my source access isn't turned on yet so I don't know what's behind the .execute curtain.

Thanks,

Dan

Print this item

  WebApplication.SendFile question
Posted by: Toni Santa - 07-31-2019, 03:50 PM - Forum: IntraWeb General Discussion - Replies (3)

Hi, 
putting the code in a buttons AsyncClick-event the 4 parameter with the filename is ignored. This can be reproduced with the DownloadFromCache sample project. 

Code:
procedure TIWForm23.btnDownloadAsyncClick(Sender: TObject;
  EventParams: TStringList);
begin
  WebApplication.SendFile(gSC.CacheDir + FFileName, True, FContentType, 'SampleFile.txt');
end;

In mine real time app I've code where after a SendFile in the browser appears the hourglass and hangs when the same code is executed from the click-event, but works fine from the AsyncClick-event. But the AsyncClick has above problem ignoring the filename.
IW15.1.0 Evaluation, Delphi Rio 10.3.1
Thx
Toni

Print this item

  IW 15.1.2 is out
Posted by: Alexandre Machado - 07-31-2019, 09:44 AM - Forum: IntraWeb General Discussion - Replies (20)

Hi guys!

There is a new update for IW 15, version 15.1.2.

This version includes the new IntraWeb Bootstrap 4 Framework* and also several important bug fixes.

Here is it: https://www.atozed.com/2019/07/intraweb-15-1-2/


* IWBS4 was IW users Loren Szendre and Shane Stump for IW 15.0, based on existing IWBS3 framework. Is is also open source, as previous version.
We updated the library to become compatible with latest IW 15.1 branch and included it in our standard setup. 
Thanks, guys!


Enjoy!  Smile

Print this item

  TIWURLWindow question
Posted by: Toni Santa - 07-31-2019, 09:41 AM - Forum: IntraWeb General Discussion - Replies (3)

Hi, I'm using the TIWURLWindow-control to show the contents of a PDF file with following code found in your examples

Code:
procedure TfrmMain.SendPdfStreamToURLWindow(const aPDFFile, aUserFilename: string);
var
  xURL: string;
  xFileStream: TFileStream;
begin
  uwAnteprima.URI := '';
  xFileStream := TFileStream.Create(aPDFFile, fmOpenRead);
  try
    xURL := TIWAppCache.StreamToCacheFile(Self, xFileStream, TIWMimeTypes.GetAsString(mtPDF), ctOneTime);
    uwAnteprima.URI := xURL;
  finally
    xFileStream.Free;
  end;
end;
All works fine. Now the pdf-viewer (f.e. in Edge or Chrome) has a "download"-button. Clicking it, the browser shows a "cryptic" name. Is there a way to force the cache-filename with the name of my choice (original name or somewhat stored in my underlying database)?
thanks and best regards
Toni Santa

Print this item

  15.1.1 WebApplication.RunParams.Values issue
Posted by: zsleo - 07-31-2019, 01:19 AM - Forum: IntraWeb General Discussion - Replies (1)

I rebuilt an app as stand alone and the WebApplication.RunParams.Values that was working for years is now not parsed unless I set ShowStartParams = True.

If ShowStartParams = False then WebApplication.RunParams.Values.Text = null string.

Help to fix this please...

I have also tried by as HTTP SYS

TIA

Print this item

  General question
Posted by: msgopala - 07-30-2019, 02:16 PM - Forum: IntraWeb General Discussion - Replies (3)

Sorry to be posting this here but I am at a loss. How do I prevent brute force attack .

Problem:

After going live with my IW dll we have had insane amount of ping requests t non-existant folders and files. We are a very small shop and I have tried changing IP bindings, blocking IP and IP ranges on the server firewall and IIS. Pings have reduced but still there. The failed request trace logs show IPs from China, Brazil, Russia etc.

IIS goes down after repeated pings and our intraweb dlls stop working when users are logged in. 

I appreciate any advice I can get. 

Sorry about posting this here.

Print this item

  Session open even close browser
Posted by: v.lasquibar@telefonica.net - 07-29-2019, 06:52 PM - Forum: IntraWeb General Discussion - Replies (1)

Hi,
I have an app developped in Delphi 10.2 with IW 15.1, and installed as a service (Mode SA). Sometimes I found this behaviour:
- User starts application (http:my_server:34567/$/start) and perform some actions. The controls can show depends on actions.
Then, user:
a) Start another browser without closing the first one. User can see same form than in the same, with some diferencies.; or
b) User closes browser and start it again, or open a different browser. User can see last form, instead the first one.

Is there any way to force the browser to go to the first form, initial status?

Best regards,

        Venancio Lasquibar

Print this item

  Outlook 2016 - iCal
Posted by: leeparvin - 07-29-2019, 12:32 PM - Forum: Indy - Replies (1)

Hi there

I have code that would send calendar invites ie Email with .iCal attachment.    The email would be text saying.... 'Please Accept this Calendar invite', with an appropriate calendar attachment.

Please see :-
https://www.indyproject.org/2005/08/17/html-messages/
https://stackoverflow.com/questions/1952...5#19535685

Originally the code was passed to an OnPremise Exchange and dispatched.  Outlook received the correctly formatted email and all was fine.

However, we have now moved to Office 365 and the SMTP settings have been changed accordingly. 

Please see -
https://stackoverflow.com/questions/1773...-office365

However, the emails that are now received in outlook, but DO NOT  show the Accept/Decline buttons etc.  It is as if, the email is received, but not seen as a Calendar event.

Do you have any suggestions?

Many thanks

Lee


Just to confirm Im using Delphi 10.2

Print this item