You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2011/07/12 11:26:01 UTC

svn commit: r1145510 - /wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js

Author: mgrigorov
Date: Tue Jul 12 09:26:00 2011
New Revision: 1145510

URL: http://svn.apache.org/viewvc?rev=1145510&view=rev
Log:
WICKET-3887 Problems concerning IE9 with "ActiveX Filtering" enabled


Modified:
    wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js

Modified: wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js?rev=1145510&r1=1145509&r2=1145510&view=diff
==============================================================================
--- wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js (original)
+++ wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js Tue Jul 12 09:26:00 2011
@@ -722,13 +722,13 @@ Wicket.channelManager = new Wicket.Chann
  	// Creates a new instance of a XmlHttpRequest
 	createTransport: function() {
 	    var transport = null;
-	    if (window.ActiveXObject) {
-	        transport = new ActiveXObject("Microsoft.XMLHTTP");
-	        Wicket.Log.info("Using ActiveX transport");
-	    } else if (window.XMLHttpRequest) {
-	        transport = new XMLHttpRequest();
-	        Wicket.Log.info("Using XMLHttpRequest transport");
-	    } 
+	    if (window.XMLHttpRequest) {
+               transport = new XMLHttpRequest();
+               Wicket.Log.info("Using XMLHttpRequest transport");
+            } else if (window.ActiveXObject) {
+               transport = new ActiveXObject("Microsoft.XMLHTTP");
+               Wicket.Log.info("Using ActiveX transport");
+            }
 	    
 	    if (transport == null) {
 	        Wicket.Log.error("Wicket.Ajax.createTransport: Could not locate ajax transport. Your browser does not support the required XMLHttpRequest object or wicket could not gain access to it.");