Changeset 25010

Show
Ignore:
Timestamp:
26.01.2012 14:27:02 (8 years ago)
Author:
sjm84
Message:

Improved how an ajax object is retrieved

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/js/classifier_scripts.js

    r24555 r25010  
    111111    { 
    112112        inProgress[sectionID] = true; 
    113         var httpRequest; 
    114         if (window.XMLHttpRequest) { 
    115             httpRequest = new XMLHttpRequest(); 
    116         } 
    117         else if (window.ActiveXObject) { 
    118             httpRequest = new ActiveXObject("Microsoft.XMLHTTP"); 
    119         } 
     113        var httpRequest = new gs.functions.ajaxRequest(); 
    120114         
    121115        var sectionToggle = document.getElementById("toggle" + sectionID);