Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ActiveX in Mozila is not working

ActiveX in Mozila is not working

Scheduled Pinned Locked Moved ASP.NET
javascriptcomtoolsxmlquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rajeesh MP
    wrote on last edited by
    #1

    Dear All i M loading a xml file from javascript..that is working in IE. but its not working Mozila.. this is the code

    function importXML()
    {
    if (document.implementation && document.implementation.createDocument)
    {
    xmlDescription = document.implementation.createDocument("", "", null);
    xmlDescription.onload = getDescription;

    	    xmlDoc = document.implementation.createDocument("", "", null);
    	    xmlDoc.onload = getData;
        }
        else if (window.ActiveXObject)
        {
            xmlDescription = new ActiveXObject("Microsoft.XMLDOM");
    	    xmlDescription.onreadystatechange = function ()
    	    {
    		    if (xmlDescription.readyState == 4) getDescription()
    	    };
    	    
    	    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    	    xmlDoc.onreadystatechange = function ()
    	    {
    		    if (xmlDoc.readyState == 4) getData()
    	    };
        }
        else
        {
    	    alert('Your browser can\\'t handle this script');
    	    return;
        }
        xmlDescription.load("details.xml");
        xmlDoc.load("settings.xml");
    }
    

    becouse of activex controls is not working in Mozila... any solution for that to including activex control in mozila....????? or any alternate way to load xml file from javasript..?????? Please.... Regards Rajeesh MP

    N 1 Reply Last reply
    0
    • R Rajeesh MP

      Dear All i M loading a xml file from javascript..that is working in IE. but its not working Mozila.. this is the code

      function importXML()
      {
      if (document.implementation && document.implementation.createDocument)
      {
      xmlDescription = document.implementation.createDocument("", "", null);
      xmlDescription.onload = getDescription;

      	    xmlDoc = document.implementation.createDocument("", "", null);
      	    xmlDoc.onload = getData;
          }
          else if (window.ActiveXObject)
          {
              xmlDescription = new ActiveXObject("Microsoft.XMLDOM");
      	    xmlDescription.onreadystatechange = function ()
      	    {
      		    if (xmlDescription.readyState == 4) getDescription()
      	    };
      	    
      	    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
      	    xmlDoc.onreadystatechange = function ()
      	    {
      		    if (xmlDoc.readyState == 4) getData()
      	    };
          }
          else
          {
      	    alert('Your browser can\\'t handle this script');
      	    return;
          }
          xmlDescription.load("details.xml");
          xmlDoc.load("settings.xml");
      }
      

      becouse of activex controls is not working in Mozila... any solution for that to including activex control in mozila....????? or any alternate way to load xml file from javasript..?????? Please.... Regards Rajeesh MP

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      See if this[^] helps. Install FireBug and debug the JS code.

      Navaneeth How to use google | Ask smart questions

      R 1 Reply Last reply
      0
      • N N a v a n e e t h

        See if this[^] helps. Install FireBug and debug the JS code.

        Navaneeth How to use google | Ask smart questions

        R Offline
        R Offline
        Rajeesh MP
        wrote on last edited by
        #3

        Hi Navneeth that is not working

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups