Author: knopp
Date: Thu Jul 19 12:45:50 2007
New Revision: 557751

URL: http://svn.apache.org/viewvc?view=rev&rev=557751
Log:
fix for ie and https

Modified:
    
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js

Modified: 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
URL: 
http://svn.apache.org/viewvc/incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js?view=diff&rev=557751&r1=557750&r2=557751
==============================================================================
--- 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
 (original)
+++ 
incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/markup/html/wicket-event.js
 Thu Jul 19 12:45:50 2007
@@ -154,7 +154,10 @@
                                }, 1);
                        } else if (document.readyState && 
Wicket.Browser.isIE()) { 
                                if (document.getElementById('ie_ready') == 
null) {
-                                       var src = (window.location.protocol == 
'https:') ? ':\/\/0' : 'javascript:void(0)';
+                                       // for internet explorer we need to 
load a "dummy" scrip from ::/ to get the 
+                                       // readystatechangeevernt - that means 
the main page being loaded and now the browser
+                                       // is loading dependencies
+                                       var src = (window.location.protocol == 
'https:') ? '\/\/:' : 'javascript:void(0)';
                                        document.write('<script id="ie_ready" 
defer src="' + src + '"><\/script>');
                                        
document.getElementById('ie_ready').onreadystatechange = function() {
                                                if (this.readyState == 
'complete') domReady();


Reply via email to