Hi Guys,
I have written our application’s Setup module in HTML and JQuery. What I used to do was using the BrowserSuite bean and put my html in there. I have some Servoy function calls in the HTMl code that I used to use sendNSCommand() command to execute them and interact with my Servoy functions. So for example when a client click on a checkbox and checks something my javascript code was calling a Servoy function like: sendNSCommand(“setuproot.switchSaveCancel”); Now that the BrowserSuite doesn’t work with Servoy 7.4 upwards, I have decided to replace the bean with JFXPanel. I can show my setup options in the bean with all the jquery annimations etc. with no problem, but the problem is I can’t seem to get the html code to trigger my Servoy functions. I have tried a few methods and none of them has been satisfactory so far. I was hoping someone can help me with this issue and guide me in a right direction.
What have you tried so far and what were the results?
I assume you’ve read the documentation provided how to communicate back and forth between Servoy’s scripting layer and the scripting layer inside the svyJFXWebView component? Or are you trying to use the plain JFXPanel bean? If you do the latter, I suggest you don’t and check out the svyJFXWebView component here: https://github.com/Servoy/svyJFXWebView
Paul
Hi Paul,
I was actually trying to use JavaFXPanel bean. The main reason that I was trying to use the javaFxPanel was the HTMLEditor as we used to use the BrowserSuite for our email module as well and we needed something like tinyMCE to provide to the customers and I was told that the svyJFXWebview just handles the viewing of the html content into using javaFx. Today I tried the module and it works perfectly fine, no problems with communications between servoy and the been but the only concern is the htmlEditor which I’m going to try to integrate tinyMCE into the bean to see what can I get out of it, as I have seen a few other developers are actually using it that way. So, thanks for the suggestion, you saved me a lot of time ![Smile :)]()
Glad I could be of help.
Yes, as you have already discovered, you can just load a page into the WebView that hosts TinyMCE, giving you all the benefits of being fully in control how to configure TinyMCE and which additional addons to load with it.
As you noticed that multiple developers have already gone that way, I’d think it would make for a nice reusable module hosted on ServoyForge ![Smile :-)]()
Paul
I bet it would. I might actually try to make a reusable module to put up on servoyforge Paul ![Smile :)]()