Atozed Forums
OnClick not Submitted - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: OnClick not Submitted (/thread-1104.html)



OnClick not Submitted - mludwig@adc-elektronik.de - 06-13-2019

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 ?


RE: OnClick not Submitted - mludwig@adc-elektronik.de - 06-14-2019

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.


RE: OnClick not Submitted - Alexandre Machado - 06-14-2019

Hello,

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


RE: OnClick not Submitted - Alexandre Machado - 06-15-2019

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

This new update fixes the resize issue


RE: OnClick not Submitted - Alexandre Machado - 06-15-2019

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


RE: OnClick not Submitted - mludwig@adc-elektronik.de - 06-15-2019

Wow , that was realy quick support.
Installed an tested it. All ok now.

Thank you very much