Defect #275
plugins.WebClientUtils.executeClientSideJS problem
0%
Description
Hi,
I manage to reproduce the issue with plugins.WebClientUtils.executeClientSideJS when called from onShow.
The situation is like this: if I have a TabbedPane with 2 forms, one containing a calendar field and one which call in onShow the executeClientSideJS method, when switching between forms, the javascript will not be called.
It's really strange because I didn't manage to reproduce it in my first sample. Another strange thing is that the addCallback from this demo works fine.
In attached sample there is a main form with a tabbed pane which contains 3 other forms. There are 3 buttons that switch between forms.
First form has a calendar field. Second form makes a javascript call on onshow. Third form contains a html button with a call to the server (which works in this demo, but not in our application and also not in the previous demo) and also it makes a javascript call on the onShow. The javascript calls are simple alerts.
If you click on the third button (button with javascript) while having displayed the form with the calendar field, the alert will not be displayed. But if you go to the second form, by pressing the second button (button with simple form) and then press on the third button to display the javascript form, the alert called on onShow will be displayed.
If you remove the calendar field from the first form and click directly on the third button, the alert will be called.
So my conclusion now is: if the previous displayed form contains a calendar field, the current form will not execute javascript if called in onShow. I searched to see if I'm doing something wrong there, but I didn't manage to figure anything until now.
Thanks a lot,
Bogdan.
Files
History
Updated by Patrick Talbot almost 14 years ago
- Status changed from Feedback to In Progress
This one is actually a problem in Servoy, not in the plugin itself.
Johan Compagner fixed it in Servoy 6 (will be available in the next build), and he said he needed to back-port the changes in 5.2.x, to make it also available in the next build of that branch.
Updated by Patrick Talbot over 13 years ago
- Status changed from In Progress to Closed
This looks like it's fixed (Servoy v5.2.9 and Servoy 6.0.0) + plugin v1.2 (to come).
I will close the issue for now, please test again when v1.2 is released, reopen if you think there is still a problem.