You can use the <html> Zen component to insert raw HTML content into your page. There are a number of different approaches that use this component to display monospaced text, but I'll highlight just one.
First, add an <html> component to your XData Contents block, as follows:
<html id="txaSPRINT"></html>
The id of the component is "txaSPRINT" which matches the CSS in your XData Style block. This means the contents of the <html> component will be monospaced text; you do not necessarily need a <pre> tag. The only thing left is to insert the text, which you could do with the following javascript method:
ClientMethod updateMonospaceTextbox(content) [ Language = javascript ]
{
zen('txaSPRINT').setContent(content)
}
You can also update the text from the server, using this ZenMethod:
Method UpdateTextbox(content As %String) [ ZenMethod ]
{
Set textbox = ..%GetComponentById("txaSPRINT")
Set textbox.content = content
}
Hi Ray,
You can use the
<html>
Zen component to insert raw HTML content into your page. There are a number of different approaches that use this component to display monospaced text, but I'll highlight just one.First, add an
<html>
component to your XData Contents block, as follows:The id of the component is "txaSPRINT" which matches the CSS in your XData Style block. This means the contents of the
<html>
component will be monospaced text; you do not necessarily need a<pre>
tag. The only thing left is to insert the text, which you could do with the following javascript method:You can also update the text from the server, using this ZenMethod: