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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 107,576
» Latest member: zowinircom03
» Forum threads: 2,440
» Forum posts: 11,408

Full Statistics

Online Users
There are currently 1604 online users.
» 5 Member(s) | 1596 Guest(s)
Applebot, Bing, Google, bancadoithuong39com, fly88ren, KeithBounds, xx88xyz, zowinircom03

Latest Threads
issue with migrate delph ...
Forum: IntraWeb General Discussion
Last Post: PDSBILL
6 hours ago
» Replies: 1
» Views: 23
Sendig email form isapi d...
Forum: IntraWeb General Discussion
Last Post: lfeliz
10 hours ago
» Replies: 0
» Views: 22
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
Yesterday, 10:17 AM
» Replies: 1
» Views: 691
Strict CSP Implementation
Forum: IntraWeb General Discussion
Last Post: joelcc
11-02-2026, 08:28 PM
» Replies: 1
» Views: 170
Form doesn’t resize with ...
Forum: IntraWeb General Discussion
Last Post: BathDragonfly
10-29-2026, 09:48 AM
» Replies: 0
» Views: 131
Rerendering CG Tab Contro...
Forum: IntraWeb General Discussion
Last Post: MikeComb
10-29-2026, 07:38 AM
» Replies: 5
» Views: 643
Simply replacing the IW i...
Forum: IntraWeb General Discussion
Last Post: DidierMenant
10-28-2026, 10:31 AM
» Replies: 0
» Views: 205
Simply replacing the IW i...
Forum: IntraWeb General Discussion
Last Post: DidierMenant
10-28-2026, 10:30 AM
» Replies: 0
» Views: 189
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: 832

 
  Variables IWError.html template
Posted by: ronaldobim - 09-02-2019, 12:31 PM - Forum: IntraWeb General Discussion - Replies (2)

I am trying to use the IWError.html template to customize the error page. What are all possible variables {% ..%} to use? I am having difficulty customizing the reset link and displaying error details.

Print this item

  IWCallBackFunc Bug IW 15.1.4
Posted by: omarperezh - 08-28-2019, 06:06 PM - Forum: IntraWeb General Discussion - Replies (1)

IW is trying to clear an uncreated object, Add Lines commented below //OPH20190826 Prevent Bug


unit IWCallBackFunc;
//OPH20190826 Prevent Bug

interface

...

implementation

...

procedure TIWCallBacks.Invoke(ACallbackRec: TIWCallbackRec);
var
  LResult: string;
  LHandled: Boolean;
  LForm: TIWForm;
  LSession: TIWApplicationAccess;
begin
  LSession := TIWApplicationAccess(FSession);
  if not Assigned(LSession) or not Assigned(LSession.ActiveForm) then begin
    Exit;
  end;

  LForm := TIWForm(LSession.ActiveForm);
  try
    //Pass a copy of all Request params to the Callback.
    if not Assigned(FEventParams) then begin
      FEventParams := TIWStringList.Create;
    end;
    FEventParams.AddStrings(LForm.Params, False);
    if Assigned(ACallbackRec.Method) then begin
      ACallbackRec.Method(FEventParams);
    end else if Assigned(ACallbackRec.Proc) then begin
      LResult := '';
      LHandled := False;
      ACallbackRec.Proc(FEventParams, LResult, LHandled);
      if LHandled then begin    // user code handles the response
        LSession.CallBackResponse.SendResponse := False;
        Exit;
      end;
      if LResult <> '' then begin
        // Write result to response as is
        LSession.CallBackResponse.AddRawText(LResult);
      end;
    end;
    if LForm.SendAJAXNotification then begin
      LSession.CallBackResponse.AddJavaScriptToExecute(LForm.GetIWAJAXNotificationJSCode);
    end;
  finally
    if Assigned(FEventParams) then //OPH20190826 Prevent Bug
      FEventParams.Clear;
  end;
end;

...

Print this item

  sending event email
Posted by: ccMcBride - 08-27-2019, 02:33 PM - Forum: Indy - Replies (14)

using delphi 10 seattle,
my email is setup like so:

Code:
      dmEmail.emMessage.ContentType := 'text/calendar;method=REQUEST';
      with tIDText.Create(dmEMail.emMessage.Messageparts) do
      begin
         ContentType := 'text/calendar;method=REQUEST';
//         parentPart := 0;
         Body.Text := eventText.Text;
      end;
      with TIdAttachmentFile.Create(dmEmail.emMessage.MessageParts, fName) do
      begin
         ContentDisposition := 'attachment';
         ContentType := 'text/calendar;method=REQUEST';
         ExtraHeaders.Values['Content-ID'] := ExtractFileName(fName);
         ContentID := ExtractFileName(fName);
         Filename := ExtractFilename(fName);
//           parentPart := 1;
      end
where fName is a .ics file that I am attempting to send.
currently, the contents of the ics file is:
Code:
BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ORGANIZER;CN=Connie M.:MAILTO:[real code has a valid email address here]
DTSTART:20190827T220000Z
DTEND:20190827T230000Z
TRANSP:OPAQUE
SEQUENCE:0
UID:185
DTSTAMP:20190827T071800Z
DESCRIPTION:3 pm my time
SUMMARY:Event on 27th
PRIORITY:2
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

my mail.txt (saving the message to file) is this:

Code:
Subject: Event on 27th
To: [real code has a valid email address here, which is different that the organizer address above]
Content-Type: text/calendar; method=REQUEST; charset=us-ascii; boundary="AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D"
MIME-Version: 1.0
Date: Tue, 27 Aug 2019 07:18:42 -0700

This is a multi-part message in MIME format

--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline



--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/calendar;method=REQUEST
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

BEGIN:VCALENDAR
VERSION:2.0
METHOD:REQUEST
BEGIN:VEVENT
ORGANIZER;CN=3DConnie M.:MAILTO:[weird that organizer name changed to start with 3D, but otherwise, same valie email address]
DTSTART:20190827T220000Z
DTEND:20190827T230000Z
TRANSP:OPAQUE
SEQUENCE:0
UID:185
DTSTAMP:20190827T071800Z
DESCRIPTION:3 pm my time
SUMMARY:Event on 27th
PRIORITY:2
BEGIN:VALARM
TRIGGER:-PT15M
ACTION:DISPLAY
DESCRIPTION:Reminder
END:VALARM
END:VEVENT
END:VCALENDAR

--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D
Content-Type: text/calendar;method=REQUEST;
    name="Event185.ics"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
    filename="Event185.ics"
Content-ID: Event185.ics
Content-ID: Event185.ics

QkVHSU46VkNBTEVOREFSDQpWRVJTSU9OOjIuMA0KTUVUSE9EOlJFUVVFU1QNCkJFR0lOOlZFVkVO
VA0KT1JHQU5JWkVSO0NOPUNvbm5pZSBNLjpNQUlMVE86Q29ubmllbUBwcm92YW50YWdlc29mdHdh
cmUuY29tDQpEVFNUQVJUOjIwMTkwODI3VDIyMDAwMFoNCkRURU5EOjIwMTkwODI3VDIzMDAwMFoN
ClRSQU5TUDpPUEFRVUUNClNFUVVFTkNFOjANClVJRDoxODUNCkRUU1RBTVA6MjAxOTA4MjdUMDcx
ODAwWg0KREVTQ1JJUFRJT046MyBwbSBteSB0aW1lDQpTVU1NQVJZOkV2ZW50IG9uIDI3dGgNClBS
SU9SSVRZOjINCkJFR0lOOlZBTEFSTQ0KVFJJR0dFUjotUFQxNU0NCkFDVElPTjpESVNQTEFZDQpE
RVNDUklQVElPTjpSZW1pbmRlcg0KRU5EOlZBTEFSTQ0KRU5EOlZFVkVOVA0KRU5EOlZDQUxFTkRB
Ug0K

--AZF7QdS9INFRk=_YwrBAXh6TL7aANRhj0D--

.

what I am getting in return :

 raised exception class EIdSMTPReplyError with message 'STOREDRV.submission.excetption : invalid recipentsException;
failed to process message due to a permanent exception with mesage.  Amessage can't be sent because it contains no recipients.  InvalidRecipientsException a message can't be sent because it contains no recipients. 


since I DO have a recipient, I'm not sure why I am getting this message.

what I am trying to do :
send an email with an event invite, with the 'accept/decline' stuff in the email.

so far, the most I have accomplished is only getting the ics file as an attachment.

it is VERY possible the ics file is incorrect (this is my first time attempting this)
any ideas what I am missing?

Print this item

  IW 17 Status?
Posted by: ShaneStump - 08-25-2019, 06:12 PM - Forum: IntraWeb 17 - Replies (7)

Howdy K!

Any update on IW 17?

Also couple of quick questions:

1) Will the IW 15.x Bootstrap libraries be compatible with IW 17 pages?

2) What new features will be available in the first release to allow better session monitoring? 

3) Will IW 17 still allow loading / unloading of ISAPI dlls without having to stop/restart IIS?

Thanks in advance and looking forward to IW 17.

Shane

Print this item

  Indy SMTP Server TLS Change Certificates while Active?
Posted by: vbgamer45 - 08-23-2019, 08:47 PM - Forum: Indy - Replies (1)

Running Indy 10.6.2.0

It seems like I can’t change the certificate files after setting
IdSMTPServer1->Active = true;

I have my test certificate loaded before that call and that domain works fine but when I try to do after that does not reload/work


What I am trying do is add STARTTLS support based on bound IP then find the right domain certificate based on the IP to load.

Trying doing this in IdSMTPServer1Connect(TIdContext *AContext)
Where I find the AContext->Connection->Socket->Binding->IP; 

Which I hoped would then allow me to load the certificate file that was needed used the following:

Code:
IdServerIOHandlerSSLOpenSSL1->SSLOptions->CertFile = aSystemDrive + "\\cert\\" + asBannerDomain + "-chain.pem";
IdServerIOHandlerSSLOpenSSL1->SSLOptions->KeyFile = aSystemDrive + "\\cert\\" + asBannerDomain + "-key.pem";

Added logging to IdSMTPServerOnBeforeCommandHandler
And the CertFile and KeyFile were still set correctly. It seems like the certificates were not reloaded.

Been using https://www.checktls.com to test with as well.

Print this item

  Ajax server error with cell phones
Posted by: bob9999 - 08-22-2019, 06:59 PM - Forum: IntraWeb General Discussion - Replies (18)

Hi there.  I have a weird issue that appears to occur when a cell phone has an networking bandwidth issue.  When the phone is on a home wi-fi network with great signal or cell tower all is fine and my application works perfectly.  I managed once to get the ajax server error when I pressed a function before the other request was completed like if the error occurred on the original request.  My client is getting the issue pretty much all the time on the road on his iPhone with Chrome.

In the server controller I have:

AllowMultipleSessionsPerUser = True
AuthBeforeNewSession = false
RestartExpiredSession = false
UseAjaxNotify = true
AjaxErrorMode = emAlert

I can trim my app more so then less bandwidth is required but there is still risk with these mobile devices.  Is there anyway to turn off the ajax errors so then if the user is continuously clicking the old requests just die or if there is an ajax error nothing is displayed to user and all just appears to be slow?

Any other ideas would be appreciated.  

Cheers!

Print this item

  15.1.4: IWClassesFix was compiled with a different version ...
Posted by: Fulgan - 08-22-2019, 11:59 AM - Forum: IntraWeb General Discussion - Replies (5)

After updating IW to 15.1.4 (from a previoulsy working version 15.x) I have this message when trying to compile any IW application in Delphi 10.2.3:

[dcc32 Fatal Error] IWApplication.pas(410): F2051 Unit IWClassesFix was compiled with a different version of IWApplication.TIWApplication

I'm using Delphi 10.2 Version 25.0.29899.2631

Print this item

  Execute JS in template
Posted by: matija - 08-22-2019, 05:59 AM - Forum: IntraWeb General Discussion - Replies (2)

In my HTML template i have JS function.

function openNav(){
...
}

procedure TForm1.IWAppFormShow(Sender: TObject);
begin

InitAddProc('openNav();');

end;

This not work?

Print this item

  IWEdit caret position
Posted by: SorenJensen - 08-22-2019, 05:53 AM - Forum: IntraWeb General Discussion - Replies (9)

Hi All,

In FormShow I put some text into the a IWEdit control and then call iwedit1.setfocus. The text is shown, but the caret is positioned before the leftmost character.

In Tedit I would use Selstart to position the caret at the end of the text, but selstart is not a property / method of iwedit.

Do anyone have a suggestion as to how it can be done ?

Regards
Soren

Print this item

  Tabbed like browsing with Intraweb ?
Posted by: SorenJensen - 08-21-2019, 10:15 AM - Forum: IntraWeb General Discussion - Replies (6)

Hi All,

I'm wondering how I can make something like tabbed browsing available for my intraweb users, and hope that some of you, who obviously know intraweb a lot more, and deeply than I, could give me some ideas of how to archive that. Note that my application is installed as a service on a server.

Would it be possible to start the same application multiple times, either in a new tab for each, or as a new browser for each ?

I have tried activating the same service on more that one tab, and technically it appears to work (no errors), but I have noticed that with more tabs, I mostly have to click more that once a a clickable component, before it activates. It is like the first time I click it, after switching tab, it's only refreshing the screen. a second click usually activates the function.

Regards
Soren

Print this item