ScottLininger wrote:
On the WebDialog topic...
We wrote a somewhat generic bridge between JS and Ruby that we used for Dynamic Components. I learned a lot from that and would have some thoughts on how to build a new one that's truly generic and easy to use. That's almost worthy of its own big thread.
One note: I think it would be work for the JS code side of a bridge to be stored in the ruby and then dumped into the WebDialog via execute_script, so JS code side of things would call something like this:
- Code: Select all
window.location.href='skp:initialize_bridge';
...and then from there would have access to whatever JS methods we implement.
Scott,
Would it possible to give a brief overview of design?