OnClick not Submitted

<< Click to Display Table of Contents >>

Navigation:  Forum >

OnClick not Submitted

Forum link

 


 

06-13-2019, 03:22 PM:

 

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 ?

 


 

06-14-2019, 08:27 AM:

 

Problem can be reproduced easy in your Customstandalone Demo.

 

Add a IWBUTTON and a OnClick procedure.  All fine.

 

Now Add a OnResize  procedure.    If you click the Button javascripterror appears.

 

unit Main;

 

interface

 

uses

 

  Classes, SysUtils, IWAppForm, IWApplication, IWTypes, IWCompLabel,

 

  Controls, IWBaseControl, IWControl, IWCompText, IWVCLBaseControl,

 

  IWBaseHTMLControl, IWCompButton;

 

type

 

  TIWForm1 = class(TIWAppForm)

 

    IWText1: TIWText;

 

    IWLabel1: TIWLabel;

 

    IWButton1: TIWButton;

 

    procedure IWButton1Click(Sender: TObject);

 

    procedure IWAppFormResize(Sender: TObject);

 

  public

 

  end;

 

implementation

 

{$R *.dfm}

 

uses

 

  ServerController;

 

procedure TIWForm1.IWAppFormResize(Sender: TObject);

 

begin

 

 exit;

 

end;

 

procedure TIWForm1.IWButton1Click(Sender: TObject);

 

begin

 

 IWLabel1.Text := 'Click';

 

end;

 

Initialization

 

  TIWForm1.SetAsMainForm

 

end.

 


 

06-14-2019, 01:56 PM:

 

Hello,

 

I was able to recreate this issue. I'll have a look and let you know ASAP

 


 

06-15-2019, 12:52 AM:

 

Please update to IW 15.0.23 here: http://downloads.atozed.com/intraweb/iw15.0.23.exe

 

This new update fixes the resize issue

 


 

06-15-2019, 01:25 AM:

 

BTW, I recommend you to have a look at OnAsyncResize event. It is much more flexible and powerful than synchronous Resize event....

 


 

06-15-2019, 08:39 AM:

 

Wow , that was realy quick support.

 

Installed an tested it. All ok now.

 

Thank you very much