Non-editable HTML area > rendered as plain text

Questions and answers for designing and implementing forms in Servoy

Non-editable HTML area > rendered as plain text

Postby tom » Mon Jan 23, 2017 4:39 pm

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
tom
 
Posts: 6
Joined: Mon Jan 23, 2017 4:29 pm
Location: Antwerp, Belgium

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

Postby patrick » Mon Jan 23, 2017 4:43 pm

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
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3622
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

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

Postby tom » Tue Jan 24, 2017 10:15 am

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.
tom
 
Posts: 6
Joined: Mon Jan 23, 2017 4:29 pm
Location: Antwerp, Belgium

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

Postby patrick » Tue Jan 24, 2017 10:51 am

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.
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3622
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

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

Postby tom » Tue Jan 24, 2017 11:02 am

Will dive into that.

Thank you for the efforts!
tom
 
Posts: 6
Joined: Mon Jan 23, 2017 4:29 pm
Location: Antwerp, Belgium


Return to Forms

Who is online

Users browsing this forum: No registered users and 4 guests

cron