NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on April 16, 2018, 06:42:08 AM

Title: Display HTML code in a StringTheory object on a page?
Post by: JohanR on April 16, 2018, 06:42:08 AM
Hi,

Is it possible to display the contents of s StringTheory object on a form?
I have a function that populates a StringTheory object with HTML code and now want to display this on a form.


thanks

Johan
Title: Re: Display HTML code in a StringTheory object on a page?
Post by: bshields on April 16, 2018, 04:54:42 PM
Hi Johan,

If you just want to display it in a "display" field. Where it asks you for the value (just under the word Text) place st.GetValue(). Assuming st is your stringtheory object. Don't to tick allow xHTML if its HTML (or even unsafe xHTML - if its a bit fancy).

Thats a start, if its like a whole page of HTML, we'd need to do things a little differently, but a snippet of HTML should work ok.

Regards
Bill
Title: Re: Display HTML code in a StringTheory object on a page?
Post by: JohanR on April 16, 2018, 11:08:32 PM

Hi Bill

Thanks!
I tried to put it in the field, but got the "not defined in file schematic" error

Of course it should go into display area.

thanks again, working really well.


Johan