using ActiveX in WebBrowser

I wannt to parse the xml document by using javascript in a web page,I use the ActiveXObject to parse it,and then add the Html page to the WebBrowser control which is in a windowsApplication,everything works fine,but when it is used in a plug-in project, at the top of the html page,a security waring is prompted,I HAVE TO cilck the prompted bar and allowed blocked content,then all the data can be displayed, if not ,nothing can be seen on the page, so

 

Can anyone help me to let the prompt bar not displayed and all the data can be well shown thanks!!




Answer this question

using ActiveX in WebBrowser

  • Sparx

    Hi tomas!

    I have saved the promblem,I use the method of the webBrowser named as documentText,The parameter of the method is a string,so I parse the whole page to a string and transform it to the method,then the promble is saved.

    and if I use the xsl to create the page ,then I load it to the webBrowser,It trouble me again!

    sky



  • errolian

    Hi Tomas

    my html page just is a static page , when my plug-in is runing, it will be automaticlly loaded to the webBrowser,it is just a file ,so it can not be added to the trusted site list!



  • Leo Ng

    I'm just thinking out loud, but could you just add the website to your trusted site list
  • mshvw

    So why are you parsing the XML using javascript Would it not be easier to take the XML, put it through an XSL that creates the HTML you want, then load that HTML into the webbrowser

    If I knew what you were trying to achieve I might be better able to help.

    Tomas


  • using ActiveX in WebBrowser