<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -12,11 +12,11 @@ function ScriptCache(){
 	});
 	
 	var create_script_elem = function(src){
-		var script_elem = document.createElement('script');
-		if (src) script_elem.src = src;
-		script_elem.type = 'text/javascript';
-		document.getElementsByTagName('head')[0].appendChild(script_elem);	
-		return script_elem;
+		// var script_elem = document.createElement('script');
+		// if (src) script_elem.src = src;
+		// script_elem.type = 'text/javascript';
+		// document.getElementsByTagName('head')[0].appendChild(script_elem);	
+		// return script_elem;
 	}
 	
 	var get_code = function(script_name){
@@ -46,7 +46,14 @@ function ScriptCache(){
 	}
 	
 	var get_and_store = function(script_name, version, callback){		
-		var the_codes = get_code(script_name)
+		// var the_codes = get_code(script_name)
+		
+		var req = new XMLHttpRequest();  
+		req.open('GET', script_name, false);   
+		req.send(null);  
+		if(req.status == 200)
+			var the_codes = req.responseText;
+		
 		if (the_codes){
 			if (callback) callback(the_codes)
 			store_in_cache(script_name, version, the_codes)
@@ -63,7 +70,7 @@ function ScriptCache(){
 	thiz.the_codes = []
 	thiz.completed = 0
 	
-	var include_script = function(script_name, version, index, total){
+	var include_script = function(script_name, version, index, total){		
 		if (!thiz.db){
 			create_script_elem(script_name)
 			get_and_store(script_name, version, function(c){</diff>
      <filename>cache_loader.js</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,7 @@
         ['mootools-1.2.1-core.js','1x4'], 
         ['scriiip.js'            ,'1x4'] 
       ]);
-      // window.script_cache.include('scriiip.js', '1.2');
+
     &lt;/script&gt;
   &lt;/head&gt;
   </diff>
      <filename>index.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,3 @@
-window.script_data['mootools-1.2.1-core.js'] = function(){
-
 /*
 Script: Core.js
 	MooTools - My Object Oriented JavaScript Tools.
@@ -3844,5 +3842,3 @@ Request.JSON = new Class({
 	}
 
 });
-
-}
\ No newline at end of file</diff>
      <filename>mootools-1.2.1-core.js</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,3 @@
-window.script_data['scriiip.js'] = function(){
-
 console.log(Browser.Engine.name);
 console.log(1 &lt; 3);
 var scripts = '&lt;blah';
@@ -9,6 +7,4 @@ var message = &quot;XXX YO DAWG I HERD YOU LIKE JAVASCRIPT SO I PUT SOME JAVASCRIPT I
 function test(x){ return x; }
 console.log(message + test(1) + replaced);
 
-document.body.innerHTML = &quot;XXX YO DAWG I HERD YOU LIKE JAVASCRIPT SO I PUT SOME JAVASCRIPT IN YOUR JAVASCRIPT SO YOU CAN JAVASCRIPT WHILE YOU JAVASCRIPT!&quot;;		
-
-}
+document.body.innerHTML = &quot;XXX YO DAWG I HERD YOU LIKE JAVASCRIPT SO I PUT SOME JAVASCRIPT IN YOUR JAVASCRIPT SO YOU CAN JAVASCRIPT WHILE YOU JAVASCRIPT!&quot;;		
\ No newline at end of file</diff>
      <filename>scriiip.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>1c409852c185efb6345aade6f048a6423d2322fb</id>
    </parent>
  </parents>
  <author>
    <name>Ian Collins</name>
    <email>ian@powerset.com</email>
  </author>
  <url>http://github.com/3n/db-script-cache/commit/3f2c75eae7022fba101322b7f49d529b85f22c20</url>
  <id>3f2c75eae7022fba101322b7f49d529b85f22c20</id>
  <committed-date>2009-02-11T14:53:27-08:00</committed-date>
  <authored-date>2009-02-11T14:53:27-08:00</authored-date>
  <message>ajax dogg</message>
  <tree>691c2709257f7bc71df3ae85541558f00eadd18d</tree>
  <committer>
    <name>Ian Collins</name>
    <email>ian@powerset.com</email>
  </committer>
</commit>
