Skip to main content
October 18, 2012
Question

Display HTML in XUI

  • October 18, 2012
  • 1 reply
  • 723 views
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-Visitor
    October 18, 2012
    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****
    >