Changeset 697 for trunk


Ignore:
Timestamp:
01/25/07 12:20:12 (13 years ago)
Author:
ray
Message:

Ticket #920

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaCore.js

    r695 r697  
    57175717 
    57185718Xinha.getXMLHTTPRequestObject = function()  
    5719 {        
     5719{ 
    57205720  try 
    57215721  {     
    5722     return new XMLHttpRequest(); 
     5722    if (typeof XMLHttpRequest == "function") 
     5723    { 
     5724          return new XMLHttpRequest(); 
     5725    } 
     5726        else if (typeof ActiveXObject == "function") 
     5727        { 
     5728          return new ActiveXObject("Microsoft.XMLHTTP"); 
     5729        } 
    57235730  } 
    57245731  catch(e) 
  • trunk/modules/InternetExplorer/InternetExplorer.js

    r694 r697  
    400400  return element.outerHTML; 
    401401}; 
    402    
    403 /** Get a new XMLHTTPRequest Object ready to be used.  
    404  * 
    405  * @returns object XMLHTTPRequest  
    406  */ 
    407  
    408 Xinha.getXMLHTTPRequestObject = function () { return new ActiveXObject("Microsoft.XMLHTTP"); } 
Note: See TracChangeset for help on using the changeset viewer.