NetTalk Central

Author Topic: Display HTML code in a StringTheory object on a page?  (Read 4359 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Display HTML code in a StringTheory object on a page?
« 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

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Re: Display HTML code in a StringTheory object on a page?
« Reply #1 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

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Display HTML code in a StringTheory object on a page?
« Reply #2 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