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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 83,914
» Latest member: on68bet68
» Forum threads: 2,412
» Forum posts: 11,325

Full Statistics

Online Users
There are currently 383 online users.
» 1 Member(s) | 379 Guest(s)
Applebot, Bing, Google, on68bet68

Latest Threads
OpenSSL and concurrent re...
Forum: Indy
Last Post: rlebeau
35 minutes ago
» Replies: 4
» Views: 58
Projeto Intraweb
Forum: IntraWeb General Discussion
Last Post: vonirpereira
07-03-2026, 06:51 PM
» Replies: 0
» Views: 37
Intraweb + Lazarus
Forum: IntraWeb Dúvidas Gerais
Last Post: vonirpereira
07-03-2026, 06:35 PM
» Replies: 0
» Views: 18
Image question on tiwjqdb...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:19 AM
» Replies: 4
» Views: 4,232
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
07-01-2026, 12:04 AM
» Replies: 4
» Views: 594
CSS file not reloading af...
Forum: IntraWeb General Discussion
Last Post: Gustave
06-30-2026, 09:00 PM
» Replies: 0
» Views: 66
IW 16.2.0 Missing librari...
Forum: IntraWeb General Discussion
Last Post: Gregory_Twedt
06-24-2026, 04:40 AM
» Replies: 5
» Views: 765
VCL conversion
Forum: Delphi General Discussion
Last Post: tobenschain
06-20-2026, 05:00 AM
» Replies: 0
» Views: 132
TIWjQDBGrid changing UI
Forum: IntraWeb General Discussion
Last Post: BoostedCruiser
06-08-2026, 02:02 AM
» Replies: 36
» Views: 70,821
Access Violation When Val...
Forum: IntraWeb General Discussion
Last Post: Alexandre Machado
06-03-2026, 08:47 AM
» Replies: 2
» Views: 570

 
  push data to browser
Posted by: MrSpock - 06-22-2019, 06:46 AM - Forum: IntraWeb General Discussion - Replies (7)

intraweb 14

I have used a method to check server state with onAsyncTimer installed on browsers. Every second browser timer fires a question to the server. This takes too much traffic for 100 browser connected. How to implement that to push data to browser when for example server side timer detects a change and needs to notify browser to refresh its page.

Print this item

  Form height and HTML
Posted by: OronzoConte - 06-20-2019, 04:27 PM - Forum: IntraWeb General Discussion - Replies (5)

Hallo,
I have problems in converting HTML to PDF. The reason, I think, is that the height of the form (delphi) differs from HTML height. Infact Delphi sees wrapped labels as 1 line. 
Normally I set Form Height as the top of the last line but it seems not to be possible with wrapped labels. 
I tried calculating the height of wrapped labels in JavaScript and posted the value in a label of the screen. I see the value but when I read  that value (on click) it returns empty. 
Any suggestion?
Is there another way to resize the form with the correct height?
Best regards

Print this item

  Template not visible TIWWebOSMaps
Posted by: matija - 06-19-2019, 10:24 AM - Forum: IntraWeb General Discussion - Replies (6)

In my template not visible TIWWebOSMaps

<div class="container-fluid"> 
    <div class="row">
         <div class="col">  
              {%OSMap%}
        </div>
    </div>
</div>

Config MapOptions is Ok.
RenderStatus, RenderVisible, RenderZIndex = true ... other false;

Print this item

  Async events dont trigger after IW 15.0.22/23 update
Posted by: msgopala - 06-18-2019, 12:02 PM - Forum: IntraWeb General Discussion - Replies (19)

After updating to  IW 15.0.22 the Async events have stopped working for TMS controls. Updated to 15.0.23 but the problem exists.

Print this item

  IW 15.0.23 is out
Posted by: Alexandre Machado - 06-15-2019, 01:00 AM - Forum: IntraWeb General Discussion - Replies (4)

Hi,

there is a new update available, version 15.0.23. It contains a fix for a recently introduced bug regarding IWForm's OnAsyncResize/OnResize events.

https://www.atozed.com/2019/06/intraweb-15-0-23/

Cheers

Print this item

  OnClick not Submitted
Posted by: mludwig@adc-elektronik.de - 06-13-2019, 03:22 PM - Forum: IntraWeb General Discussion - Replies (5)

Hi ,

i´ve  found a strange effect after switching my Intraweb program from Delphi Tokyo Intraweb 14 to Delphi RIO Intraweb 15.0.22.

When the first IWForm (a login dialog) opens in browser none of the onclick events work.

Javascripterror :

IWBase__ED495B2B5.js:2 Error in IW.Session.execSyncResize(): urlAddSessionParams is not defined
consoleError @ IWBase__ED495B2B5.js:2
execSyncResize @ IWBase__ED495B2B5.js:4
(anonymous) @ IWBase__ED495B2B5.js:4
setTimeout (async)
doSyncResize @ IWBase__ED495B2B5.js:4
IWCL_TriggerResize @ IWBase__ED495B2B5.js:5
DoSecondResize @ IWGecko__ED495B2B5.js:1
(anonymous) @ IWBase__ED495B2B5.js:4

If i press F12 in Firefox and connect to my server again Onclick is submitted one time .

Sometimes (after  10-20 tries restarting server) Onclick works normaly. I was able to login and after than
all onclicks on all other forms works correct until i log off.  

i´ve made a simple form with only some buttons and edits and use this as mainform. Onclick in this from works.




Any idea ?

Print this item

  Send SMS with Javascript
Posted by: valmeras - 06-13-2019, 01:31 AM - Forum: IntraWeb General Discussion - Replies (1)

I am using Intraweb 14 with C++ Builder 10.2
I am trying to send SMS from the client side using JavaScript or JQuery.
And I don't want to have to use a paid API.
Does somebody has a hint ?

Print this item

  Session Timeout Custom HTML page
Posted by: msgopala - 06-12-2019, 08:08 PM - Forum: IntraWeb General Discussion - Replies (1)

Embarcadero® Delphi 10 Seattle Version 23.0.20618.2753 
Intraweb 15.0.14
TMS pack Pro
FastReport 5

Followed the Demo CustomizingExceptions\UsingTemplates and created a custom Templates with the IWSessionimeout.html page. My project still timeouts with the generic sessiontimeout page instead of this new page.


Please let me know what I may be missing or doing wrong.



Thanks

Print this item

  Active sessions problem
Posted by: ioan - 06-12-2019, 07:06 PM - Forum: IntraWeb General Discussion - Replies (23)

I have a problem where from time to time there are thousands of sessions open on the server and every time between 5% and 10% of those are legitimate, the rest... I have no idea how they were created and why. 

In my code the sessions that are for the level OPERATOR or ROOT never expire as long as the browser is still connected (the levels will appear in the pastebin and my code bellow). The AGENT level sessions are alive for 15 minutes, the USER level sessions are alive for 10 minutes and if there is no level I time out the session after 1 minute.

This works fine for many hours, but sometimes when I check the active sessions are thousands of them and they never expire:

https://pastebin.com/raw/x0YASKBS

To control the time the sessions stay active I have a timer set for 20 seconds on each form:


Code:
procedure TformBalance.HeartbeatTimerAsyncTimer(Sender: TObject;  EventParams: TStringList);
begin
  StopHeartbeatTimer(HeartbeatTimer);
end;


procedure StopHeartbeatTimer(AHeartbeatTimer: TIWTimer; ACount: integer);
var
  iHeartbeats: integer;
begin
  if ACount > 0 then
    iHeartbeats := ACount
  else
    // a hearthbeat is every 20 seconds, so the timeout its (iHeartbeats * 20) seconds.
    if UserSession.LevelString = 'USER' then
      iHeartbeats := 30
    else if (UserSession.LevelString = 'AGENT') or
      (UserSession.LevelString = 'COMPANY') then
      iHeartbeats := 45
    else if (UserSession.LevelString = '') then
      iHeartbeats := 1
    else
      Exit; // do not timeout

  if AHeartbeatTimer.Tag > iHeartbeats then
    AHeartbeatTimer.Enabled := false;
  AHeartbeatTimer.Tag := AHeartbeatTimer.Tag + 1;
end;

The ServerController's Session Timeout field value is 1.

Anyone have any idea where are those sessions coming from and why they are not timing out?

Edit: It might be a good idea for me to use the "rubber duck debugging method". Almost every time I post a question here, while I'm explaining what's happening I find the problem. Now I'm not sure if this is the fix, but a better code for the StopHeartbeatTimer procedure would handle all legitimate levels and the last "else" would be for everything else, aka timeout right away. 



Code:
    // a hearthbeat is every 20 seconds, so the timeout its (iHeartbeats * 20) seconds.
    if UserSession.LevelString = 'USER' then
      iHeartbeats := 30
    else if (UserSession.LevelString = 'AGENT') or
      (UserSession.LevelString = 'COMPANY') then
      iHeartbeats := 45
    else if (UserSession.LevelString = 'ROOT') or
      (UserSession.LevelString = 'OPERATOR') then
      Exit // do not timeout
    else
      iHeartbeats := 1;

Print this item

  IW 15.0.22 is out
Posted by: Alexandre Machado - 06-10-2019, 10:06 AM - Forum: IntraWeb General Discussion - Replies (6)

Hi guys,

there is a new update for IW 15.0 version here: 

https://www.atozed.com/2019/06/intraweb-15-0-22/

Enjoy  Smile

Print this item