Norm Posted October 5, 2020 Share Posted October 5, 2020 I am trying to use the on-resize javascript event in urlFrame HTML attached to the UniLoginForm but it does not seem to fire. The event works on the urlFrame attached to the MainForm (TUniForm). What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 5, 2020 Share Posted October 5, 2020 10 hours ago, Norm said: I am trying to use the on-resize javascript event in urlFrame HTML attached to the UniLoginForm but it does not seem to fire. The event works on the urlFrame attached to the MainForm (TUniForm). What am I doing wrong? Hello, Can you make a simple testcase?.. Quote Link to comment Share on other sites More sharing options...
Norm Posted October 6, 2020 Author Share Posted October 6, 2020 Sample Attached. Project consists of 2 forms (login & main) that load the same html file. The main page responds to browser window re-sizing but login page does not. SampleLogin.zip Quote Link to comment Share on other sites More sharing options...
Norm Posted October 8, 2020 Author Share Posted October 8, 2020 Any response to this please? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 8, 2020 Share Posted October 8, 2020 20 minutes ago, Norm said: Any response to this please? Hello, I see your case. But I could not find the reason yet. Quote Link to comment Share on other sites More sharing options...
Norm Posted October 8, 2020 Author Share Posted October 8, 2020 I hope you are actually investigating the cause and will provide a solution in the near future because the issue is fundamental to the project I am working on. Quote Link to comment Share on other sites More sharing options...
Norm Posted August 16, 2021 Author Share Posted August 16, 2021 Dear FMSoft, It has been a whole year since I reported this issue. You have been completely silent about a possible resolution. It is obviously an anormaly and it is seriously hampering my work. I really like your product but I will be forced to look elsewhere unless I can somehow resolve the problem. Please say something!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 16, 2021 Share Posted August 16, 2021 6 hours ago, Norm said: Dear FMSoft, It has been a whole year since I reported this issue. You have been completely silent about a possible resolution. It is obviously an anormaly and it is seriously hampering my work. I really like your product but I will be forced to look elsewhere unless I can somehow resolve the problem. Please say something!!!!!!!!!!!!!!!!! Hello Have you tried with the latest version of UniGUI? Quote Link to comment Share on other sites More sharing options...
Norm Posted August 16, 2021 Author Share Posted August 16, 2021 Yes. I try with every new release. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 16, 2021 Share Posted August 16, 2021 13 minutes ago, Norm said: Yes. I try with every new release. I'm able to get the alert. So event is firing. Which build did you test with? Quote Link to comment Share on other sites More sharing options...
Norm Posted August 16, 2021 Author Share Posted August 16, 2021 The alert should fire every time you resize the browser page. Have a look at my opening argument. The sample project I suppled has 2 forms (Page 1 & Page 2). Page 1 uses TUniLoginForm, page 2 uses TUniForm. On page 1 the alert only fires when you open the form. On page 2 it fires every time you resize the browser. You get to page 2 by clicking on the login button. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 16, 2021 Share Posted August 16, 2021 7 hours ago, Norm said: The alert should fire every time you resize the browser page. Have a look at my opening argument. The sample project I suppled has 2 forms (Page 1 & Page 2). Page 1 uses TUniLoginForm, page 2 uses TUniForm. On page 1 the alert only fires when you open the form. On page 2 it fires every time you resize the browser. You get to page 2 by clicking on the login button. Hello Please try below code Login -> OnScreenResize procedure TfrmLogin.UniLoginFormScreenResize(Sender: TObject; AWidth, AHeight: Integer); begin with htmlFrame, JSInterface do begin JSCallGlobal('_ssz_', [JSStatement(JSName), AWidth, AHeight]); end; end; Quote Link to comment Share on other sites More sharing options...
Norm Posted August 17, 2021 Author Share Posted August 17, 2021 Hayri, Thank you very much for this work-around. It is not an ideal solution but I can live with it. 2 questions please: - Will the underlying issue be fixed in a future update? - Can you give me access to more detailed documentation re the JSCallGlobal method so I can try to optimize your suggested solution. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 17, 2021 Share Posted August 17, 2021 12 hours ago, Norm said: Hayri, Thank you very much for this work-around. It is not an ideal solution but I can live with it. 2 questions please: - Will the underlying issue be fixed in a future update? - Can you give me access to more detailed documentation re the JSCallGlobal method so I can try to optimize your suggested solution. Hi, 1- I added this issue to the backlog but I can't give a timeline about when it will be fixed. 2- We are using JSCall, JSCallGlobal, JSConfig to execute javascript codes. Please check below demo. C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\Using JSInterface Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.