Hi,
My problem is already related in an other post (
https://groups.google.com/forum/#!topic/scala-js/2v2wc6YcMOA), but I'd like to talk about it in an other point of view.
Calling javascript function on a dom (when it is fully loaded) can be really annoying when dealing with reactive generation of piece of the dom. For instance I use the Ace Editor, which needs to be generated by the call of a javascript function once the dom is generated. But, It seems doom to wait for the whole generation of the dom to finish the creation of my editor tag. It requires theses steps:
1- generation of the dom containing a "editor" id in a div tag,
2- looking for this id,
3- launching the ace init function which generates and insert a piece of code in the dom
First, it is not very efficient, because of the fact to re-search for an id in the dom. Second, it is not adapted to the behavior I want. I need to edit, a piece of code in the editor, eventually display something else, and go back to the code. It means, each time I want to use the editor, I have to regenerate the javascript code, so that I can't keep the tag in memory (and the code already written in it) as I'd do for a texearea for example.
So, I nice feature would be to be abble to call some javascript on a TypedTag, which generates another TypedTag, which can be kept in memory and reloaded when necessary without be forced to call again the javascript process.
Is it already possible ? If yes how ?
Thanks
Mathieu