JS Include

JS Include

Hi, I have downloaded and tried on both of these plugins.

http://plugins.jquery.com/project/include
http://plugins.jquery.com/project/sync-include

Here is my test

I Have a js file called alert1.js like that:

$.include('alert2.js');

var teste1 = "alert1";

document.write(teste1);
document.write(teste2);



And another one called alert2.js

var teste2 = "alert2";


And My HTML file is that. I tried with both jquery plugins


<html>
   <head>
   
      <script src="jquery-1.3.2.min.js"      type="text/javascript"></script>
      
      <script src="jquery.includeMany-1.2.0.js" type="text/javascript"></script>
      
      <script>
         $.include('alert1.js');
      </script>
      
   </head>
   <body>
   </body>
</html>



So, firefox is still saying that teste2 doesn't exists.

That is, include is not being made sync.

Does anyone know how to work that