Hello,
We are currently building job aids by including several modules in an HTML document using this code:

Code:
			<script type="text/javascript"> /*Begin Modules Javascript Style Comments (// are the whole line!)*/
							//ajaxinclude("ssd/modules/subformadsl.module");
							ajaxinclude("ssd/modules/remedy.module");
							ajaxinclude("ssd/modules/earalarmfix.module");	
							ajaxinclude("ssd/modules/eartoipdslamconfig.module");
							ajaxinclude("ssd/modules/recordlightlevels.module");
							ajaxinclude("ssd/modules/telnettestcowan.module");
							ajaxinclude("ssd/modules/provision7330codslam.module");
							ajaxinclude("ssd/modules/selectamsserver.module");
							ajaxinclude("ssd/modules/pingsystem.module");
							ajaxinclude("ssd/modules/loginprocedurestoaccessthe7330.module");
							ajaxinclude("ssd/modules/enterclicommands.module");
							ajaxinclude("ssd/modules/determineifanamsdomainisfull.module");
							ajaxinclude("ssd/modules/createfttninams.module");
							ajaxinclude("ssd/modules/downloadsoftwaretotheelement.module");
							ajaxinclude("ssd/modules/activatesoftwaretotheelement.module");
							ajaxinclude("ssd/modules/commitsoftwaretotheelement.module");
							ajaxinclude("ssd/modules/downloadprofiles.module");
							ajaxinclude("ssd/modules/unlockportsandapplydefaultprofilesinCLI.module");
							ajaxinclude("ssd/modules/addingextendedshelves.module");
							ajaxinclude("ssd/modules/configuringextensionshelvesinCLI.module");
							ajaxinclude("ssd/modules/configuringprofilesontheextensionshelves.module");
							ajaxinclude("ssd/modules/modifypmtca.module");
							ajaxinclude("ssd/modules/create7330FTTNinJBOSS.module");
							ajaxinclude("ssd/modules/createethernetphysicallink.module");
							ajaxinclude("ssd/modules/postingwfacomplete.module");
							ajaxinclude("ssd/modules/postduedatesintirks.module");
							ajaxinclude("ssd/modules/IGMPsettingsandqueryjobaid.module");
							ajaxinclude("ssd/modules/finish7330inams.module");
							ajaxinclude("ssd/modules/populateADOTS.module");
							
			</script>
The ajaxinclude commands use this code:

Code:
//var rootdomain="http://"+window.location.hostname

function ajaxinclude(url) {
var page_request = false

if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
if (window.XMLHttpRequest) // if Mozilla, Safari etc 
page_request = new XMLHttpRequest() 
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}
We want to get away from using the document.write that the ajaxinclude commands use. Does anybody have any suggestions?

Thanks,
Don