web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

HTML control and setting external URL

(0) ShareShare
ReportReport
Posted on by

Hello,


Is there any possibility to display HTML content in AX HTML control from external source (URL)

HTML control has method url. But it opens separate Internet Explorer window.

I even tried to setText on HTML control including JavaScript to change document location:

document.location.href="http://microsoft.com/";

But it also opens new window of Internet Explorer

Iframe tag also does not work. However img tag can be displayed correctly.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: HTML control and setting external URL

    Sure. I know about this ActiveX component.

    But it does not provide such HTML content control as HTML control does. I need to call JavaScript methods from AX and receive some content from the web. In simple words I need to interact with web page in the control. With HTML control it's possible as there are a bunch of methods. ActiveX WebBrowser does not have such methods to interact with web page. At least I do not have a clue right now how for example call JavaScript method from AX and partly receive HTML content.

    It seems to be some security restrictions that does not allow to navigate to external URL for HTML control. As basically I think internet explorer engine is same for both controls. Is it possible to tune this permissions and allow access for some domain.

  • Bilal Issa Profile Picture
    4,370 on at
    RE: HTML control and setting external URL

    Hi ,

    you can use , managed host control of type system.windows.forms.webbrowser, then set the code below in the init method

       Browser = WebBrowser.control();

       Browser .Navigate(url);

    Regards,

    Bilal

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans