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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 800
» Latest member: Ae29vik1
» Forum threads: 1,305
» Forum posts: 6,592

Full Statistics

Online Users
There are currently 89 online users.
» 0 Member(s) | 86 Guest(s)
Bing, Google, Yandex

Latest Threads
TIWFileUploader Event
Forum: IntraWeb General Discussion
Last Post: DanBarclay
1 hour ago
» Replies: 5
» Views: 207
TIWDBGrid events on a mob...
Forum: IntraWeb General Discussion
Last Post: kudzu
5 hours ago
» Replies: 3
» Views: 128
OpenSSL 'ChangeCipherSpec...
Forum: IntraWeb General Discussion
Last Post: pgnair
10 hours ago
» Replies: 14
» Views: 588
Session Timeout in IW 15....
Forum: IntraWeb General Discussion
Last Post: davidmcevoy@outlook.com
Today, 09:49 AM
» Replies: 0
» Views: 24
BootStrap 4 Dialogs Broke...
Forum: IntraWeb General Discussion
Last Post: ShaneStump
01-23-2021, 09:49 PM
» Replies: 1
» Views: 59
Barcode Scanning?
Forum: IntraWeb General Discussion
Last Post: donjuandomain
01-23-2021, 03:41 AM
» Replies: 16
» Views: 4,419
javascript in a template ...
Forum: IntraWeb General Discussion
Last Post: kudzu
01-21-2021, 03:36 PM
» Replies: 4
» Views: 103
progress message
Forum: IntraWeb General Discussion
Last Post: tobenschain
01-21-2021, 12:07 PM
» Replies: 2
» Views: 127
Make TIWImage transparent
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
01-21-2021, 11:38 AM
» Replies: 3
» Views: 138
Quick Question
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
01-21-2021, 11:28 AM
» Replies: 1
» Views: 117

 
  Session Timeout in IW 15.1.19
Posted by: davidmcevoy@outlook.com - Today, 09:49 AM - Forum: IntraWeb General Discussion - No Replies

Hi, I am having issues with getting the timeout to function properly.

I have set a basic new application, set the timeout to one minute and I have IWSessionTimeOut.html in the templates directory.

I find that if you try and interact with the app immediately after the timeout has expired the page is shown correctly.  However if you leave it for a couple of minutes later than that, I am getting the standard IW exception message Session not found rather than my timeout html.

Is this a bug in IW or is there something else I should be doing as it is not obvious to me.

Thanks in advance.
David

Print this item

Big Grin BootStrap 4 Dialogs Broken...
Posted by: ShaneStump - 01-23-2021, 05:05 AM - Forum: IntraWeb General Discussion - Replies (1)

Howdy Alexandre!

As I have mentioned before, when you introduced  the RenderAsyncEnabled feature, it broke my IW apps (after I just got them working from the previous breaks  Big Grin).

Any how, I finally have some free time, I installed the latest IW, and my IWBS4 dialogs based on Loren Szendre Moab dialog components are broken.

I have  a general Message Dialog class I wrote based on it and I am going to put together an example tomorrow with it broken.

Before I do that and if you see this message and answer, it there something you changed that would have broken the Moab code? I have RenderAyncEnabled = False in ServerController and the TIWForms.

Thanks in advance,

Shane

Print this item

  javascript in a template HTML
Posted by: bhainak - 01-20-2021, 07:42 PM - Forum: IntraWeb General Discussion - Replies (4)

Hello in my application, i  am using a template file to with th IWTemplateProcessorHTML1 component. 
In this template i have a little Javascript to know the type of device ( iphone, PC ....etc)
when i open th Html file inChrom ,it is ok the test is ok and my variables are appaering in Chrome.

But in my application nothin , the application is launching but nothing ara display en the screen.

We can't make java script in a template.

So, if it is my problem,  how can i do to make javascript in my program, where , and how can i retrieve the result of the javascript in a delphi variable 


this is my template
<html>
  <head>
    <title></title>
  </head>

  <body>
  <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
if( navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/iPad/i)
|| navigator.userAgent.match(/iPod/i)
|| navigator.userAgent.match(/BlackBerry/i)
|| navigator.userAgent.match(/Windows Phone/i)
){
document.write(' <div align="center">');
document.write('   Vente à distance<br/>');
document.write('Merci de vous loguer <br/>');
document.write('<br/>');
document.write('{%iwlabel1%}  &nbsp;&nbsp;&nbsp;&nbsp;{%user%}&nbsp;<br/>');
document.write('<br/>');
document.write('{%iwlabel2%}&nbsp;{%mdp%}<br/>');
document.write('<br/>');
document.write('{%valider%}&nbsp;<br/>');
 
document.write('<br/>');
document.write('{%iwlabel5%}<br/>');
document.write('{%iwlabel6%}<br/>');
document.write('{%iwlabel4%}&nbsp;&nbsp;{%nmdp1%}<br/>');
document.write('<br/>');
document.write('{%iwlabel3%}&nbsp;{%nmdp2%}<br/>');
document.write('{%changermdp%}&nbsp;<br/>');
document.write('{%iwimage2%}<br/>');
document.write('{%iwimage1%}<br/>');
document.write('{%iwlabel9%}<br/>');
 
 
document.write('</div>');

  }
else {
   
document.write('<div align="center">')
document.write('  IPHONE{%iwlabel7%}<br/>')
    document.write('{%iwlabel8%}<br/>')
document.write('<br/>')
document.write('{%iwlabel1%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%user%}&nbsp;<br/>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%valider%}&nbsp;<br/>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%iwlabel2%}&nbsp;{%mdp%}&nbsp;&nbsp;{%iwimage4%}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<br/>')
document.write('<br/>')
document.write('<br/>')
document.write('{%iwlabel5%}<br/>')
document.write('{%iwlabel6%}<br/>')
document.write('<br/>')
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%iwlabel4%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%nmdp1%}&nbsp;&nbsp;{%iwimage5%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>')
 
document.write('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%changermdp%}&nbsp;<br/>')
document.write('&nbsp;&nbsp;{%iwlabel3%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%nmdp2%}&nbsp;&nbsp;{%iwimage6%}<br/>')
document.write('{%iwimage2%}<br/>')
document.write('{%iwimage3%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{%iwimage1%}{%iwimCR%}{%iwLCR%}<br/>')
document.write('{%iwlabel9%}<br/>')
document.write('{%iwlabel10%}<br/>')
document.write('{%iwbutton1%}<br/>')
document.write('<br/>')

document.write('&nbsp;&nbsp;{%chadmin%}&nbsp;&nbsp;{%mdpad%}&nbsp;&nbsp;{%btnad%}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>')

document.write('</div>');

 
}
  </SCRIPT
 
     
 
  </body>
</html>



Thank's

Print this item

  Freepascal Daemon with indy GMU libraries
Posted by: hendo3018 - 01-19-2021, 11:51 PM - Forum: Indy General Discussion - Replies (2)

I had a windows service application built on Delphi that I have successfully converted to a linux freepascal Daemon. My plan is to run it on a OEL7 server, no GUI, however the indy components are compiling in GNU dependencies

librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f665d750000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f665d74a000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f665d560000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f665d53e000)


I am using
IdUDPServer
IdTCPServer

Has anyone been able to prevent these dependencies from compiling to executables?

Print this item

  start the application with a differente presentation depending on the device model
Posted by: bhainak - 01-19-2021, 03:13 PM - Forum: IntraWeb General Discussion - Replies (2)

Hello how to make the application have a different presentation depending on whether it is launched on a smarphone or an I-phone and on a PC.

In one case it would be in portrait mode and in the other, in landscape mode.

I think you need to run a JavaScript at startup, but how to get the result of the javascript function to tell Intraweb to use a portrait or landscape template.

thank's

Print this item

  IdAntiFreeze
Posted by: Airmech - 01-19-2021, 12:58 PM - Forum: Indy General Discussion - Replies (1)

Hi,

Has the AntiFreeze component been removed from the latest version of Indy on CBuilder 10.4?
I've looked everywhere for it and I'm damned if I can find it.

Thanks


Never mind, I found the reason why its missing.
Thanks.

Print this item

  SSL 64-bit Block Size Cipher Suites Supported (SWEET32)
Posted by: pgnair - 01-19-2021, 03:51 AM - Forum: IntraWeb General Discussion - Replies (1)

We are getting the vulnerability 'SSL 64-bit Block Size Cipher Suites Supported (SWEET32)' on this quarter PT. Here is the cipher what we are currently using

Code:
TInServerIOHandlerSSLOpenSSL(IOHandler).SSLOptions.CipherList :='ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:
DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:!ADH:!EXP:!RC4:!eNULL@STRENGTH'

Print this item

  Best way to detect client location country on indy http server
Posted by: Ahmed Sayed - 01-17-2021, 02:41 PM - Forum: Indy General Discussion - Replies (2)

Hi,
I am working on an app that will work on desktop and mobile, I want to limit the access for users to a certain country for example "Egypt". Now what is the most secure way to do so, the service will use tokens and HTTPS and everything else that will secure it. But what I am asking is which one of the following is best:

1- Get the location on client side and send the lat, lang or country code like "EG" in an http header.
2- Detect the location on server side only on logins via client IPs (I don't know how to do this? I believe there is a service that can get you the location from IP, but I know that IP addresses sent to server are not the real ones and I don't know if they really point to the client location or not)
3- Let's say Option 2 is the correct way should validate the location with each request or just at login as I said?
Thanks in advance any help will be appreciated

Print this item

  IDHTTP.Get - "Socket Error #11001. Host not found""
Posted by: zarkogajic - 01-15-2021, 01:50 PM - Forum: Indy General Discussion - Replies (6)

Hi,

A confession first: I've never been playing too much with Indy, so my knowledge is limited to simple tasks.

A task is to send a Get request to a web page (actually an ASP.NET AXD HttpHandler) and receive some response back.

As simple code as:

Code:
var
  idHTTP : TIdHTTP;
  response : TStringStream;
begin
  response := TStringStream.Create('');
  idHTTP := TIdHTTP.Create(nil);
  try
    try
      idHTTP.Get('http://mywebsite.com/MyHandler.axd?id=123', response);
      if idHTTP.ResponseCode = 200 then
        //log ok
      else
        //log not ok
      ;
    except on E : Exception do
      //log exception
    end;
  finally
    idHTTP.Free;
    response.Free;
  end;
end;

For most users this works - response is received.

For some users, the following error is returned "Socket Error # 11001. Host not found.". I suspect it has to do with proxy they are using.

What options do I have to let those "socket error" users specify some more parameters and be able to receive response?

-žarko

Print this item

  libeay32.dll not found
Posted by: Matti1104 - 01-15-2021, 01:36 PM - Forum: Indy General Discussion - Replies (5)

Hallo,

I try to deploy a software for a ftp-server access. I am using the c++ builder 10.2.3 with indy 10. If I try to connect to the server I get the error message "ssl negotiation failed".
The function "WhichFailedToLoad()" gives back "libeay32.dll not found". A copy of the dll to the application folder nit helps.
What can I do, to solve this problem?

Print this item