NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: markster on May 07, 2013, 07:25:53 AM

Title: Show HTML in browse column
Post by: markster on May 07, 2013, 07:25:53 AM
I am trying to display a column in one of my browses as HTML. I have ticked the column setting: Allow xHTML in column, but it is only displaying the field's text which includes the HTML coding. When I create a separate field on the same parent form that contains the browse procedure that uses the field type: Display, and tick the Allow xHTML in column setting, the field's text IS displayed as HTML. I've enclosed a png file that shows the issue.

Regards,

Mark

[attachment deleted by admin]
Title: Re: Show HTML in browse column
Post by: Bruce on May 07, 2013, 09:34:18 PM
did you perhaps tick on "allow xHtml in column header" and not "allow xHtml in column"?

cheers
Bruce
Title: Re: Show HTML in browse column
Post by: markster on May 08, 2013, 03:05:16 PM
No. I definitely have the Allow xHTML in column option ticked, not the column header.

Mark
Title: Re: Show HTML in browse column
Post by: markster on May 08, 2013, 03:18:39 PM
Update: I fiddled with the allow xHTML and allow unsafe xHTML settings and discovered the following: If there is only one <p> tag in the data field containing the HTML, then it will display. But if the data field contains more than one <p> tag, not only will it not display, but when you click on the browse row that contains the data nothing happens--you cannot select it.

Can you think of any workaround to allow all the HTML in a field to be displayed? I have created a table structure that will display in tree format, but I need to be able to display HTML data in one of the fields. For example, FAQ's with the answer in HTML.

Thanks,

Mark
Title: Re: Show HTML in browse column
Post by: Poul on May 08, 2013, 03:46:30 PM
just a thought,

your original screen shot, shows your html truncated, is your field big enough?
Title: Re: Show HTML in browse column
Post by: Bruce on May 08, 2013, 09:28:58 PM
yeah, sounds to me like a field truncation problem as well. Check the "picture" on the browse column is not set to clip the field. (ie '@S255' would clip it to the first 255 chars, whereas '' wouldn't)
Title: Re: Show HTML in browse column
Post by: markster on May 10, 2013, 01:28:31 PM
Yes, that was it! When I get my tree working, I'll try and post an example...

Thanks,

Mark