5 Replies Latest reply on May 3, 2017 11:41 AM by disabled_Luna.media

    Get WebViewer contents after changing DOM with Javascript?

    anchorbuoy

      Title

      Get WebViewer contents after changing DOM with Javascript?

      Post

           I'm trying to use TinyMce in a webviewer in FileMaker but save the resulting HTML into a database field.
            
           I am aware of the standard practice of using an fmp:// link with a script & parameter, but that won't work in Windows (the html content returned as the parameter will likely exceed the 2048 character limit).
            
           I am using a javascript function to change the HTML DOM by putting the contents of the TinyMCE editor into another div on the page when the user clicks "Submit" inside the webviewer. However, when I use `GetLayoutObjectAttribute ( "webviewer" ; "Content" )` it shows the content of the unmodified (pre-javascript altered) page, not the page after javascript has modified the DOM.
            
           Sample file: http://cris.lc/sxti2
            
           Is this expected behavior? Am I doing something incorrectly?