Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3714 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted
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?
Posted

 

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.

 

Did you use that function in a script or in a calculated field?

Posted
GetLayoutObjectAttribute ( "webviewer" ; "content" )

is the equivalent of 'View Page Source' - so no access to the DOM.

 

 

Have you thought of exploring HTML5's file-saving capability?

Posted

Hi Cristo, and welcome to the Forum,

 

Sample file: http://cris.lc/sxti2

 

Please post your files here. This is a learning site, and files posted at other sites have a tendency to disappear once the OP has gotten a solution to their problem. To attach a file, just follow the steps in this Article. ATTACH FILE

  • 1 month later...

This topic is 3714 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.