Page 1 of 1

Non-editable HTML area > rendered as plain text

PostPosted: Mon Jan 23, 2017 4:39 pm
by tom
Hi,

As a beginner in Servoy this one is probably very obvious, but I can't find a way to make it work.

I'm trying to render some html (and css, and javascript) in a non-editable HTML-area. Only html works, but as soon as I add some Javascript, the output is just rendered as plain text. The idea for this came from this tutorial: http://www.dotzlaw.com/tutorials/servoy-tutorials/servoy-tutorial-css-callbacks/. It's not working at all... The css is not added, and there is no functionality at all.

I also tried the examples from the default Servoy wiki (https://wiki.servoy.com/display/public/DOCS/Customizing+the+Web+Client#CustomizingtheWebClient-InteractingwiththeBrowserEnvironmentthroughNon-editableHTMLAreas). Same result: plain text.

Any idea what I'm doing wrong?

Thanks in advance!

T

Re: Non-editable HTML area > rendered as plain text

PostPosted: Mon Jan 23, 2017 4:43 pm
by patrick
Hello T,

that sounds like your html is sanitized for security reasons and this could clarify or help: https://wiki.servoy.com/pages/viewpage. ... d=23397000

Re: Non-editable HTML area > rendered as plain text

PostPosted: Tue Jan 24, 2017 10:15 am
by tom
Thank you, Patrick! That did the trick!

Still looking for a good guide to fully understand Servoy. The wiki is great as a reference, but not for learning Servoy.

Re: Non-editable HTML area > rendered as plain text

PostPosted: Tue Jan 24, 2017 10:51 am
by patrick
The Wiki has a quick-start guide that also offers videos in certain areas. That area is less reference and more how-to. You could also have a look at http://www.servoyuniversity.com/ for a bunch of videos for all experience levels.

Re: Non-editable HTML area > rendered as plain text

PostPosted: Tue Jan 24, 2017 11:02 am
by tom
Will dive into that.

Thank you for the efforts!