Initiate XSLT with js in IE8 fails: ActiveXObject not defined

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    Initiate XSLT with js in IE8 fails: ActiveXObject not defined

    According to the examples on this page, I should be able to initiate xslt to run xml files but the examples just give me a blank html page. The example should give a "Hello, World".

    I'm not sure if I should be posting this here or somewhere else.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I'm not sure if I should be posting this here or somewhere else.
    the only other forum I could think of is the windows forum (the XML forum would be useless here), but I doubt they have more experience regarding IE8.

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      In the example, they use ActiveXObject(" Msxml2.DOMDocum ent.6.0"). A quick look around tells me I should be using ("Microsoft.XML DOM")? That doesn't work either. Both give me an error in the developer javascript console: Uncaught ReferenceError: ActiveXObject is not defined.

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        It would be nice if this thread could be retitled "ActiveXObj ect not defined" cause that's the real problem apparently.

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          Apparently, ActiveXObject is not available in the browser? So I need to acquire the xml/xsl files via XHR?

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            Never mind. Embarrassingly stupid mistake. Looking at the wrong browser.

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Which browser were you supposed to be looking at?

              Comment

              Working...