We dont have an explicit API for that currently, although the data likely exists at some point in the load process.
Look at this post by Tony Issakov,
http://dojofindings.blogspot.com/2008/02/dojo-jaxer-updated-compatibility-block.html
It look like he's doing a similar thing, with a slightly different approach, he's loading a shim to manage the loading of the dojo.js but has a hard coded path in there to the location of the baseUrl for the dojo stuff.
as for document.getElementsByTagName that works fine server side.
- Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<script id='script1' type="text/javascript" runat='server'></script>
<script id='script2' type="text/javascript" runat='server'></script>
<script id='script3' type="text/javascript" runat='server'></script>
<script id='script4' type="text/javascript" runat='server'></script>
<script id='mainScript' runat='server'>
var scripts = document.getElementsByTagName('script');
document.write(scripts.length)
</script>
</body>
</html>
the code block above returns references to 5 script elements. If you are using the Jaxer.load mechanism to load the scripts, you could easily wrap that up in a function to track the loads for you, or even try some aspect oriented javascript approach to add some tracking code to that method.