NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Nick on February 02, 2014, 08:21:31 AM

Title: Split a string in a NetWebBrowse column?
Post by: Nick on February 02, 2014, 08:21:31 AM
How can I split a string in a NetWebBrowse column like this?
string: My Company 133 MyStreet MyPlace

My Company
133 MyStreet               
MyPlace

In html I could use breaks <br> but that doesn't seem to work here.

TIA,
Nick
Title: Re: Split a string in a NetWebBrowse column?
Post by: Nick on February 02, 2014, 09:34:01 AM
If I allow xHtml in the column I thought I could use: '&lt;br&frasl;&gt;'  ( <br/> ) but that doesn't work and  '&lt;br/&gt;' neither.
Anybody knows how to do this?

TIA,
Nick
Title: Re: Split a string in a NetWebBrowse column?
Post by: Nick on February 02, 2014, 10:07:41 AM
Ok got it just <br /> encoding seems not necessary or doesn't work? Anyway it works.

I had to change this 4 times before it had any effect!!
Finally I switched on a random template-checkbox and that did it. After that the generated code changed.
I've seen that before: the checkbox-change triggers it.
Very tedious working if you're not sure if a change really makes it way to the generated code. 
Yes I checked the generated code, the old stuf was there and showed on screen in the table-column.

C9 or Nettalk-template?

Nick
Title: Re: Split a string in a NetWebBrowse column?
Post by: Bruce on February 02, 2014, 10:41:22 PM
the whole point of "allow html" is to allow you to include xHTML.
<br> is not valid, but <br/> is (as you've discovered).

'&lt;br&frasl;&gt;' is just text, and will thus be displayed as just text.

Cheers
Bruce
Title: Re: Split a string in a NetWebBrowse column?
Post by: Nick on February 03, 2014, 01:35:35 AM
Yes that's clear. I only tried '&lt;br&frasl;&gt;' because the help-text speaks about "encoding &, < and > signs".

Cheers,
Nick