OpenLayers OpenLayers

Changeset 1377

Show
Ignore:
Timestamp:
08/25/06 14:51:01 (2 years ago)
Author:
crschmidt
Message:

IE breaks on this -- probably because document.write () delays the onload, but
appending script elements doesn't. (Hooray for IE.) rolling this back and
reopening the ticket until I can work out the best workaround for this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/lib/OpenLayers.js

    r1376 r1377  
    109109 
    110110    for (var i = start; i < jsfiles.length; i++) { 
    111         var currentScriptElem  = document.createElement('script'); 
    112         currentScriptElem.type = 'text/javascript'; 
    113         currentScriptElem.src  = host + jsfiles[i]; 
    114  
    115         document.getElementsByTagName("head")[0].appendChild(currentScriptElem); 
    116  
     111        var currentScriptTag = "<script src='" + host + jsfiles[i] + "'></script>";  
     112        allScriptTags += currentScriptTag; 
    117113    } 
     114    document.write(allScriptTags); 
    118115    })(); 
    119116}