cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Display HTML in XUI

JasonBuss
1-Newbie

Display HTML in XUI

Is there a way to make a XUI dialog textbox render HTML?, like specifically anchor tags with URIs in them?

I know there's a method for just displaying HTML in a help dialog (like for custom help), but I'm looking at something interactive, that calls a COM object, and the return from that call may have an HTML link to an intranet site. I need to be able to enable those links if possible.

I know there's a few "complex" ways to do it, just seeing if anyone had a Q&D method off the top of their head...

Thanks,

-Jason
1 REPLY 1

I'm not sure if this is considered complex or even desired, but I just make
an API call to launch a browser:

try {
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " +
queryString);
}
catch (IOException ioe) {
log.warn("Error loading heading tool.", ioe);
}

Or if it's just a local call (as we run our XML through an XSL and store it
as a local, temp file), just prepend file:///, e.g.:

Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler file:///" +
outFileName);

keith

On Thu, Oct 18, 2012 at 12:19 PM, Buss, Jason A
<jabuss@cessna.textron.com>wrote:

> Is there a way to make a XUI dialog textbox render HTML?, like
> specifically anchor tags with URIs in them?****
>
> ** **
>
> I know there’s a method for just displaying HTML in a help dialog (like
> for custom help), but I’m looking at something interactive, that calls a
> COM object, and the return from that call may have an HTML link to an
> intranet site. I need to be able to enable those links if possible.****
>
> ** **
>
> I know there’s a few “complex” ways to do it, just seeing if anyone had a
> Q&D method off the top of their head…****
>
> ** **
>
> Thanks,****
>
> ** **
>
> -Jason****
>
Top Tags