www.webdeveloper.com
Results 1 to 3 of 3

Thread: Converting ActiveX to JQuery/AJAX

  1. #1
    Join Date
    Apr 2012
    Location
    Charlotte NC
    Posts
    5

    Unhappy Converting ActiveX to JQuery/AJAX

    Okay so basically, I'm working on a web application that I didn't develop personally, so I'm not 100% how it's built. Parts of it are written with ActiveX, and therefore it only works in IE. I'm trying to make it cross browsercompatible through AJAX/JQuery. However the resources for ActiveX conversion seem to be few and far between.

    Here's some code snippets, if anyone can provide me with a conversation, and how specifically it works, it would be much appreciated. Unfortunetly the web doesn't seem to have simple resources of converting ActiveX to JQuery/AJAX.


    this.m_oXMLDOM = new ActiveXObject("Microsoft.XMLDOM");
    this.m_oDayparts = null;
    this.m_oDefault = null;
    this.m_oInterval = null;
    this.m_aDayparts = null;
    this.m_iCurrDaypart = -1;
    this.m_aListeners = new Array();
    this.m_strCfgFile = "";
    this.m_oDaypartChanged = new cEvent();
    this.m_oXMLDOM.async = false;

    this.loadConfig(strConfigFile);
    },

    //-------------------------------------------------------------------------
    // public methods
    //-------------------------------------------------------------------------

    loadConfig: function(strFile) {
    try {
    this.m_strCfgFile = strFile;
    this.m_oXMLDOM.load(strFile);

    this.m_oDayparts = this.m_oXMLDOM.selectNodes("./dayparts/daypart");
    this.m_oDefault = this.m_oXMLDOM.selectSingleNode("./dayparts/default");

    this.recalcDayparts();
    this.m_iCurrDaypart = -1;
    }
    catch (err) {
    logger.error("cDayparts.loadConfig() " + err.message);
    }
    },

  2. #2
    Join Date
    Apr 2012
    Posts
    34
    Can you give a little more detail about what you are trying to accomplish? Thanks!

  3. #3
    Join Date
    Apr 2012
    Location
    Charlotte NC
    Posts
    5
    I'm working on some .js files, to convert to ActiveX to something cross browser compatible (Perferably JQuery and AJAX) I am not that knowledgable about ActiveX, and there's not many resources on the web, so I'm looking for some help converting the ActiveX. I can provide you with more code if it's necessary.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles