Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnClick not Submitted
#1
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 ?
Reply
#2
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.
Reply
#3
Hello,

I was able to recreate this issue. I'll have a look and let you know ASAP
Reply
#4
Please update to IW 15.0.23 here: http://downloads.atozed.com/intraweb/iw15.0.23.exe

This new update fixes the resize issue
Reply
#5
BTW, I recommend you to have a look at OnAsyncResize event. It is much more flexible and powerful than synchronous Resize event....
Reply
#6
Wow , that was realy quick support.
Installed an tested it. All ok now.

Thank you very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)